Posted on 2009-01-30 23:43:14-08 by mbunixadm
DBD::Sybase won't build
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
Direct Responses: 9851 | Write a response
Posted on 2009-02-02 00:34:46-08 by nareval in response to 9843
Re: DBD::Sybase won't build
I am having the same problem. I tried using the dbdimp.o from the 1.07 version and now I'm getting the message: ld.so.1: perl: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/auto/DBD/Sybase/Sybase.so: symbol perl_get_sv: referenced symbol not found
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.