I am having trouble compiling DBI-1.15 on a solaris 2.6 sparc box.
I get the following error:
DBI.xs: In function `dbih_logmsg':
DBI.(first use in this function)xs:419: `__builtin_va_alist' undeclared
I am using the following (which I have recompiled all) :
perl5.6.0
DBI-1.15
gcc-2.95.2
GNUmake-3.78.1
#make test TEST_VERBOSE=1
gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC
-I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c
DBI.xs: In function `dbih_logmsg':
DBI.(first use in this function)xs:419: `__builtin_va_alist' undeclared
DBI.xs:419: (Each undeclared identifier is reported only once
DBI.xs:419: for each function it appears in.)
make: *** [DBI.o] Error 1
ANY HELP WOULD BE APPRECIATED.
Sorry to be repetitive but here is also my perl -V output
#perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos orion 5.6 generic_105181-05 sun4m sparc sunw,sparcstation-4
'
config_args='-Dcc=gcc -Dprefix=/usr/local -Uinstallusrbinperl -de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Apr 14 2000 01:46:43
@INC:
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl