|
|
sybperl-l Archive
Up Prev Next
From: "Torsten Bauer" <torsten at torsten-bauer dot de>
Subject: RE: Problems with DBD-Sybase-0.93
Date: Aug 9 2001 4:15PM
ldd /usr/bin/perl
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libgen.so.1 => /usr/lib/libgen.so.1
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
Thanks
Torsten
> -----Original Message-----
> From: owner-SYBPERL-L@list.cren.net
> [mailto:owner-SYBPERL-L@list.cren.net]On Behalf Of Michael Peppler
> Sent: Thursday, August 09, 2001 5:25 PM
> To: SybPerl Discussion List
> Subject: RE: Problems with DBD-Sybase-0.93
>
>
> Torsten Bauer writes:
> > ldd provides me the following output:
> >
> > libct.so => /usr/syb12/current/OCS-12_0/lib/libct.so
> > libcs.so => /usr/syb12/current/OCS-12_0/lib/libcs.so
> > libtcl.so => /usr/syb12/current/OCS-12_0/lib/libtcl.so
> > libcomn.so => /usr/syb12/current/OCS-12_0/lib/libcomn.so
> > libintl.so => /usr/syb12/current/OCS-12_0/lib/libintl.so
> > libdl.so.1 => /lib/libdl.so.1
> > libm.so.1 => /lib/libm.so.1
> > libc.so.1 => /lib/libc.so.1
> > /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
> >
> > I tried to compile sqsh, with SYBASE=/usr/syb12/current and
> > LD_LIBRARY_PATH=/usr/syb12/current/OCS_12/lib and it worked. I
> could connect
> > to databases and execute queries....
>
> OK - so sqsh works, and the libraries that ldd shows all seem correct.
>
> Could you run ldd on perl itself? Maybe there's some library that is
> pre-empting something else getting loaded...
>
> Michael (grasping at straws...)
>
>
> >
> >
> > Torsten
> >
> > > -----Original Message-----
> > > From: owner-SYBPERL-L@list.cren.net
> > > [mailto:owner-SYBPERL-L@list.cren.net]On Behalf Of Michael Peppler
> > > Sent: Wednesday, August 08, 2001 11:23 PM
> > > To: SybPerl Discussion List
> > > Subject: RE: Problems with DBD-Sybase-0.93
> > >
> > >
> > > Torsten Bauer writes:
> > > > Hi Michael,
> > > >
> > > > this is my string:
> > > >
> > > > LD_RUN_PATH="/usr/syb12/current/OCS-12_0/lib:/lib"
> > > > gcc -B/usr/ccs/bin/ -B/usr/ccs/bin/ -o
> > > > blib/arch/auto/DBD/Sybase/Sybase.so
> > > -R/usr/syb12/current/OCS-12_0/lib -R/lib
> > > > -L/usr/syb12/current/OCS-12_0/lib -G -L/usr/local/lib Sybase.o
> > > > dimp.o -L/usr/syb12/current/OCS-12_0/lib -lct -lcs -ltcl
> > > -lcomn -lintl -l
> > > > dl -lm
> > > >
> > > > I would say they are identical in the most parts...
> > >
> > > Looks fine.
> > >
> > > OK - run
> > >
> > > ldd blib/arch/auto/DBD/Sybase/Sybase.so
> > >
> > > You should get:
> > >
> > > libct.so => /opt/sybase-12.0/OCS-12_0/lib/libct.so
> > > libcs.so => /opt/sybase-12.0/OCS-12_0/lib/libcs.so
> > > libtcl.so => /opt/sybase-12.0/OCS-12_0/lib/libtcl.so
> > > libcomn.so => /opt/sybase-12.0/OCS-12_0/lib/libcomn.so
> > > libintl.so => /opt/sybase-12.0/OCS-12_0/lib/libintl.so
> > > libdl.so.1 => /usr/lib/libdl.so.1
> > > libm.so.1 => /usr/lib/libm.so.1
> > > libc.so.1 => /usr/lib/libc.so.1
> > >
> > > BTW - have you tried building any other C code?
> > >
> > > One thing to try is to download sqsh (from
> www.voicenet.com/~grey) and
> > > build it. If that doesn't work then there's likely some problem with
> > > your OCS installation.
> > >
> > > Michael
> > >
> > >
> > > > > -----Original Message-----
> > > > > From: owner-SYBPERL-L@list.cren.net
> > > > > [mailto:owner-SYBPERL-L@list.cren.net]On Behalf Of
> Michael Peppler
> > > > > Sent: Wednesday, August 08, 2001 5:04 PM
> > > > > To: SybPerl Discussion List
> > > > > Subject: Re: Problems with DBD-Sybase-0.93
> > > > >
> > > > >
> > > > > Torsten Bauer writes:
> > > > > > Hi all,
> > > > > >
> > > > > > I have a problem installing DBD::Sybase (Version 0.93) to
> > > a Solaris 8
> > > > > > machine running an ASE 12.0 engine.
> > > > > >
> > > > > > First I need to install it into my user space, because I do
> > > > > not have root
> > > > > > access to the box. Building and installing is no problem, but
> > > > > if I run 'make
> > > > > > test' or use it in my perl script I receive the
> following error:
> > > > > >
> > > > > > ld.so.1: /usr/bin/perl: fatal: relocation error: file
> > > > > > /usr/syb12/current/OCS-12_0/lib/libtli.so: symbol comn_yield:
> > > > > referenced
> > > > > > symbol not found
> > > > > >
> > > > > > I've set the following environement variables:
> > > > > >
> > > > > > LD_LIBRARY_PATH=/usr/syb12/current/OCS-12_0/lib
> > > > > >
> > > > >
> PATH=/usr/bin:/usr/ucb:/etc:/usr/ccs/bin:/usr/cygnus/bin:.:/usr/sy
> > > > > b12/curren
> > > > > > t/OCS-12_0/bin
> > > > > > PERL5LIB=/home/emsadmin/perl_modules
> > > > > > SYBASE=/usr/syb12/current
> > > > > > SYBASE_OCS=OCS-12_0
> > > > >
> > > > > This all looks OK.
> > > > >
> > > > > I've got it here on Solaris 7... but it looks like some library
> > > > > doesn't get loaded (libcomn.so in this case).
> > > > >
> > > > > The link line should be:
> > > > >
> > > > > LD_RUN_PATH="/opt/sybase-12.0/OCS-12_0/lib:/usr/lib" gcc -o
> > > > > blib/arch/auto/DBD/Sybase/Sybase.so
> > > > > -R/opt/sybase-12.0/OCS-12_0/lib -R/usr/lib
> > > > > -L/opt/sybase-12.0/OCS-12_0/lib -G Sybase.o dbdimp.o
> > > > > -L/opt/sybase-12.0/OCS-12_0/lib -lct -lcs -ltcl -lcomn
> > > -lintl -ldl -lm
> > > > >
> > > > > Can you confirm that you get the same libraries
> included in the link
> > > > > line?
> > > > >
> > > > > Michael
> > > > > --
> > > > > Michael Peppler - Data Migrations Inc. -
> > http://www.mbay.net/~mpeppler
> > > > mpeppler@peppler.org - mpeppler@mbay.net
> > > > International Sybase User Group - http://www.isug.com
> > > >
> > > >
> > >
> >
> > --
> > Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
> > mpeppler@peppler.org - mpeppler@mbay.net
> > International Sybase User Group - http://www.isug.com
> >
> >
>
> --
> Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
> mpeppler@peppler.org - mpeppler@mbay.net
> International Sybase User Group - http://www.isug.com
>
>
|