Re: Sybperl: make error 1
dobbie1 <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
Michael, Thank you very much for your reply. I have re-run my original Perl script (print-nw), and it worked all the way through it. Marek [email protected] wrote: >You have a Sybase installation where the libblk.a library is missing (hence >the need for the -DNOBLK option.) >That means that those functions that need the BLK library won't be >available, but all the other features will work normally. > >Michael > > > > >Internet >[email protected]@peppler.org - 18/11/2005 14:31 > > >Sent by: [email protected] > >To: sybperl-l > >cc: Michael PEPPLER > > >Subject: Re: Sybperl: make error 1 > > >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 > >[email protected] 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 >>[email protected]@peppler.org - 18/11/2005 13:50 >> >> >>Sent by: [email protected] >> >>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 >> >>[email protected] 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 >>>[email protected]@peppler.org - 18/11/2005 12:19 >>> >>> >>>Sent by: [email protected] >>> >>>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 >>> >>>[email protected] wrote: >>> >>> >>> >>> >>> >>> >>> >>>>You need to run "make install" to put the modules in the right place.... >>>> >>>>Michael >>>> >>>> >>>> >>>> >>>>Internet >>>>[email protected] - 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 >>>> >>>>[email protected] wrote: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>Google is your friend. >>>>> >>>>>If you search on "sybperl sqlda" you should find the answer to your >>>>>question. >>>>> >>>>>Michael >>>>> >>>>> >>>>> >>>>> >>>>>Internet >>>>>[email protected]@peppler.org - 18/11/2005 09:58 >>>>> >>>>>Sent by: [email protected] >>>>>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 >>>>> >>>>>[email protected] 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 >>>>>>[email protected]@peppler.org - 17/11/2005 22:39 >>>>>> >>>>>> >>>>>>Sent by: [email protected] >>>>>> >>>>>>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 directory `/tmp/sybperl-2.18/BLK' >>>>>>make[1]: Leaving directory `/tmp/sybperl-2.18/BLK' >>>>>>make[1]: Entering directory `/tmp/sybperl-2.18/CTlib' >>>>>>cc -c -I/sybase/include -xO3 -xdepend -DVERSION=\"2.18\" >>>>>>-DXS_VERSION=\"2.18\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE >>>>>>-DCTLIBVS=100 -DSYBPLVER='"2.18"' -DDO_TIE -DNOBLK CTlib.c >>>>>>make[1]: cc: Command not found >>>>>>make[1]: *** [CTlib.o] Error 127 >>>>>>make[1]: Leaving directory `/tmp/sybperl-2.18/CTlib' >>>>>>make: *** [subdirs] Error 2 >>>>>> >>>>>>Why does make call 'cc -c -I/sybase/include ...' although I have >>>>>>modified CC and LD ? >>>>>> >>>>>>Marek >>>>>> >>>>>>dobbie1 wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Michael, >>>>>>> >>>>>>>Thank you for your reply. >>>>>>> >>>>>>>I will report my progress as soon I get all the pieces in place. >>>>>>> >>>>>>>Marek >>>>>>> >>>>>>>[email protected] wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>You need several things before you can get this to build. >>>>>>>> >>>>>>>>First you need a C compiler - either the one from Sun (not free) or >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>gcc >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>>>>(see www.sunfreeware.com). >>>>>>>> >>>>>>>>Once you have that you really need to rebuild perl or get a new perl >>>>>>>>binary >>>>>>>>built with gcc (from www.sunfreeware.com, for example) as it is >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>pretty >> >> >> >> >>>>>>>>tricky to get a perl module to build correctly when the main perl >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>binary >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>was created with a different compiler. >>>>>>>> >>>>>>>>Once all that is done, then you can build sybperl, and yes, the >>>>>>>>syntax you >>>>>>>>used in the CONFIG file is correct. >>>>>>>> >>>>>>>>Michael >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>Internet >>>>>>>>[email protected]@peppler.org - 11/11/2005 15:03 >>>>>>>> >>>>>>>> >>>>>>>>Sent by: [email protected] >>>>>>>> >>>>>>>>To: sybperl-l >>>>>>>> >>>>>>>>cc: Michael PEPPLER >>>>>>>> >>>>>>>> >>>>>>>>Subject: Re: Sybperl: make error 1 >>>>>>>> >>>>>>>> >>>>>>>>Hello again, >>>>>>>> >>>>>>>>Thank you for your reply. >>>>>>>> >>>>>>>>I am still missing a reply stating how I insert -DNOBLK into >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>EXTRA_DEFS. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>Should it be: >>>>>>>>EXTRA_DEFS=-DDO_TIE -DNOBLK >>>>>>>> >>>>>>>>I have digged deeper into make, and made the following: >>>>>>>># PATH=$PATH:/usr/ccs/bin; export PATH; echo $PATH >>>>>>>>/usr/sbin:/usr/bin:/usr/perl5:/usr/ccs/bin >>>>>>>># which make >>>>>>>>/usr/ccs/bin/make >>>>>>>> >>>>>>>>Now I run make: >>>>>>>># make >>>>>>>>mkdir ../blib/lib/Sybase >>>>>>>>mkdir ../blib/arch/auto/Sybase/BCP >>>>>>>>mkdir ../blib/lib/auto/Sybase/BCP >>>>>>>>cp BCP.pm ../blib/lib/Sybase/BCP.pm >>>>>>>>Manifying ../blib/man3/Sybase::BCP.3 >>>>>>>>mkdir ../blib/arch/auto/Sybase/BLK >>>>>>>>mkdir ../blib/lib/auto/Sybase/BLK >>>>>>>>cp BLK.pm ../blib/lib/Sybase/BLK.pm >>>>>>>>Manifying ../blib/man3/Sybase::BLK.3 >>>>>>>>mkdir ../blib/arch/auto/Sybase/CTlib >>>>>>>>mkdir ../blib/lib/auto/Sybase/CTlib >>>>>>>>cp CTlib.pm ../blib/lib/Sybase/CTlib.pm >>>>>>>>AutoSplitting ../blib/lib/Sybase/CTlib.pm >>>>>>>>(../blib/lib/auto/Sybase/CTlib) >>>>>>>>/usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 >>>>>>>>/usr/perl5/5.00503/ExtUtils/xsubpp -prototypes -typemap >>>>>>>>/usr/perl5/5.00503/ExtUtils/typemap CTlib.xs >xstmp.c && mv xstmp.c >>>>>>>>CTlib.c >>>>>>>>cc -c -I/sybase/include -xO3 -xdepend -DVERSION=\"2.18\" >>>>>>>>-DXS_VERSION=\"2.18\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE >>>>>>>>-DCTLIBVS=100 -DSYBPLVER='"2.18"' -DDO_TIE CTlib.c >>>>>>>>sh: cc: not found >>>>>>>>*** Error code 1 >>>>>>>>make: Fatal error: Command failed for target `CTlib.o' >>>>>>>>Current working directory /tmp/sybperl-2.18/CTlib >>>>>>>>*** Error code 1 >>>>>>>>make: Fatal error: Command failed for target `subdirs' >>>>>>>> >>>>>>>>I have found cc in /usr/ucb, appended the directory to $PATH, and >>>>>>>> >>>>>>>> >run > > >>>>>>>>make again: >>>>>>>># find / -name cc -print >>>>>>>>/usr/ucb/cc >>>>>>>># PATH=$PATH:/usr/ucb; export PATH; echo $PATH >>>>>>>>/usr/sbin:/usr/bin:/usr/perl5:/usr/ccs/bin:/usr/ucb >>>>>>>># make >>>>>>>>cc -c -I/sybase/include -xO3 -xdepend -DVERSION=\"2.18\" >>>>>>>>-DXS_VERSION=\"2.18\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE >>>>>>>>-DCTLIBVS=100 -DSYBPLVER='"2.18"' -DDO_TIE CTlib.c >>>>>>>>/usr/ucb/cc: language optional software package not installed >>>>>>>>*** Error code 1 >>>>>>>>make: Fatal error: Command failed for target `CTlib.o' >>>>>>>>Current working directory /tmp/sybperl-2.18/CTlib >>>>>>>>*** Error code 1 >>>>>>>>make: Fatal error: Command failed for target `subdirs' >>>>>>>> >>>>>>>>What cc package is missing ? >>>>>>>> >>>>>>>>Marek >>>>>>>> >>>>>>>>[email protected] wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Sorry -DNOBLK. >>>>>>>>> >>>>>>>>>For the make not being found I don't really know what the problem >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>might >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>be. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Michael >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>Internet >>>>>>>>>[email protected] - 11/11/2005 14:12 >>>>>>>>> >>>>>>>>>To: Michael PEPPLER >>>>>>>>> >>>>>>>>>cc: >>>>>>>>> >>>>>>>>> >>>>>>>>>Subject: Re: Sybperl: make error 1 >>>>>>>>> >>>>>>>>> >>>>>>>>>Hello again, >>>>>>>>> >>>>>>>>>I have checked CONFIG, and it contains: >>>>>>>>>EXTRA_DEFS=-DDO_TIE >>>>>>>>>Further on CONFIG mentions -DNOBLK, and not -DNO_BLK. >>>>>>>>>Which option is valid ? >>>>>>>>>How do I append the valid option to the existing EXTRA_DEFS ? >>>>>>>>> >>>>>>>>># which make >>>>>>>>>o make in /usr/sbin /usr/bin >>>>>>>>>Although I have changed the order in PATH: >>>>>>>>># echo $PATH >>>>>>>>>/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/perl5 >>>>>>>>># which make >>>>>>>>>o make in /usr/sbin /usr/bin >>>>>>>>> >>>>>>>>>What have I missed here ? >>>>>>>>> >>>>>>>>>Marek >>>>>>>>> >>>>>>>>>[email protected] wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>A couple of problems. >>>>>>>>>> >>>>>>>>>>First, the -lblk library is missing. This is "normal" on Solaris >>>>>>>>>>unless >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>you >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>have the full OpenClient SDK installed. >>>>>>>>>>For sybperl you should be able to add a -DNO_BLK in the CONFIG >>>>>>>>>> >>>>>>>>>> >file > > >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>to >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>get >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>around this and have the make succeed. >>>>>>>>>> >>>>>>>>>>Second, the make binary is indeed in /usr/ccs/bin. My guess is >>>>>>>>>> >>>>>>>>>> >that > > >>>>>>>>>>the >>>>>>>>>>path isn't quite right. What does "which make" produce? >>>>>>>>>> >>>>>>>>>>Michael >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>Internet >>>>>>>>>>[email protected]@peppler.org - 11/11/2005 11:21 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>Sent by: [email protected] >>>>>>>>>> >>>>>>>>>>To: sybperl-l >>>>>>>>>> >>>>>>>>>>cc: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>Subject: Sybperl: make error 1 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>Hello, >>>>>>>>>> >>>>>>>>>>Below is the screen output while trying to install Sybperl in my >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>Sun >> >> >> >> >>>>>>>>>>E250 running Solaris 8 and Sybase 11.9: >>>>>>>>>># PATH=$PATH:/usr/perl5 >>>>>>>>>># echo $PATH >>>>>>>>>>/usr/sbin:/usr/bin:/usr/perl5 >>>>>>>>>># perl -v >>>>>>>>>> >>>>>>>>>>This is perl, version 5.005_03 built for sun4-solaris >>>>>>>>>># 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): >>>>>>>>>> >>>>>>>>>>* 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 >>>>>>>>>># make >>>>>>>>>>make: not found >>>>>>>>>># find / -name make -print >>>>>>>>>>/usr/share/lib/make >>>>>>>>>>/usr/ccs/bin/make >>>>>>>>>>/usr/xpg4/bin/make >>>>>>>>>># PATH=$PATH:/usr/ccs/bin >>>>>>>>>># echo $PATH >>>>>>>>>>/usr/sbin:/usr/bin:/usr/perl5:/usr/ccs/bin >>>>>>>>>># make >>>>>>>>>>mkdir blib >>>>>>>>>>mkdir blib/lib >>>>>>>>>>mkdir blib/arch >>>>>>>>>>mkdir blib/arch/auto >>>>>>>>>>mkdir blib/arch/auto/Sybase >>>>>>>>>>mkdir blib/lib/auto >>>>>>>>>>mkdir blib/lib/auto/Sybase >>>>>>>>>>mkdir blib/man3 >>>>>>>>>>cp lib/sql.pl blib/lib/sql.pl >>>>>>>>>>cp lib/sybperl.pl blib/lib/sybperl.pl >>>>>>>>>>cp lib/sybutil.pl blib/lib/sybutil.pl >>>>>>>>>>cp lib/ctutil.pl blib/lib/ctutil.pl >>>>>>>>>>sh: make: not found >>>>>>>>>>*** Error code 1 >>>>>>>>>>make: Fatal error: Command failed for target `subdirs' >>>>>>>>>> >>>>>>>>>>Shall I use another make instead of /usr/ccs/bin/make ? >>>>>>>>>> >>>>>>>>>>Regards, >>>>>>>>>> >>>>>>>>>>Marek >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>This message and any attachments (the "message") is >>>>>>>>>>intended solely for the addressees and is confidential. >>>>>>>>>>If you receive this message in error, please delete it and >>>>>>>>>>immediately notify the sender. Any use not in accord with >>>>>>>>>>its purpose, any dissemination or disclosure, either whole >>>>>>>>>>or partial, is prohibited except formal approval. The internet >>>>>>>>>>can not guarantee the integrity of this message. >>>>>>>>>>BNP PARIBAS (and its subsidiaries) shall (will) not >>>>>>>>>>therefore be liable for the message if modified. >>>>>>>>>> >>>>>>>>>> --------------------------------------------- >>>>>>>>>> >>>>>>>>>>Ce message et toutes les pieces jointes (ci-apres le >>>>>>>>>>"message") sont etablis a l'intention exclusive de ses >>>>>>>>>>destinataires et sont confidentiels. Si vous recevez ce >>>>>>>>>>message par erreur, merci de le detruire et d'en avertir >>>>>>>>>>immediatement l'expediteur. Toute utilisation de ce >>>>>>>>>>message non conforme a sa destination, toute diffusion >>>>>>>>>>ou toute publication, totale ou partielle, est interdite, sauf >>>>>>>>>>autorisation expresse. L'internet ne permettant pas >>>>>>>>>>d'assurer l'integrite de ce message, BNP PARIBAS (et ses >>>>>>>>>>filiales) decline(nt) toute responsabilite au titre de ce >>>>>>>>>>message, dans l'hypothese ou il aurait ete modifie. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> > > > >