Hello, I am trying to compile DBD::Sybase on my Solaris 10 Script server. I am running FreeTDS libraries and get the perl Makefile.PL to create a Makefile with no issues, however, when I run make, I get the following output:
# make
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
cp Sybase.pm blib/lib/DBD/Sybase.pm
/usr/bin/perl -p -e "s/~DRIVER~/Sybase/g" /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBI/D
+river.xst > Sybase.xsi
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap
+ Sybase.xs > Sybase.xsc && mv Sybase.xsc Sybase.c
cc -c -I/usr/local/freetds/include -DNO_BLK=1 -I/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/aut
+o/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1
+.09\" -DXS_VERSION=\"1.09\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" Sybase.c
"Sybase.xs", line 83: warning: implicit function declaration: syb_ping
"Sybase.xs", line 95: warning: implicit function declaration: syb_st_cancel
cc -c -I/usr/local/freetds/include -DNO_BLK=1 -I/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/aut
+o/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1
+.09\" -DXS_VERSION=\"1.09\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" dbdimp.c
"dbdimp.c", line 777: undefined symbol: BLK_VERSION_150
"dbdimp.c", line 781: undefined symbol: BLK_VERSION_125
"dbdimp.c", line 785: undefined symbol: BLK_VERSION_120
"dbdimp.c", line 4594: warning: statement not reached
"dbdimp.c", line 4639: warning: statement not reached
"dbdimp.c", line 4683: warning: statement not reached
cc: acomp failed for dbdimp.c
make: *** [dbdimp.o] Error 2
I am trying to compile using the GNU Make version 3.81 and Sun Studio 11.
I have tried using the gcc, but I get different errors:
# make
gcc -c -I/usr/local/freetds/include -DNO_BLK=1 -I/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/au
+to/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"
+1.09\" -DXS_VERSION=\"1.09\" -fPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" Sybase.c
gcc: language ildoff not recognized
gcc: Sybase.c: linker input file unused because linking not done
gcc -c -I/usr/local/freetds/include -DNO_BLK=1 -I/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/au
+to/DBI -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"
+1.09\" -DXS_VERSION=\"1.09\" -fPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" dbdimp.c
gcc: language ildoff not recognized
gcc: dbdimp.c: linker input file unused because linking not done
Running Mkbootstrap for DBD::Sybase ()
chmod 644 Sybase.bs
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/local/freetds/lib:/lib" gcc -L/usr/local/freetds/lib -G Sybase.o dbdimp.o -o bl
+ib/arch/auto/DBD/Sybase/Sybase.so -L/usr/local/freetds/lib -lct -lintl -ldl -lm
gcc: dbdimp.o: No such file or directory
make: *** [blib/arch/auto/DBD/Sybase/Sybase.so] Error 1
Any ideas on how I can get this to compile?
Thanks,
Luke