Out of the box compiling on Solaris 10 w/ gcc 3.4.1 fails for me with this
output:
% make
cd ./lib-src && make all
make[1]: Entering directory `/home/ink/skipm/src/xemacs-21.5.28/lib-src'
gcc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts -Wpacked
-Wpointer-arith -Wdeclaration-after-statement -Wshadow -Wmissing-declarations
-Wmissing-prototypes -Wstrict-prototypes -g -O3 -I. -I../src
-I/home/titan/skipm/src/xemacs-21.5.28/lib-src -I/home/titan/skipm/src/xemacs-21.5.28/src
-I/opt/app/nonc++/zlib-1.2/include -I/opt/app/nonc++/libpng-1.2/include
-I/opt/app/nonc++/xpm-3.4k/include -I/opt/app/Xaw3d-1.5/include -DHAVE_CONFIG_H
-I/usr/X11/include /home/titan/skipm/src/xemacs-21.5.28/lib-src/gnuslib.c
In file included from /usr/include/iso/stdio_iso.h:35,
from
/opt/app/g++lib6/gcc-3.4/lib/gcc/i386-pc-solaris2.10/3.4.1/include/stdio.h:81,
from /home/titan/skipm/src/xemacs-21.5.28/lib-src/gnuserv.h:107,
from /home/titan/skipm/src/xemacs-21.5.28/lib-src/gnuslib.c:36:
/usr/include/sys/va_list.h:99: error: conflicting types for '__gnuc_va_list'
../src/s/sol2.h:20: error: previous declaration of '__gnuc_va_list' was here
make[1]: *** [gnuslib.o] Error 1
make[1]: Leaving directory `/home/ink/skipm/src/xemacs-21.5.28/lib-src'
make: *** [lib-src] Error 2
With a bit of googling I landed here:
http://calypso.tux.org/pipermail/xemacs-beta/2005-February/004661.html
which suggested wrapping
# if __GNUC__ <= 2
...
#endif
around the GCC va_list stuff. That seems to allow compilation to proceed.
Not sure yet if it breaks something else.
Skip
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta