PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: dobbie1 <dobbie1 at swipnet dot se>
Subject: Re: Sybperl: make error 1
Date: Nov 18 2005 1:31PM

Sorry again. I misunderstood the questions asked by the script.

As I call isql using:
isql -Usa -P -SNEAT
and the database I want to have access to is named 'prod', I did:
#make clean

# perl Makefile.PL
/sybase
Sybase OpenClient 11.1.1 found.
The sybperl modules need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: SYBASE): NEAT
User ID to log in to Sybase (default: sa):
Password (default: undef):
Sybase database to use on NEAT (default: undef): prod

* Writing login information, including password, to file PWD.

Checking if your kit is complete...
Looks good
/sybase
Sybase OpenClient 11.1.1 found.
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::BLK
/sybase
Sybase OpenClient 11.1.1 found.
Note (probably harmless): No library found for -lblk
Writing Makefile for Sybase::CTlib
/sybase
Sybase OpenClient 11.1.1 found.
Writing Makefile for Sybase::DBlib
/sybase
Sybase OpenClient 11.1.1 found.
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

#vi DBlib/Makefile:
#EXTRALIBS = -L/sybase/lib -lsybdb -lskrb
EXTRALIBS = -L/sybase/lib -lsybdb
#LDLOADLIBS = -L/sybase/lib -lsybdb -lskrb -lm
LDLOADLIBS = -L/sybase/lib -lsybdb -lm

# make
cp lib/ctutil.pl blib/lib/ctutil.pl
cp lib/sql.pl blib/lib/sql.pl
cp lib/sybutil.pl blib/lib/sybutil.pl
cp lib/sybperl.pl blib/lib/sybperl.pl
make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
cp BCP.pm ../blib/lib/Sybase/BCP.pm
Manifying ../blib/man3/Sybase::BCP.3
make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
cp BLK.pm ../blib/lib/Sybase/BLK.pm
Manifying ../blib/man3/Sybase::BLK.3
make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting ../blib/lib/Sybase/CTlib.pm (../blib/lib/auto/Sybase/CTlib)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp 
-prototypes -typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap  
CTlib.xs > CTlib.xsc && mv CTlib.xsc CTlib.c
gcc -c  -I/sybase/include -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   
-DVERSION=\"2.18\" -DXS_VERSION=\"2.18\" -fPIC 
"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE"  -DCTLIBVS=100 
-DSYBPLVER='"2.18"' -DDO_TIE -DNOBLK CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.so
LD_RUN_PATH="/sybase/lib" gcc  -L/sybase/lib -G -L/usr/local/lib 
CTlib.o  -o ../blib/arch/auto/Sybase/CTlib/CTlib.so   -L/sybase/lib -lct 
-lcs -ltcl -lcomn -lintl -lskrb -lm  
chmod 755 ../blib/arch/auto/Sybase/CTlib/CTlib.so
cp CTlib.bs ../blib/arch/auto/Sybase/CTlib/CTlib.bs
chmod 644 ../blib/arch/auto/Sybase/CTlib/CTlib.bs
Manifying ../blib/man3/Sybase::CTlib.3
make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
cp DBlib.pm ../blib/lib/Sybase/DBlib.pm
AutoSplitting ../blib/lib/Sybase/DBlib.pm (../blib/lib/auto/Sybase/DBlib)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp 
-prototypes -typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap  
DBlib.xs > DBlib.xsc && mv DBlib.xsc DBlib.c
gcc -c  -I/sybase/include -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   
-DVERSION=\"2.18\" -DXS_VERSION=\"2.18\" -fPIC 
"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE"  -DDBLIBVS=1000 
-DSYBPLVER='"2.18"' -DDO_TIE -DNOBLK DBlib.c
Running Mkbootstrap for Sybase::DBlib ()
chmod 644 DBlib.bs
rm -f ../blib/arch/auto/Sybase/DBlib/DBlib.so
LD_RUN_PATH="/sybase/lib" gcc  -L/sybase/lib -G -L/usr/local/lib 
DBlib.o  -o ../blib/arch/auto/Sybase/DBlib/DBlib.so   -L/sybase/lib 
-lsybdb -lm  
chmod 755 ../blib/arch/auto/Sybase/DBlib/DBlib.so
cp DBlib.bs ../blib/arch/auto/Sybase/DBlib/DBlib.bs
chmod 644 ../blib/arch/auto/Sybase/DBlib/DBlib.bs
Manifying ../blib/man3/Sybase::DBlib.3
make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
cp Sybperl.pm ../blib/lib/Sybase/Sybperl.pm
AutoSplitting ../blib/lib/Sybase/Sybperl.pm 
(../blib/lib/auto/Sybase/Sybperl)
Manifying ../blib/man3/Sybase::Sybperl.3
make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
Manifying blib/man3/sybperl.3

