Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: building perl with 64-bit

by dsb (Chaplain)
on May 23, 2014 at 18:49 UTC ( #1087253=note: print w/replies, xml ) Need Help??

in reply to Re: building perl with 64-bit
in thread building perl with 64-bit

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

Replies are listed 'Best First'.
Re^3: building perl with 64-bit
by andal (Hermit) on May 26, 2014 at 06:29 UTC

    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.

Re^3: building perl with 64-bit
by mpeppler (Vicar) on May 27, 2014 at 12:23 UTC
    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://1087253]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-05-21 09:31 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.