mmapr.c compile problem

Jeff Chua <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
gcc -c -O2 -fno-strength-reduce -ansi -Wall -Wpointer-arith -Wundef
-I. -I../../../../../programs/Xserver/hw/xfree86/common
-I../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../programs/Xserver/include
-I../../../../../exports/include/X11 
-I../../../../../programs/Xserver/hw/xfree86/scanpci
-I../../../../../programs/Xserver/hw/xfree86/dummylib
-I../../../../../programs/Xserver/hw/xfree86/os-support/bus
-I../../../../.. -I../../../../../exports/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE 
-D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 
-DXCSECURITY -DTOGCUP  -DXF86BIGFONT -DDPMSExtension  -DPIXPRIV 
-DPANORAMIX  -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV 
-DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server 
-DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG 
-DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG  -DNEED_STRLCAT 
-DFUNCPROTO=15 -DNARROWPROTO      mmapr.c
In file included from mmapr.c:55: /usr/include/linux/pci.h: warning: 6 trigraph(s) encountered
In file included from /usr/include/string.h:360,
                   from mmapr.c:32:
/usr/include/bits/string2.h: In function `__mempcpy_small':
/usr/include/bits/string2.h:250: warning: pointer of type `void *' used in arithmetic
In file included from /usr/include/linux/pci.h:20,
                   from mmapr.c:55:
/usr/include/linux/mod_devicetable.h: At top level:
/usr/include/linux/mod_devicetable.h:18: parse error before `__u32'
/usr/include/linux/mod_devicetable.h:18: warning: no semicolon at end of struct or union
/usr/include/linux/mod_devicetable.h:19: warning: data definition has no type or storage class
/usr/include/linux/mod_devicetable.h:20: parse error before `class'
/usr/include/linux/mod_devicetable.h:20: warning: data definition has no type or storage class
/usr/include/linux/mod_devicetable.h:21: parse error before `driver_data'
/usr/include/linux/mod_devicetable.h:21: warning: data definition has no type or storage class
/usr/include/linux/mod_devicetable.h:31: parse error before `__u32'
/usr/include/linux/mod_devicetable.h:31: warning: no semicolon at end of struct or union
/usr/include/linux/mod_devicetable.h:32: warning: data definition has no type or storage class
/usr/include/linux/mod_devicetable.h:33: parse error before `model_id'
/usr/include/linux/mod_devicetable.h:33: warning: data definition has no type or storage class
/usr/include/linux/mod_devicetable.h:34: parse error before `specifier_id'
/usr/include/linux/mod_devicetable.h:34: warning: data definition has no type or ...
make[5]: *** [mmapr.o] Error 1
make[5]: Leaving directory `/v6/src2/xfree86/xc/programs/Xserver/hw/xfree86/etc'
make[4]: *** [all] Error 2


I think the latest change doesn't go well with linux-2.6 header or gcc-2.95.3

CVS from March 30 doesn't have this problem.


Thanks,
Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.