Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: building perl with 64-bit

by andal (Hermit)
on May 23, 2014 at 06:26 UTC ( #1087162=note: print w/replies, xml ) Need Help??

in reply to building perl with 64-bit

Maybe, it would be better if you provide the command that you use when you install DBD::Sybase and the error that you get.

Replies are listed 'Best First'.
Re^2: building perl with 64-bit
by dsb (Chaplain) on May 23, 2014 at 18:49 UTC
    output from the failures in make:
    >:~/packages/DBD-Sybase-1.15$ make 2>&1 | tee -a make.1.log cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod cp blib/lib/DBD/ /export/home/scratch/perl/bin/perl -p -e "s/~DRIVER~/Sybase/g" /export +/home/scratch/perl/lib/site_perl/5.16.3/x86_64-linux/auto/DBI/Driver. +xst > Sybase.xsi /export/home/scratch/perl/bin/perl /export/home/scratch/perl/lib/5.16. +3/ExtUtils/xsubpp -typemap /export/home/scratch/perl/lib/5.16.3/ExtU +tils/typemap Sybase.xs > Sybase.xsc && mv Sybase.xsc Sybase.c cc -c -I/apps/sybase/include -DSYB_LP64 -I/export/home/scratch/perl/l +ib/site_perl/5.16.3/x86_64-linux/auto/DBI -fno-strict-aliasing -pipe +-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OF +FSET_BITS=64 -O2 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I +/export/home/scratch/perl/lib/5.16.3/x86_64-linux/CORE" Sybase.c cc -c -I/apps/sybase/include -DSYB_LP64 -I/export/home/scratch/perl/l +ib/site_perl/5.16.3/x86_64-linux/auto/DBI -fno-strict-aliasing -pipe +-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OF +FSET_BITS=64 -O2 -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I +/export/home/scratch/perl/lib/5.16.3/x86_64-linux/CORE" dbdimp.c dbdimp.c: In function ‘syb_st_execute’: dbdimp.c:3906: warning: passing argument 2 of ‘ct_results’ from incomp +atible pointer type /apps/sybase/include/ctpublic.h:363: note: expected ‘CS_INT *’ but arg +ument is of type ‘int *’ dbdimp.c:3930: warning: passing argument 5 of ‘ct_bind’ from incompati +ble pointer type /apps/sybase/include/ctpublic.h:110: note: expected ‘CS_INT *’ but arg +ument is of type ‘int *’ Running Mkbootstrap for DBD::Sybase () chmod 644 rm -f blib/arch/auto/DBD/Sybase/ LD_RUN_PATH="/apps/sybase/lib" cc -L/apps/sybase/lib -shared -O2 -L/u +sr/local/lib -fstack-protector Sybase.o dbdimp.o -o blib/arch/auto/D +BD/Sybase/ \ -L/apps/sybase/lib -lct -lcs -lcomn -lintl -lblk -lskrb -ld +l -lm \ /usr/bin/ld: skipping incompatible /apps/sybase/lib/ when sear +ching for -lct /usr/bin/ld: skipping incompatible /apps/sybase/lib/libct.a when searc +hing for -lct /usr/bin/ld: skipping incompatible /apps/sybase/lib/ when sear +ching for -lct /usr/bin/ld: skipping incompatible /apps/sybase/lib/libct.a when searc +hing for -lct /usr/bin/ld: cannot find -lct collect2: ld returned 1 exit status make: *** [blib/arch/auto/DBD/Sybase/] Error 1
    Part of my own confusion is whether I need to point the CONFIG towards the freetds directories or the sybase directories. These are errors are with the sybase directories.

    This @ISA my( $cool ) %SIG

      So, it might be that your Sybase installation is 32-bit. Normally, perl modules link against libraries provided by the application. In this case, linker searches for these libraries in /apps/sybase/lib, it needs library with name 'ct'. The ones that it finds are not compatible with the object currently created.

      So, I would recommend you to check Sybase installation and leave CPAN alone :) You can use 'file' utility to see type of the object.

      andal is bang on.
      You Sybase libs are 32bit. The 64bit libs are named (etc). However, given the name of the libs this appears to be Sybase 12.x (or maybe even earlier), and may not exist as 64bit code at all (depending on the platform).


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1087162]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2022-12-07 10:55 GMT
Find Nodes?
    Voting Booth?

    No recent polls found