|
|
sybperl-l Archive
Up Prev Next
From: ye wei <yw at alabanza dot net>
Subject: "undefined symbol: scl_init " again!
Date: May 8 2000 1:53AM
Hi,
I remembered when I first installed sybperl, I got "unefined symbol:
scl_init" error, then
I fixed it by modifying CONFIG file, and setting up sybase environment.
But yesterday
when I tried to install sybperl on my laptop computer, I got it once
again, even after I setup
'CONFIG', 'PWD' file and environment variables. I tried to build with
dynamic and static link libct.so,
but both failed at last.
This is the screenshot when I tried to build with dynamic link libct.so,
after I have run 'make install'.
My computer are installed with Redhat6.1, kernel upgraded to 2.2.14,
sybase-11.9.2-linux, sybperl-2.11 and perl 5.005_3.
[root@ywlap sybperl-2.11]# make test
make[1]: Entering directory `/home/yw/linux/sybperl-2.11/BCP'
make[1]: Leaving directory `/home/yw/linux/sybperl-2.11/BCP'
make[1]: Entering directory `/home/yw/linux/sybperl-2.11/CTlib'
make[1]: Leaving directory `/home/yw/linux/sybperl-2.11/CTlib'
make[1]: Entering directory `/home/yw/linux/sybperl-2.11/DBlib'
make[1]: Leaving directory `/home/yw/linux/sybperl-2.11/DBlib'
make[1]: Entering directory `/home/yw/linux/sybperl-2.11/Sybperl'
make[1]: Leaving directory `/home/yw/linux/sybperl-2.11/Sybperl'
make[1]: Entering directory `/home/yw/linux/sybperl-2.11/BCP'
PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib
-I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
ok
All tests successful.
Files=1, Tests=9, 1 wallclock secs ( 0.37 cusr + 0.03 csys = 0.40
CPU)
make[1]: Leaving directory `/home/yw/linux/sybperl-2.11/BCP'
make[1]: Entering directory `/home/yw/linux/sybperl-2.11/CTlib'
PERL_DL_NONLAZY=1 /usr/bin/perl -I../blib/arch -I../blib/lib
-I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
Can't load '../blib/arch/auto/Sybase/CTlib/CTlib.so' for module
Sybase::CTlib: /home/sybase-11.9.2/lib/libct.so: undefined symbol:
scl_sess_alloc at
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/perl5/5.00503/i386-linux/DynaLoader.pm line 169.
at t/ctlib.t line 11
BEGIN failed--compilation aborted at t/ctlib.t line 11.
dubious
Test returned status 255 (wstat 65280, 0xff00)
Undefined subroutine &Test::Harness::WCOREDUMP called at
/usr/lib/perl5/5.00503/Test/Harness.pm line 288.
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory `/home/yw/linux/sybperl-2.11/CTlib'
make: *** [test] Error 2
[root@ywlap sybperl-2.11]# cd eg
[root@ywlap eg]# perl -d ct_sql.pl
Loading DB routines from perl5db.pl version 1.0402
Emacs support available.
Enter h or `h h' for help.
perl: error in loading shared libraries:
/home/sybase-11.9.2/lib/libct.so: undefined symbol: scl_init
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ywlap eg]#
[yw@ywlap yw]$ uname -a
Linux ywlap.alabanza.com 2.2.14 #1 Tue May 2 21:08:33 EDT 2000 i686
unknown
[yw@ywlap yw]$
[yw@ywlap yw]$ more /etc/ld.so.conf
/usr/X11R6/lib
/usr/i486-linux-libc5/lib
/home/sybase-11.9.2/lib
/usr/local/lib
[yw@ywlap yw]$
[yw@ywlap yw]$ ls -l /home/sybase-11.9.2/lib
total 1896
-r-xr-xr-x 1 root root 3703 Jul 12 1999 examples.so*
-r-xr-xr-x 1 root root 398293 Jun 7 1999 libcomn.so*
-r-xr-xr-x 1 root root 55936 Jun 7 1999 libcs.so*
-r-xr-xr-x 1 root root 441107 Jun 7 1999 libct.so*
-r-xr-xr-x 1 root root 10139 Jun 7 1999 libinsck.so*
-r-xr-xr-x 1 root root 31922 Jun 7 1999 libintl.so*
-r-xr-xr-x 1 root root 782151 Jun 7 1999 libsybdb.so*
-r-xr-xr-x 1 root root 156706 Jun 7 1999 libsybtcl.so*
-r-xr-xr-x 1 root root 6260 Jul 12 1999 sybsyesp.so*
-r-xr-xr-x 1 root root 18237 Jul 12 1999 xpsmsgs.so*
[yw@ywlap yw]$
"/home/sybase-11.9.2/ilb" is in /etc/ld.so.conf, and I even manually run
'ldconfig' to make sure it's in search path.
Any suggestion are very appericated!! Thanks in advance!!
--
Sincerely,
Ye wei
|