[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20000825: problem compiling ldm-5.1.2



>
> >To: Unidata Support <address@hidden>
> >From: Dallas Masters <address@hidden>
> >Subject: Re: 20000824: problem compiling ldm-5.1.2
> >Organization: UCAR/Unidata
> >Keywords: 200008251615.e7PGFbN08107
> 
> I am using:
> 
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
> 
> /home/ldm/ldm-5.1.2/src> ./configure
> creating cache ./config.cache
> checking user-defined C compiler "gcc"
> checking C compiler... works
> checking the installation prefix... /home/ldm/ldm-5.1.2
> checking domain name... colorado.edu
> checking how to run the C preprocessor... gcc -E
> checking for AIX... no
> checking for HP-UX... no
> checking whether memory-mapping by region is appropriate... no
> checking the C preprocessor... works
> checking for ar... ar
> checking for perl... /usr/local/bin/perl
> checking for POSIX shell... /bin/sh
> checking for yacc... yacc
> checking for yacc library...
> checking for yyerror() in default library(s)... no
> checking for yyerror() in -ly... yes
> checking mmap()... yes
> checking LDMHOME... /home/ldm
> checking size of int... 4
> checking size of long... 4
> checking for ANSI C header files... yes
> checking for size_t... yes
> checking for off_t... yes
> checking for ssize_t... yes
> checking for ptrdiff_t... yes
> checking for socklen_t... yes
> checking for stdlib.h... yes
> checking for unistd.h... yes
> checking for fsync... yes
> checking for ftruncate... yes
> checking for memmove... yes
> checking for memcmp... yes
> checking for rename... yes
> checking for strerror... yes
> checking for waitpid... yes
> checking for strdup... yes
> checking for seteuid... yes
> checking for setenv... no
> checking for mmap... yes
> checking for sig_atomic_t in signal.h... defined
> checking for working const... yes
> checking for st_blksize in struct stat... yes
> checking for sigaction... yes
> checking RPC and socket references... -R/usr/ucblib -L/usr/ucblib -lrpcsoc
> -lnsl -lsocket
> checking ulog defines... -D_DEV_CONSLOG
> checking for gdbm_open in -lgdbm... yes
> checking for gdbm.h... yes
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating config/Makefile
> creating ulog/Makefile
> creating misc/Makefile
> creating protocol/Makefile
> creating pq/Makefile
> creating pqact/Makefile
> creating pqcat/Makefile
> creating pqmon/Makefile
> creating pqutil/Makefile
> creating pqcreate/Makefile
> creating pqexpire/Makefile
> creating pqing/Makefile
> creating pqsend/Makefile
> creating pqbinstats/Makefile
> creating pqbinstats/mailpqstats
> creating pqinsert/Makefile
> creating pqsurf/Makefile
> creating server/Makefile
> creating ldmping/Makefile
> creating scripts/Makefile
> creating scripts/ldmadmin
> creating scripts/ldmprods
> creating scripts/ldmfail
> creating scripts/netcheck
> creating scripts/syscheck
> creating scripts/ldmcheck
> creating notifyme/Makefile
> creating send/Makefile
> creating feedme/Makefile
> creating scour/Makefile
> creating config/ldmconfig.h
> 
> /home/ldm/ldm-5.1.2/src> make all
> make[1]: Entering directory `/home/ldm/ldm-5.1.2/src'
> 
> Making `all' in directory /home/ldm/ldm-5.1.2/src/config
> 
> make[2]: Entering directory `/home/ldm/ldm-5.1.2/src/config'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/ldm/ldm-5.1.2/src/config'
> 
> Returning to directory /home/ldm/ldm-5.1.2/src
> 
> make[1]: Leaving directory `/home/ldm/ldm-5.1.2/src'
> make[1]: Entering directory `/home/ldm/ldm-5.1.2/src'
> 
> Making `all' in directory /home/ldm/ldm-5.1.2/src/ulog
> 
> make[2]: Entering directory `/home/ldm/ldm-5.1.2/src/ulog'
> gcc -g -DHAVE_CONFIG_H -I../config -c -o ulog.o ulog.c
> ulog.c: In function `ulog':
> ulog.c:481: `__builtin_va_alist' undeclared (first use in this function)
> ulog.c:481: (Each undeclared identifier is reported only once
> ulog.c:481: for each function it appears in.)
> ulog.c: In function `syslog':
> ulog.c:517: `__builtin_va_alist' undeclared (first use in this function)
> ulog.c: In function `serror':
> ulog.c:645: `__builtin_va_alist' undeclared (first use in this function)
> ulog.c: In function `uerror':
> ulog.c:690: `__builtin_va_alist' undeclared (first use in this function)
> ulog.c: In function `unotice':
> ulog.c:721: `__builtin_va_alist' undeclared (first use in this function)
> ulog.c: In function `uinfo':
> ulog.c:752: `__builtin_va_alist' undeclared (first use in this function)
> ulog.c: In function `udebug':
> ulog.c:786: `__builtin_va_alist' undeclared (first use in this function)
> make[2]: *** [ulog.o] Error 1
> make[2]: Leaving directory `/home/ldm/ldm-5.1.2/src/ulog'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/home/ldm/ldm-5.1.2/src'
> make: *** [ulog/all] Error 2
> 
> Any ideas?  Thanks.
> 
> Dallas
> 
> ------------------------------------------
> Dallas Masters
> Colorado Center for Astrodynamics Research
> University of Colorado, Boulder
> (303) 492-4075
> http://ccar.colorado.edu
> ------------------------------------------
> 
> ------- End of Forwarded Message

Hi Dallas,

I'm suspicious of your gcc.   We have built this version successfully with gcc 
under both Solaris and Linux.  And, in searching the archives there was a 
problem that was identical to yours - gcc gave the same `__builtin_va_alist' 
errors.  In that case it was "solved" when the user built the software with gcc 
on a another Solaris Intel box and moved the binary to the machine where he 
originally wanted it.  If you're interested in seeing this exchange, go to 
http://www.unidata.ucar.edu/glimpsedocs/ghldm.html and seach on "Soli86".

Do you have the Sun compiler?  That works for us.  On our test machine it's 
installed under /opt/SUNWspro/bin/cc.  If so, give that a try.  Otherwise I 
think you'll have to try reinstalling gcc.

Please let me know how this turns out.  As always, please contact us if you 
have any further questions.

Anne

-- 
***************************************************
Anne Wilson                     UCAR Unidata Program            
address@hidden                 P.O. Box 3000
                                  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************