I wanted to try out gem and tried to compile xorg-xserver from git:

Making all in os
make[1]: Entering directory 
`/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/os'
../doltcompile 
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include    -DHAVE_DIX_CONFIG_H 
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE 
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE 
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal 
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include    -I../include 
-I../include -I../Xext -I../composite -I../damageext -I../xfixes -I../Xi 
-I../mi -I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb -O2 
-march=nocona -pipe -MT 
connection.lo -MD -MP -MF .deps/connection.Tpo -c -o connection.lo 
connection.c
In file included from connection.c:108:
osdep.h:95:5: error: missing binary operator before token "("
make[1]: *** [connection.lo] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/os'
make: *** [all-recursive] Error 1


The code lines are:
#if OPEN_MAX <= 256
#define MAXSOCKS (OPEN_MAX - 1)
#else
#define MAXSOCKS 256
#endif

My assumption is that if OPEN_MAX is not set, the #if line returns bogus (#if 
<= 256), so one should probably add some check if OPEN_MAX is set at all. My 
C-preprocessor skills are limited, so I can't come up with a ready-made 
patch.


-- 
Hanno Böck              Blog:           http://www.hboeck.de/
GPG: 3DBD3B20           Jabber/Mail:    [EMAIL PROTECTED]

http://freiheitstattangst.de/ - 11.10. Berlin gegen Überwachung
http://x1000malquer.de/ - ab 8.11. Atomtransporte stoppen

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to