>>>> "ST" == Stephen J Turnbull
>>>> "Vikas" == Vikas Mishra
Vikas> I could not find an e-mail address
to which to send a mail
Vikas> to in case of a compile problem. So I am sending this to
ST> No problem. FYI, you can use M-x report-emacs-bug (available from the
ST> Help menu, too) or send directly to xemacs-beta(a)xemacs.org. I am
ST> cc'ing this message there, so you needn't resend.
ST> It looks to me like you may have a problem in your GCC installation,
ST> where certain compiler helper functions or macros (__builtin_va_alist)
ST> are not getting defined. Beyond that I can't say; I hope the Solaris
ST> users on xemacs-beta will be able to give further help.
Vikas> I was trying to build Xemacs on Solaris 2.7 and am getting
Vikas> the following error while trying to compile the source.
ST> gcc -c -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow
ST> -Wsign-compare -Wpointer-arith -Demacs -I. -DHAVE_CONFIG_H
ST> -I/usr/include -I/usr/local/include -I/usr/dt/include -I/usr/dt/include
ST> -I/usr/openwin/include/ bytecode.c
Rule for gcc users: You must not use -I/usr/include on your command
line! This defeats the fixinclude stuff the gcc is doing and it may be
fatal for files like varargs.h and stdargs.h!
gcc uses by default /usr/include as the last on its list of include
directories and that's where it belongs!
I've seen all the other posts and they are valid too but they will
probably not solve this particular compile time error.
So get a newer version of the gcc and configure your build without
-I/usr/include on the compile comand line and everything shoudl work
ST> bytecode.c: In function `funcall_compiled_function':
ST> bytecode.c:486: warning: comparison between signed and unsigned
ST> bytecode.c: In function `invalid_byte_code_error':
ST> bytecode.c:1492: `__builtin_va_alist' undeclared (first use in this
ST> bytecode.c:1492: (Each undeclared identifier is reported only once
ST> bytecode.c:1492: for each function it appears in.)
ST> bytecode.c:1488: warning: `args' might be used uninitialized in this
ST> bytecode.c: In function `Fbyte_code':
ST> bytecode.c:2402: warning: comparison between signed and unsigned
ST> gmake: *** [bytecode.o] Error 1
ST> gmake: Leaving directory `/home/vmishra/xemacs-21.4.2/src'
ST> gmake: *** [src] Error 2
ST> I tried to look at the file bytecode.c but was unable to determine the
ST> cause of the error.
ST> Could you tell me what needs to be done to fix this ?
ST> My installation is described below :
ST> uname -a: SunOS lift 5.7 Generic_106541-14 sun4u sparc SUNW,Ultra-5_10
ST> ./configure '--prefix=/home/vmishra/xemacs'
ST> '--site-includes=/usr/include /usr/local/include /usr/dt/include'
ST> '--site-libraries=/usr/lib /usr/local/lib /usr/dt/lib'
ST> '--with-menubars=lucid' '--with-xpm' '--with-xface'
ST> '--with-cde' '--with-sound=native' '--with-xim'
ST> XEmacs 21.4.2 "Developer-Friendly Unix APIs" configured for
ST> Compilation / Installation:
ST> Source code location: /home/vmishra/xemacs-21.4.2
ST> Installation prefix: /home/vmishra/xemacs
ST> Additional header files: /usr/include /usr/local/include
ST> Additional libraries: /usr/lib /usr/local/lib /usr/dt/lib
ST> Runtime library search path:
ST> Operating system description file: `s/sol2.h'
ST> Machine description file: `m/sparc.h'
ST> Compiler: gcc -g -O3 -Wall -Wno-switch
ST> -Winline -Wmissing-prototypes -Wshadow -Wsign-compare -Wpointer-arith
ST> Relocating allocator for buffers: yes
ST> GNU version of malloc: yes
ST> Window System:
ST> Compiling in support for the X window system:
ST> - X Windows headers location: /usr/dt/include
ST> - X Windows libraries location: /usr/dt/lib
ST> - Handling WM_COMMAND properly.
ST> Using Lucid menubars.
ST> Using Lucid scrollbars.
ST> Using Motif dialog boxes.
ST> Using Motif native widgets.
ST> Compiling in support for ncurses.
ST> Compiling in support for GIF images (builtin).
ST> Compiling in support for XPM images.
ST> Compiling in support for PNG images.
ST> Compiling in support for JPEG images.
ST> Compiling in support for TIFF images.
ST> Compiling in support for X-Face message headers.
ST> Compiling in support for sound (native).
ST> Compiling in support for GNU DBM.
ST> Compiling in support for LDAP.
ST> Compiling in support for "dot-locking" mail spool file locking method.
ST> Other Features:
ST> Compiling in support for ToolTalk.
ST> Compiling in support for SOCKS.
ST> Compiling in support for dynamic shared object modules.
ST> University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
ST> Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
ST> _________________ _________________ _________________ _________________
ST> What are those straight lines for? "XEmacs rules."