>>>> "ST" == Stephen J Turnbull
<turnbull(a)sk.tsukuba.ac.jp> writes:
>>>> "Vikas" == Vikas Mishra
<vmishra(a)dal.asp.ti.com> writes:
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
Vikas> you.
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> --BEGIN_SNIPPET__
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
fine;-)
Thanks,
-- Marco
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> function)
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> function
ST> bytecode.c: In function `Fbyte_code':
ST> bytecode.c:2402: warning: comparison between signed and unsigned
ST> gmake[1]: *** [bytecode.o] Error 1
ST> gmake[1]: Leaving directory `/home/vmishra/xemacs-21.4.2/src'
ST> gmake: *** [src] Error 2
ST> __END_SNIPPET__
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> Regards,
ST> Vikas
ST> My installation is described below :
ST> -------------------------------------
ST> uname -a: SunOS lift 5.7 Generic_106541-14 sun4u sparc SUNW,Ultra-5_10
ST> ./configure '--prefix=/home/vmishra/xemacs'
ST> '--x-includes=/usr/openwin/include/'
'--x-libraries=/usr/openwin/lib/'
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'
'--with-socks'
ST> '--with-cde' '--with-sound=native' '--with-xim'
ST> XEmacs 21.4.2 "Developer-Friendly Unix APIs" configured for
ST> `sparc-sun-solaris2.7'.
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> /usr/dt/include
ST> Additional libraries: /usr/lib /usr/local/lib /usr/dt/lib
ST> Runtime library search path:
ST>
/usr/ccs/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib/:/usr/local/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2
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> /usr/openwin/include/
ST> - X Windows libraries location: /usr/dt/lib
ST> /usr/openwin/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> TTY:
ST> Compiling in support for ncurses.
ST> Images:
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> Sound:
ST> Compiling in support for sound (native).
ST> Databases:
ST> Compiling in support for GNU DBM.
ST> Compiling in support for LDAP.
ST> Internationalization:
ST> Mail:
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> --
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."
--