#31 Compilation problem (vnc.c)

open
nobody
None
5
2006-02-13
2006-02-13
Christophe DUMEZ
No

xf4vnc CVS won't compile under Mandriva 2006 (with Xorg
6.9) whereas v.4.3.0.104 is compiling just fine.

...
making all in lib/VncExt...
make[3]: Entering directory
`/home/chris/xf4vnc_cvs/xc/lib/VncExt'
rm -f Vnc.o
gcc -m32 -c -O2 -fno-strength-reduce -ansi -pedantic
-Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations
-Wredundant-decls -Wnested-externs
-Wundef -I../../lib/X11 -I../../include/extensions
-I../.. -I../../exports/include -I/usr/X11R6/include
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -fPIC
Vnc.c
In file included from /usr/X11R6/include/X11/Xlibint.h:43,
from Vnc.c:22:
/usr/X11R6/include/X11/Xlib.h:3573: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3573: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3573: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3573: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3578: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3578: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3578: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3578: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3573: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3578: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3591: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3591: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3591: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3591: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3578: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3591: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3604: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3604: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3604: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3604: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3591: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3604: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3609: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3609: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3609: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3609: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3604: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3609: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3841: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3841: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3841: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3841: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3609: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3841: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3845: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3845: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3845: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3845: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3841: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3845: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3857: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3857: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3857: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3857: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3845: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3857: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3885: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3885: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3885: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3885: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3857: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3885: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3889: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3889: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3889: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3889: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3885: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3889: warning: data
definition has no type or storage class
/usr/X11R6/include/X11/Xlib.h:3929: error: syntax error
before '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3929: warning: type
defaults to 'int' in declaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3929: warning: function
declaration isn't a prototype
/usr/X11R6/include/X11/Xlib.h:3929: warning: redundant
redeclaration of '_X_SENTINEL'
/usr/X11R6/include/X11/Xlib.h:3889: warning: previous
declaration of '_X_SENTINEL' was here
/usr/X11R6/include/X11/Xlib.h:3929: warning: data
definition has no type or storage class
Vnc.c:50: warning: function declaration isn't a prototype
Vnc.c:51: warning: function declaration isn't a prototype
Vnc.c:52: warning: function declaration isn't a prototype
Vnc.c:53: warning: function declaration isn't a prototype
Vnc.c:78: warning: 'close_display' was used with no
prototype before its definition
Vnc.c:81: warning: 'error_string' was used with no
prototype before its definition
Vnc.c:86: warning: function declaration isn't a prototype
Vnc.c:149: warning: function declaration isn't a prototype
Vnc.c: In function 'XVncListConnections':
Vnc.c:299: warning: unused variable 'i'
make[3]: *** [Vnc.o] Erreur 1
make[3]: Leaving directory
`/home/chris/xf4vnc_cvs/xc/lib/VncExt'
make[2]: *** [all] Erreur 2
make[2]: Leaving directory `/home/chris/xf4vnc_cvs/xc/lib'
make[1]: *** [all] Erreur 2
make[1]: Leaving directory `/home/chris/xf4vnc_cvs/xc'
make: *** [all] Erreur 2

Discussion