# make test
make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1_db_dblib...........ok                                                    

t/1_db_money...........ok                                                    

t/2_ct_ctlib...........ok                                                    

t/2_ct_cursor..........ok                                                    

t/2_ct_nsql............ok                                                    

t/2_ct_prepare.........ok                                                    

t/2_ct_xblk............blk_alloc not implemented on this architecture at 
t/2_ct_xblk.t line 38.
t/2_ct_xblk............dubious                                               

        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 3-21
        Failed 19/21 tests, 9.52% okay
t/3_bcp................Sybase message 4806, Severity 16, state 1
Line 1
    You cannot run the non-logged version of bulk copy in this database. 
Please check with the DBO.

    1> insert bulk prod..bcp
bcp_init failed. at t/3_bcp.t line 53
t/3_bcp................dubious                                               

        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 5-9
        Failed 5/9 tests, 44.44% okay
t/4_blk................ok 1/19blk_alloc not implemented on this 
architecture at /tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 494.
t/4_blk................dubious                                               

        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 5-19
        Failed 15/19 tests, 21.05% okay
t/5_sybperl............ok                                                    

t/5_sybperl_dbmoney....ok                                                    

Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/2_ct_xblk.t  255 65280    21   38 180.95%  3-21
t/3_bcp.t        2   512     9   10 111.11%  5-9
t/4_blk.t      255 65280    19   30 157.89%  5-19
Failed 3/11 test scripts, 72.73% okay. 39/215 subtests failed, 81.86% okay.
make: *** [test_dynamic] Error 29

As I can see from the messages above blk_alloc not implemented in 
Sybase. I am running Sybase 11.9.2

Any hints ?

Marek

michael.peppler@bnpparibas.com wrote:

