We are upgrading our Sybase from 11.0 to 12.5.  I am having problems testing
the DBD-Sybase-1.00 module on Solaris 2.8.
 
I set
EXTRA_LIBS=-ltli
In the config file.
 
ENVIRONMENT VARIABLES ARE SET TO:
$ echo $SYBASE
/opt/sybase12.5
$ echo $SYBASE_OCS
OCS-12_5
$ echo $LD_LIBRARY_PATH
/opt/sybase12.5/OCS-12_5/lib:/opt/sybase12.5/OCS-12_5/lib3:/usr/lib
(I tried unsetting LD_LIBRARY_PATH and the results are the same).
 
$ /usr/local/bin/perl Makefile.PL
Sybase OpenClient 12.5 found.
The DBD::Sybase module need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: undef): CASCADESB
User ID to log in to Sybase (default: sa): 
Password (default: undef): XXXXXXX
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lct
Note (probably harmless): No library found for -lcs
Note (probably harmless): No library found for -ltcl
Note (probably harmless): No library found for -lcomn
Using DBI 1.201 installed in
/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/sun4-solaris-thread-multi/auto
/DBI
Writing Makefile for DBD::Sybase
 
$ make
gcc -c -I/opt/sybase12.5/OCS-12_5/include
-I/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/sun4-solaris-thread-multi/au
to/DBI -DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"1.00\"  -DXS_VERSION=\"1.00\" -fPIC
-I/usr/local/ActivePerl-5.6/lib/5.6.1/sun4-solaris-thread-multi/CORE
Sybase.c
gcc -c -I/opt/sybase12.5/OCS-12_5/include
-I/usr/local/ActivePerl-5.6/lib/site_perl/5.6.1/sun4-solaris-thread-multi/au
to/DBI -DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"1.00\"  -DXS_VERSION=\"1.00\" -fPIC
-I/usr/local/ActivePerl-5.6/lib/5.6.1/sun4-solaris-thread-multi/CORE
dbdimp.c
rm -f blib/arch/auto/DBD/Sybase/Sybase.so
LD_RUN_PATH="/usr/lib" gcc  -L/opt/sybase12.5/OCS-12_5/lib -G
-L/usr/local/lib Sybase.o  dbdimp.o  -o blib/arch/auto/DBD/Sybase/Sybase.so
-L/opt/sybase12.5/OCS-12_5/lib -lintl -ldl -lm  
chmod 755 blib/arch/auto/DBD/Sybase/Sybase.so
 
$ ldd ./blib/arch/auto/DBD/Sybase/Sybase.so
        libintl.so.1 =>  /usr/lib/libintl.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
        /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
 
Shouldn't my libraries be pointing to Sybase?
Here are a couple of the errors:
t/place.............install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
/usr/local/bin/perl: fatal: relocation error: file
blib/arch/auto/DBD/Sybase/Sybase.so: symbol ct_con_props: referenced symbol
not found at
/usr/local/ActivePerl-5.6/lib/5.6.1/sun4-solaris-thread-multi/DynaLoader.pm
line 206.
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
t/place.............dubious

        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
        Failed 10/11 tests, 9.09% okay
t/xblob.............install_driver(Sybase) failed: Can't load
'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
/usr/local/bin/perl: fatal: relocation error: file
blib/arch/auto/DBD/Sybase/Sybase.so: symbol ct_con_props: referenced symbol
not found at
/usr/local/ActivePerl-5.6/lib/5.6.1/sun4-solaris-thread-multi/DynaLoader.pm
line 206.
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
t/xblob.............dubious

        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-6
        Failed 5/6 tests, 16.67% okay
 
The "make test" fails miserably.  I already have DBD-Sybase-0.23 installed
but it won't work with Sybase 12.
Any help would be appreciated.  Thanks.
Mike Petry
 
 

Reply via email to