Hi all,

I'm trying to install DBI-1.21 mods on a Sun (Sparc) Solaris 8 running 
perl 5 (/usr/perl5/5.00503) and gcc 2.95.3, and am running into linker 
errors when compiling DBI.c.

# /usr/local/bin/make
cp Changes blib/lib/DBI/Changes.pm
/usr/local/bin/gcc -c   -xO3 -xdepend    -DVERSION=\"1.21\"
-DXS_VERSION=\"1.21\"  -I/usr/perl5/5.00503/sun4-solaris/CORE
-DDBI_NO_THREADS Perl.c
gcc: language depend not recognized
gcc: Perl.c: linker input file unused since linking not done
/usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
/usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
/usr/perl5/5.00503/ExtUtils/typemap DBI.xs >xstmp.c && mv xstmp.c DBI.c
/usr/local/bin/gcc -c   -xO3 -xdepend    -DVERSION=\"1.21\"
-DXS_VERSION=\"1.21\"  -I/usr/perl5/5.00503/sun4-solaris/CORE
-DDBI_NO_THREADS DBI.c
gcc: language depend not recognized
gcc: DBI.c: linker input file unused since linking not done
LD_RUN_PATH="" /usr/local/bin/gcc -o blib/arch/auto/DBI/DBI.so  -G DBI.o 

gcc: DBI.o: No such file or directory
gcc: No input files
make: *** [blib/arch/auto/DBI/DBI.so] Error 1

Now, I've run into the "gcc: XXX.o: No such file or directory" error 
with different mods and got around the error by copying the XXX.c (and 
associated .c and .h) file to /usr/perl5/5.00503/sun4-solaris/CORE 
directory and compiling the with -c to get the .o file.  But when 
attempting that workaround on DBI.c I get...

# /usr/local/bin/gcc -c DBI.c
DBI.xs: In function `set_trace':
DBI.xs:524: `XS_VERSION' undeclared (first use in this function)
DBI.xs:524: (Each undeclared identifier is reported only once
DBI.xs:524: for each function it appears in.)
DBI.xs: In function `XS_DBI_trace':
DBI.xs:2883: `XS_VERSION' undeclared (first use in this function)

Not sure what to do.  Any help?

Thanks,

Philip Juels
[EMAIL PROTECTED]

Reply via email to