>Errr...
>
>t/1_db_dblib...........Sybase error: Server name not found in interface
>file.
>
>That would seem to be a pretty obvious problem, no?
>The Sybase database server you are trying to connect to (as specified
>during the perl Makefile.PL run, and stored in the PWD file) isn't present
>in your interfaces file ($SYBASE/interfaces), so the test scripts don't
>know how to connect to a Sybase server to run the tests...
>
>Michael
>
>
>
>
>
>Internet
>dobbie1@swipnet.se@peppler.org - 18/11/2005 13:50
>
>
>Sent by:    owner-sybperl-l@peppler.org
>
>To:    sybperl-l
>
>cc:    Michael PEPPLER
>
>
>Subject:    Re: Sybperl: make error 1
>
>
>Following your reply below, I did:
>make clean
>perl Makefile.PL
>vi DBlib/Makefile:
>#EXTRALIBS = -L/sybase/lib -lsybdb -lskrb
>EXTRALIBS = -L/sybase/lib -lsybdb
>#LDLOADLIBS = -L/sybase/lib -lsybdb -lskrb -lm
>LDLOADLIBS = -L/sybase/lib -lsybdb -lm
>make
>
>'make test' yielded the following messages:
># make test
>make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
>make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
>make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
>make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
>make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
>make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
>make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
>make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
>make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
>make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
>PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
>"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>t/1_db_dblib...........Sybase error: Server name not found in interface
>file.
>not ok 1
>-- The supplied login id/password combination may be invalid
>t/1_db_dblib...........dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 1-22
>        Failed 22/22 tests, 0.00% okay
>t/1_db_money...........DB-Library error:
>        Server name not found in interface file.
>not ok 1
>-- The userid/password combination may be invalid - check the PWD file
>t/1_db_money...........dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 1-13
>        Failed 13/13 tests, 0.00% okay
>t/2_ct_ctlib...........
>Open Client Message: (In msg_cb)
>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>Message String: ct_connect(): directory service layer: internal
>directory control layer error: Requested server name not found.
>connection failed... at t/2_ct_ctlib.t line 32.
>Can't call method "ct_execute" on an undefined value at t/2_ct_ctlib.t
>line 38.
>t/2_ct_ctlib...........dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-30
>        Failed 29/30 tests, 3.33% okay
>t/2_ct_cursor..........
>Open Client Message:
>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>Message String: ct_connect(): directory service layer: internal
>directory control layer error: Requested server name not found.
>connection failed... at t/2_ct_cursor.t line 27.
>not ok 2
>-- The user id/password combination may be invalid.
>t/2_ct_cursor..........dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-22
>        Failed 21/22 tests, 4.55% okay
>t/2_ct_nsql............
>Open Client Message:
>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>Message String: ct_connect(): directory service layer: internal
>directory control layer error: Requested server name not found.
>connection failed... at t/2_ct_nsql.t line 22.
>Can't call method "nsql" on an undefined value at t/2_ct_nsql.t line 27.
>t/2_ct_nsql............dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-4
>        Failed 3/4 tests, 25.00% okay
>t/2_ct_prepare.........
>Open Client Message:
>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>Message String: ct_connect(): directory service layer: internal
>directory control layer error: Requested server name not found.
>connection failed... at t/2_ct_prepare.t line 23.
>Can't call method "ct_execute" on an undefined value at t/2_ct_prepare.t
>line 29.
>t/2_ct_prepare.........dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-15
>        Failed 14/15 tests, 6.67% okay
>t/2_ct_xblk............connection failed... at t/2_ct_xblk.t line 29.
>Can't call method "ct_sql" on unblessed reference at t/2_ct_xblk.t line 36.
>t/2_ct_xblk............dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-21
>        Failed 20/21 tests, 4.76% okay
>t/3_bcp................Sybase error: Server name not found in interface
>file.
>Can't call method "sql" on an undefined value at t/3_bcp.t line 33.
>t/3_bcp................dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-9
>        Failed 8/9 tests, 11.11% okay
>t/4_blk................ok
>1/19
>Open Client Message:
>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>Message String: ct_connect(): directory service layer: internal
>directory control layer error: Requested server name not found.
>connection failed... at /tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 363.
># Failed test 2 in t/4_blk.t at line 23
>#  t/4_blk.t line 23 is: ok(defined($X));               # 2
>Can't call method "ct_sql" on an undefined value at t/4_blk.t line 27.
>t/4_blk................dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 2-19
>        Failed 18/19 tests, 5.26% okay
>t/5_sybperl............Sybase error: Server name not found in interface
>file.
>not ok 1
>-- You may need to edit t/sybperl.t to add login names and passwords
>t/5_sybperl............dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 1-28
>        Failed 28/28 tests, 0.00% okay
>t/5_sybperl_dbmoney....Sybase error: Server name not found in interface
>file.
>not ok 1
>-- You may need to edit t/dbmoney.t to add login names and passwords
>t/5_sybperl_dbmoney....dubious
>
>        Test returned status 255 (wstat 65280, 0xff00)
>DIED. FAILED tests 1-32
>        Failed 32/32 tests, 0.00% okay
>Failed Test           Stat Wstat Total Fail  Failed  List of Failed
>-------------------------------------------------------------------------------
>
>t/1_db_dblib.t         255 65280    22   44 200.00%  1-22
>t/1_db_money.t         255 65280    13   26 200.00%  1-13
>t/2_ct_ctlib.t         255 65280    30   57 190.00%  2-30
>t/2_ct_cursor.t        255 65280    22   42 190.91%  2-22
>t/2_ct_nsql.t          255 65280     4    5 125.00%  2-4
>t/2_ct_prepare.t       255 65280    15   27 180.00%  2-15
>t/2_ct_xblk.t          255 65280    21   39 185.71%  2-21
>t/3_bcp.t              255 65280     9   15 166.67%  2-9
>t/4_blk.t              255 65280    19   35 184.21%  2-19
>t/5_sybperl.t          255 65280    28   56 200.00%  1-28
>t/5_sybperl_dbmoney.t  255 65280    32   64 200.00%  1-32
>Failed 11/11 test scripts, 0.00% okay. 208/215 subtests failed, 3.26% okay.
>make: *** [test_dynamic] Error 255
>
>What is wrong now ?
>
>Marek
>
>michael.peppler@bnpparibas.com wrote:
>
>  
>
>>OK - that's a different problem.
>>
>>You need to edit the sybperl-2.xx/DBlib/Makefile and remove any references
>>to -lskrb, and then rebuild.
>>
>>I suggest the following:
>>
>>cd sybperl-2.18
>>make clean
>>perl Makefile.PL
>>...
>>vi DBlib/Makefile - remove any -lskrb you find
>>make
>>make test
>>
>>Michael
>>
>>
>>
>>
>>Internet
>>dobbie1@swipnet.se@peppler.org - 18/11/2005 12:19
>>
>>
>>Sent by:    owner-sybperl-l@peppler.org
>>
>>To:    sybperl-l
>>
>>cc:    Michael PEPPLER
>>
>>
>>Subject:    Re: Sybperl: make error 1
>>
>>
>>Hello,
>>
>>Pardon me for being ignorant about README.
>>
>>Before 'make install' I did 'make test':
>># make test
>>make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
>>make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
>>make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
>>make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
>>make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
>>make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
>>make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
>>make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
>>make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
>>make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
>>PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
>>"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>>t/1_db_dblib...........Can't load
>>'/tmp/sybperl-2.18/blib/arch/auto/Sybase/DBlib/DBlib.so' for module
>>Sybase::DBlib: ld.so.1: /usr/local/bin/perl: fatal: relocation error:
>>file /sybase/lib/libskrb.so: symbol netp_dlopen_svr4: referenced symbol
>>not found at /usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line
>>230.
>>at t/1_db_dblib.t line 9
>>Compilation failed in require at t/1_db_dblib.t line 9.
>>BEGIN failed--compilation aborted at t/1_db_dblib.t line 9.
>>t/1_db_dblib...........dubious
>>
>>       Test returned status 2 (wstat 512, 0x200)
>>t/1_db_money...........Can't load
>>'/tmp/sybperl-2.18/blib/arch/auto/Sybase/DBlib/DBlib.so' for module
>>Sybase::DBlib: ld.so.1: /usr/local/bin/perl: fatal: relocation error:
>>file /sybase/lib/libskrb.so: symbol netp_dlopen_svr4: referenced symbol
>>not found at /usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line
>>230.
>>at t/1_db_money.t line 9
>>Compilation failed in require at t/1_db_money.t line 9.
>>BEGIN failed--compilation aborted at t/1_db_money.t line 9.
>>t/1_db_money...........dubious
>>
>>       Test returned status 2 (wstat 512, 0x200)
>>t/2_ct_ctlib...........
>>Open Client Message: (In msg_cb)
>>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>>Message String: ct_connect(): directory service layer: internal
>>directory control layer error: Requested server name not found.
>>connection failed... at t/2_ct_ctlib.t line 32.
>>Can't call method "ct_execute" on an undefined value at t/2_ct_ctlib.t
>>line 38.
>>t/2_ct_ctlib...........dubious
>>
>>       Test returned status 255 (wstat 65280, 0xff00)
>>DIED. FAILED tests 2-30
>>       Failed 29/30 tests, 3.33% okay
>>t/2_ct_cursor..........
>>Open Client Message:
>>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>>Message String: ct_connect(): directory service layer: internal
>>directory control layer error: Requested server name not found.
>>connection failed... at t/2_ct_cursor.t line 27.
>>not ok 2
>>-- The user id/password combination may be invalid.
>>t/2_ct_cursor..........dubious
>>
>>       Test returned status 255 (wstat 65280, 0xff00)
>>DIED. FAILED tests 2-22
>>       Failed 21/22 tests, 4.55% okay
>>t/2_ct_nsql............
>>Open Client Message:
>>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>>Message String: ct_connect(): directory service layer: internal
>>directory control layer error: Requested server name not found.
>>connection failed... at t/2_ct_nsql.t line 22.
>>Can't call method "nsql" on an undefined value at t/2_ct_nsql.t line 27.
>>t/2_ct_nsql............dubious
>>
>>       Test returned status 255 (wstat 65280, 0xff00)
>>DIED. FAILED tests 2-4
>>       Failed 3/4 tests, 25.00% okay
>>t/2_ct_prepare.........
>>Open Client Message:
>>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>>Message String: ct_connect(): directory service layer: internal
>>directory control layer error: Requested server name not found.
>>connection failed... at t/2_ct_prepare.t line 23.
>>Can't call method "ct_execute" on an undefined value at t/2_ct_prepare.t
>>line 29.
>>t/2_ct_prepare.........dubious
>>
>>       Test returned status 255 (wstat 65280, 0xff00)
>>DIED. FAILED tests 2-15
>>       Failed 14/15 tests, 6.67% okay
>>t/2_ct_xblk............connection failed... at t/2_ct_xblk.t line 29.
>>Can't call method "ct_sql" on unblessed reference at t/2_ct_xblk.t line
>>    
>>
>36.
>  
>
>>t/2_ct_xblk............dubious
>>
>>       Test returned status 255 (wstat 65280, 0xff00)
>>DIED. FAILED tests 2-21
>>       Failed 20/21 tests, 4.76% okay
>>t/3_bcp................Can't load
>>'/tmp/sybperl-2.18/blib/arch/auto/Sybase/DBlib/DBlib.so' for module
>>Sybase::DBlib: ld.so.1: /usr/local/bin/perl: fatal: relocation error:
>>file /sybase/lib/libskrb.so: symbol netp_dlopen_svr4: referenced symbol
>>not found at /usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line
>>230.
>>at /tmp/sybperl-2.18/blib/lib/Sybase/BCP.pm line 278
>>Compilation failed in require at
>>/tmp/sybperl-2.18/blib/lib/Sybase/BCP.pm line 278.
>>BEGIN failed--compilation aborted at
>>/tmp/sybperl-2.18/blib/lib/Sybase/BCP.pm line 278.
>>Compilation failed in require at t/3_bcp.t line 14.
>>BEGIN failed--compilation aborted at t/3_bcp.t line 14.
>>t/3_bcp................dubious
>>
>>       Test returned status 2 (wstat 512, 0x200)
>>DIED. FAILED tests 1-9
>>       Failed 9/9 tests, 0.00% okay
>>t/4_blk................ok
>>1/19
>>Open Client Message:
>>Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
>>Message String: ct_connect(): directory service layer: internal
>>directory control layer error: Requested server name not found.
>>connection failed... at /tmp/sybperl-2.18/blib/lib/Sybase/BLK.pm line 363.
>># Failed test 2 in t/4_blk.t at line 23
>>#  t/4_blk.t line 23 is: ok(defined($X));               # 2
>>Can't call method "ct_sql" on an undefined value at t/4_blk.t line 27.
>>t/4_blk................dubious
>>
>>       Test returned status 255 (wstat 65280, 0xff00)
>>DIED. FAILED tests 2-19
>>       Failed 18/19 tests, 5.26% okay
>>t/5_sybperl............Can't load
>>'/tmp/sybperl-2.18/blib/arch/auto/Sybase/DBlib/DBlib.so' for module
>>Sybase::DBlib: ld.so.1: /usr/local/bin/perl: fatal: relocation error:
>>file /sybase/lib/libskrb.so: symbol netp_dlopen_svr4: referenced symbol
>>not found at /usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line
>>230.
>>at /tmp/sybperl-2.18/blib/lib/Sybase/Sybperl.pm line 79
>>Compilation failed in require at
>>/tmp/sybperl-2.18/blib/lib/Sybase/Sybperl.pm line 79.
>>BEGIN failed--compilation aborted at
>>/tmp/sybperl-2.18/blib/lib/Sybase/Sybperl.pm line 79.
>>Compilation failed in require at /tmp/sybperl-2.18/blib/lib/sybperl.pl
>>line 17.
>>BEGIN failed--compilation aborted at
>>/tmp/sybperl-2.18/blib/lib/sybperl.pl line 17.
>>Compilation failed in require at t/5_sybperl.t line 7.
>>t/5_sybperl............dubious
>>
>>       Test returned status 2 (wstat 512, 0x200)
>>DIED. FAILED tests 1-28
>>       Failed 28/28 tests, 0.00% okay
>>t/5_sybperl_dbmoney....Can't load
>>'/tmp/sybperl-2.18/blib/arch/auto/Sybase/DBlib/DBlib.so' for module
>>Sybase::DBlib: ld.so.1: /usr/local/bin/perl: fatal: relocation error:
>>file /sybase/lib/libskrb.so: symbol netp_dlopen_svr4: referenced symbol
>>not found at /usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line
>>230.
>>at /tmp/sybperl-2.18/blib/lib/Sybase/Sybperl.pm line 79
>>Compilation failed in require at
>>/tmp/sybperl-2.18/blib/lib/Sybase/Sybperl.pm line 79.
>>BEGIN failed--compilation aborted at
>>/tmp/sybperl-2.18/blib/lib/Sybase/Sybperl.pm line 79.
>>Compilation failed in require at /tmp/sybperl-2.18/blib/lib/sybperl.pl
>>line 17.
>>BEGIN failed--compilation aborted at
>>/tmp/sybperl-2.18/blib/lib/sybperl.pl line 17.
>>Compilation failed in require at t/5_sybperl_dbmoney.t line 7.
>>t/5_sybperl_dbmoney....dubious
>>
>>       Test returned status 2 (wstat 512, 0x200)
>>DIED. FAILED tests 1-32
>>       Failed 32/32 tests, 0.00% okay
>>Failed Test           Stat Wstat Total Fail  Failed  List of Failed
>>-------------------------------------------------------------------------------
>>    
>>
>
>  
>
>>t/1_db_dblib.t           2   512    ??   ??       %  ??
>>t/1_db_money.t           2   512    ??   ??       %  ??
>>t/2_ct_ctlib.t         255 65280    30   57 190.00%  2-30
>>t/2_ct_cursor.t        255 65280    22   42 190.91%  2-22
>>t/2_ct_nsql.t          255 65280     4    5 125.00%  2-4
>>t/2_ct_prepare.t       255 65280    15   27 180.00%  2-15
>>t/2_ct_xblk.t          255 65280    21   39 185.71%  2-21
>>t/3_bcp.t                2   512     9   17 188.89%  1-9
>>t/4_blk.t              255 65280    19   35 184.21%  2-19
>>t/5_sybperl.t            2   512    28   56 200.00%  1-28
>>t/5_sybperl_dbmoney.t    2   512    32   64 200.00%  1-32
>>Failed 11/11 test scripts, 0.00% okay. 174/180 subtests failed, 3.33%
>>    
>>
>okay.
>  
>
>>make: *** [test_dynamic] Error 2
>>
>>What is still missing ?
>>
>>Marek
>>
>>michael.peppler@bnpparibas.com wrote:
>>
>>
>>
>>    
>>
>>>You need to run "make install" to put the modules in the right place....
>>>
>>>Michael
>>>
>>>
>>>
>>>
>>>Internet
>>>dobbie1@swipnet.se - 18/11/2005 11:45
>>>
>>>
>>>To:     sybperl-l
>>>cc:     Michael PEPPLER
>>>Subject:        Re: Sybperl: make error 1
>>>
>>>
>>>Hello again,
>>>
>>>Following your hint below I have created a dummpy sqlda.h, and rebuilt
>>>Sybperl:
>>># cd /tmp
>>># cd sybperl-2.18
>>># make
>>>make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
>>># perl Makefile.PL
>>>/sybase
>>>Sybase OpenClient 11.1.1 found.
>>>The sybperl modules need access to a Sybase server to run the tests.
>>>To clear an entry please enter 'undef'
>>>Sybase server to use (default: SYBASE):
>>>User ID to log in to Sybase (default: sa):
>>>Password (default: undef):
>>>Sybase database to use on SYBASE (default: undef): NEAT
>>>
>>>* Writing login information, including password, to file PWD.
>>>
>>>/sybase
>>>Sybase OpenClient 11.1.1 found.
>>>Writing Makefile for Sybase::BCP
>>>Writing Makefile for Sybase::BLK
>>>/sybase
>>>Sybase OpenClient 11.1.1 found.
>>>Note (probably harmless): No library found for -lblk
>>>Writing Makefile for Sybase::CTlib
>>>/sybase
>>>Sybase OpenClient 11.1.1 found.
>>>Writing Makefile for Sybase::DBlib
>>>/sybase
>>>Sybase OpenClient 11.1.1 found.
>>>Writing Makefile for Sybase::Sybperl
>>>Writing Makefile for Sybase
>>># make
>>>make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
>>>Manifying ../blib/man3/Sybase::BCP.3
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
>>>Manifying ../blib/man3/Sybase::BLK.3
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
>>>Skip ../blib/lib/Sybase/CTlib.pm (unchanged)
>>>gcc -c  -I/sybase/include -fno-strict-aliasing -pipe
>>>-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
>>>-DVERSION=\"2.18\" -DXS_VERSION=\"2.18\" -fPIC
>>>"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE"  -DCTLIBVS=100
>>>-DSYBPLVER='"2.18"' -DDO_TIE -DNOBLK CTlib.c
>>>Running Mkbootstrap for Sybase::CTlib ()
>>>chmod 644 CTlib.bs
>>>rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.so
>>>LD_RUN_PATH="/sybase/lib" gcc  -L/sybase/lib -G -L/usr/local/lib
>>>CTlib.o  -o ../blib/arch/auto/Sybase/CTlib/CTlib.so   -L/sybase/lib -lct
>>>-lcs -ltcl -lcomn -lintl -lskrb -lm
>>>chmod 755 ../blib/arch/auto/Sybase/CTlib/CTlib.so
>>>cp CTlib.bs ../blib/arch/auto/Sybase/CTlib/CTlib.bs
>>>chmod 644 ../blib/arch/auto/Sybase/CTlib/CTlib.bs
>>>Manifying ../blib/man3/Sybase::CTlib.3
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/DBlib'
>>>Skip ../blib/lib/Sybase/DBlib.pm (unchanged)
>>>gcc -c  -I/sybase/include -fno-strict-aliasing -pipe
>>>-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
>>>-DVERSION=\"2.18\" -DXS_VERSION=\"2.18\" -fPIC
>>>"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE"  -DDBLIBVS=1000
>>>-DSYBPLVER='"2.18"' -DDO_TIE -DNOBLK DBlib.c
>>>Running Mkbootstrap for Sybase::DBlib ()
>>>chmod 644 DBlib.bs
>>>rm -f ../blib/arch/auto/Sybase/DBlib/DBlib.so
>>>LD_RUN_PATH="/sybase/lib" gcc  -L/sybase/lib -G -L/usr/local/lib
>>>DBlib.o  -o ../blib/arch/auto/Sybase/DBlib/DBlib.so   -L/sybase/lib
>>>-lsybdb -lskrb -lm
>>>chmod 755 ../blib/arch/auto/Sybase/DBlib/DBlib.so
>>>cp DBlib.bs ../blib/arch/auto/Sybase/DBlib/DBlib.bs
>>>chmod 644 ../blib/arch/auto/Sybase/DBlib/DBlib.bs
>>>Manifying ../blib/man3/Sybase::DBlib.3
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/DBlib'
>>>make[1]: Entering directory `/tmp/sybperl-2.18/Sybperl'
>>>Manifying ../blib/man3/Sybase::Sybperl.3
>>>make[1]: Leaving directory `/tmp/sybperl-2.18/Sybperl'
>>>Manifying blib/man3/sybperl.3
>>>
>>>The script that calls Sybperl contains:
>>>#!/usr/local/bin/perl
>>># Set program name
>>>$prog_name = substr($0, rindex($0, "/") + 1);
>>># Has to have perl5
>>>if ($] < 5.000)
>>> {
>>>     die("$prog_name: Perl version too old ($]).\n");
>>> }
>>># Packages
>>>use Sybase::Sybperl;
>>>
>>>This scripts aborts with the following message:
>>>
>>>
>>>      
>>>
>>>>print-nw
>>>>
>>>>
>>>>        
>>>>
>>>Can't locate Sybase/Sybperl.pm in @INC (@INC contains:
>>>/usr/local/lib/perl5/5.8.7/sun4-solaris /usr/local/lib/perl5/5.8.7
>>>/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris
>>>/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
>>>at print-nw line 52.
>>>BEGIN failed--compilation aborted at print-nw line 52.
>>>
>>>What have I missed here ?
>>>
>>>Marek
>>>
>>>michael.peppler@bnpparibas.com wrote:
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>Google is your friend.
>>>>
>>>>If you search on "sybperl sqlda" you should find the answer to your
>>>>question.
>>>>
>>>>Michael
>>>>
>>>>
>>>>
>>>>
>>>>Internet
>>>>dobbie1@swipnet.se@peppler.org - 18/11/2005 09:58
>>>>
>>>>Sent by:        owner-sybperl-l@peppler.org
>>>>To:     sybperl-l
>>>>cc:
>>>>Subject:        Re: Sybperl: make error 1
>>>>
>>>>
>>>>Hello again,
>>>>
>>>>Pardon my ignorance.
>>>>
>>>>I fetched perl 5.8.7 and binutils from www.sunfreeware.com, and started
>>>>to build sybperl again:
>>>># perl Makefile.PL
>>>>/sybase
>>>>Sybase OpenClient 11.1.1 found.
>>>>The sybperl modules need access to a Sybase server to run the tests.
>>>>To clear an entry please enter 'undef'
>>>>Sybase server to use (default: SYBASE):
>>>>User ID to log in to Sybase (default: sa):
>>>>Password (default: undef):
>>>>Sybase database to use on SYBASE (default: undef): NEAT
>>>>
>>>>* Writing login information, including password, to file PWD.
>>>>
>>>>/sybase
>>>>Sybase OpenClient 11.1.1 found.
>>>>Writing Makefile for Sybase::BCP
>>>>Writing Makefile for Sybase::BLK
>>>>/sybase
>>>>Sybase OpenClient 11.1.1 found.
>>>>Note (probably harmless): No library found for -lblk
>>>>Writing Makefile for Sybase::CTlib
>>>>/sybase
>>>>Sybase OpenClient 11.1.1 found.
>>>>Writing Makefile for Sybase::DBlib
>>>>/sybase
>>>>Sybase OpenClient 11.1.1 found.
>>>>Writing Makefile for Sybase::Sybperl
>>>>Writing Makefile for Sybase
>>>># make
>>>>make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
>>>>Manifying ../blib/man3/Sybase::BCP.3
>>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
>>>>make[1]: Entering directory `/tmp/sybperl-2.18/BLK'
>>>>Manifying ../blib/man3/Sybase::BLK.3
>>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BLK'
>>>>make[1]: Entering directory `/tmp/sybperl-2.18/CTlib'
>>>>Skip ../blib/lib/Sybase/CTlib.pm (unchanged)
>>>>gcc -c  -I/sybase/include -fno-strict-aliasing -pipe
>>>>-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
>>>>-DVERSION=\"2.18\" -DXS_VERSION=\"2.18\" -fPIC
>>>>"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE"  -DCTLIBVS=100
>>>>-DSYBPLVER='"2.18"' -DDO_TIE -DNOBLK CTlib.c
>>>>In file included from CTlib.xs:41:
>>>>/sybase/include/ctpublic.h:20:19: sqlda.h: No such file or directory
>>>>In file included from CTlib.xs:41:
>>>>/sybase/include/ctpublic.h:268: error: parse error before "SQLDA"
>>>>make[1]: *** [CTlib.o] Error 1
>>>>make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib'
>>>>make: *** [subdirs] Error 2
>>>>
>>>>As /sybase/include does not include sqlda.h, where do I find it ?
>>>>
>>>>Regards,
>>>>
>>>>Marek
>>>>
>>>>michael.peppler@bnpparibas.com wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>It does that because it pulls that information from Perl's Config.pm
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>file.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>That's why I suggested also building a new perl (or getting a gcc-built
>>>>>perl from www.sunfreeware.com)
>>>>>
>>>>>Michael
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Internet
>>>>>dobbie1@swipnet.se@peppler.org - 17/11/2005 22:39
>>>>>
>>>>>
>>>>>Sent by:    owner-sybperl-l@peppler.org
>>>>>
>>>>>To:    sybperl-l
>>>>>
>>>>>cc:    Michael PEPPLER
>>>>>
>>>>>
>>>>>Subject:    Re: Sybperl: make error 1
>>>>>
>>>>>
>>>>>Hello again,
>>>>>
>>>>>After having fetched gcc and make from www.sunfreeware.com, I re-run
>>>>>perl Makefile.PL
>>>>>Then modify Makefile to contain:
>>>>>#CC = cc
>>>>>CC = gcc
>>>>>#LD = cc
>>>>>LD = gcc
>>>>>
>>>>>Eventually I run make:
>>>>># make
>>>>>make[1]: Entering directory `/tmp/sybperl-2.18/BCP'
>>>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BCP'
>>>>>make[1]: Entering