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: <dweyer at cox dot net>
Subject: Error in Makefile.PL for sybperl , Sybase::Simple ?
Date: Feb 4 2005 11:39PM

I am trying to make sybase simple on an HP9000 and have encountered the 
following error:

ahdsedstap01 117: perl Makefile.PL LIB=/usr/local/navsup/perl/perllib 
INSTALLMAN1DIR=/usr/local/navsup/perl/man/man1 
INSTALLMAN3DIR=/usr/local/navsup/perl/man/man3 
INSTALLBIN=/usr/local/navsup/perl/bin 
INSTALLSCRIPT=/usr/local/navsup/perl/scripts
The Sybase::Simple module need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: troll): Can't open 
LIB=/usr/local/navsup/perl/perllib: No such file or directory at Makefile.PL 
line 72.
Can't open INSTALLMAN1DIR=/usr/local/navsup/perl/man/man1: No such file or 
directory at Makefile.PL line 72.
Can't open INSTALLMAN3DIR=/usr/local/navsup/perl/man/man3: No such file or 
directory at Makefile.PL line 72.
Can't open INSTALLBIN=/usr/local/navsup/perl/bin: No such file or directory at 
Makefile.PL line 72.
Can't open INSTALLSCRIPT=/usr/local/navsup/perl/scripts: No such file or 
directory at Makefile.PL line 72.
User ID to log in to Sybase (default: sa): SPS_COMFISC_PROD
Password (default: undef): password
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::Simple
ahdsedstap01 118: make
cp Simple.pm blib/lib/Sybase/Simple.pm
AutoSplitting blib/lib/Sybase/Simple.pm (blib/lib/auto/Sybase/Simple)
Manifying blib/man3/Sybase::Simple.3
ahdsedstap01 119: make test
        PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.5 "-MExtUtils::Command::MM" "-
e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/main....ok 1/11OC: 44 4 ct_connect(): protocol specific layer: external 
error: The attempt to connect to the server failed.
connection failed... at /emc/workspace/deyer/perl_utils/Sybase-Simple-0.56
/blib/lib/Sybase/Simple.pm line 107.
Can't call method "Scalar" on an undefined value at t/main.t line 60.
t/main....dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
        Failed 10/11 tests, 9.09% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---------------------------------------------------------------------------------------------------------------------------------
t/main.t     255 65280    11   19 172.73%  2-11
Failed 1/1 test scripts, 0.00% okay. 10/11 subtests failed, 9.09% okay.
*** Error exit code 2

Stop.
ahdsedstap01 120:

Two things are strange:

1) I already compiled sybperl into those same directories so  they definately 
exist and all directories have permissions set to 770 along with all files and 
subdirectories under those.  As you can see I am trying to create the files in 
a personal directory since I do not have su in order to write into the 
/usr/local/lib/perl5 directory tree.

2) When I compiled sybperl with the same parameters the perllib directory was 
the only directory that was populated.  Running make install still tried to 
install the man files under /usr/local/man directory which I do not have 
permissions to write in.

ahdsedstap01 32: perl Makefile.PL LIB=/usr/local/navsup/perl/perllib 
INSTALLMAN1DIR=/usr/local/navsup/perl/man/man1 
INSTALLMAN3DIR=/usr/local/navsup/perl/man/man3 
INSTALLBIN=/usr/local/navsup/perl/bin 
INSTALLSCRIPT=/usr/local/navsup/perl/scripts
Sybase OpenClient 12.5.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): SPS_COMFISC_PROD
User ID to log in to Sybase (default: sa):
Password (default: undef): password
Sybase database to use on SPS_COMFISC_PROD (default: undef):

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

Checking if your kit is complete...
Looks good
Sybase OpenClient 12.5.1 found.
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::BLK
Sybase OpenClient 12.5.1 found.
Writing Makefile for Sybase::CTlib
Sybase OpenClient 12.5.1 found.
Writing Makefile for Sybase::DBlib
Sybase OpenClient 12.5.1 found.
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase
ahdsedstap01 33: 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
cp BCP.pm ../blib/lib/Sybase/BCP.pm
Manifying ../blib/man3/Sybase::BCP.3
cp BLK.pm ../blib/lib/Sybase/BLK.pm
Manifying ../blib/man3/Sybase::BLK.3
cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting ../blib/lib/Sybase/CTlib.pm (../blib/lib/auto/Sybase/CTlib)
        /usr/local/bin/perl5.8.5 /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -
prototypes -typemap /usr/local/lib/perl5/5.8.5/ExtUtils/typemap  CTlib.xs > 
CTlib.xsc && mv CTlib.xsc CTlib.c
        gcc -c  -I/apps/openclient/OCS-12_5/include  -D_HPUX_SOURCE -mpa-risc-2-
0 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -O2    -
DVERSION=\"2.17_3\"  -DXS_VERSION=\"2.17_3\" -fPIC "-I/usr/local/lib/perl5/5.8.5
/PA-RISC2.0/CORE"  -DCTLIBVS=100 -DSYBPLVER='"2.17_3"' -DDO_TIE CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
        chmod 644 CTlib.bs
        rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.sl
        LD_RUN_PATH="/apps/openclient/OCS-12_5/lib" /usr/bin/ld  -
L/apps/openclient/OCS-12_5/lib -b -L/usr/local/lib -L/opt/local/lib CTlib.o  -o 
../blib/arch/auto/Sybase/CTlib/CTlib.sl   -L/apps/openclient/OCS-12_5/lib -lct -
lcs -ltcl -lcomn -lintl -lblk -lm 
/usr/bin/ld: (Warning) At least one PA 2.0 object file (CTlib.o) was detected. 
The linked output may not run on a PA 1.x system.
        chmod 755 ../blib/arch/auto/Sybase/CTlib/CTlib.sl
        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
cp DBlib.pm ../blib/lib/Sybase/DBlib.pm
AutoSplitting ../blib/lib/Sybase/DBlib.pm (../blib/lib/auto/Sybase/DBlib)
        /usr/local/bin/perl5.8.5 /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -
prototypes -typemap /usr/local/lib/perl5/5.8.5/ExtUtils/typemap  DBlib.xs > 
DBlib.xsc && mv DBlib.xsc DBlib.c
        gcc -c  -I/apps/openclient/OCS-12_5/include  -D_HPUX_SOURCE -mpa-risc-2-
0 -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -O2    -
DVERSION=\"2.17_3\"  -DXS_VERSION=\"2.17_3\" -fPIC "-I/usr/local/lib/perl5/5.8.5
/PA-RISC2.0/CORE"  -DDBLIBVS=1000 -DSYBPLVER='"2.17_3"' -DDO_TIE DBlib.c
Running Mkbootstrap for Sybase::DBlib ()
        chmod 644 DBlib.bs
        rm -f ../blib/arch/auto/Sybase/DBlib/DBlib.sl
        LD_RUN_PATH="/apps/openclient/OCS-12_5/lib" /usr/bin/ld  -
L/apps/openclient/OCS-12_5/lib -b -L/usr/local/lib -L/opt/local/lib DBlib.o  -o 
../blib/arch/auto/Sybase/DBlib/DBlib.sl   -L/apps/openclient/OCS-12_5/lib -
lsybdb -lm
/usr/bin/ld: (Warning) At least one PA 2.0 object file (DBlib.o) was detected. 
The linked output may not run on a PA 1.x system.
        chmod 755 ../blib/arch/auto/Sybase/DBlib/DBlib.sl
        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
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
Manifying blib/man3/sybperl.3
ahdsedstap01 34: make test
        rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.sl
        LD_RUN_PATH="/apps/openclient/OCS-12_5/lib" /usr/bin/ld  -
L/apps/openclient/OCS-12_5/lib -b -L/usr/local/lib -L/opt/local/lib CTlib.o  -o 
../blib/arch/auto/Sybase/CTlib/CTlib.sl   -L/apps/openclient/OCS-12_5/lib -lct -
lcs -ltcl -lcomn -lintl -lblk -lm 
/usr/bin/ld: (Warning) At least one PA 2.0 object file (CTlib.o) was detected. 
The linked output may not run on a PA 1.x system.
        chmod 755 ../blib/arch/auto/Sybase/CTlib/CTlib.sl
        cp CTlib.bs ../blib/arch/auto/Sybase/CTlib/CTlib.bs
        chmod 644 ../blib/arch/auto/Sybase/CTlib/CTlib.bs
        rm -f ../blib/arch/auto/Sybase/DBlib/DBlib.sl
        LD_RUN_PATH="/apps/openclient/OCS-12_5/lib" /usr/bin/ld  -
L/apps/openclient/OCS-12_5/lib -b -L/usr/local/lib -L/opt/local/lib DBlib.o  -o 
../blib/arch/auto/Sybase/DBlib/DBlib.sl   -L/apps/openclient/OCS-12_5/lib -
lsybdb -lm
/usr/bin/ld: (Warning) At least one PA 2.0 object file (DBlib.o) was detected. 
The linked output may not run on a PA 1.x system.
        chmod 755 ../blib/arch/auto/Sybase/DBlib/DBlib.sl
        cp DBlib.bs ../blib/arch/auto/Sybase/DBlib/DBlib.bs
        chmod 644 ../blib/arch/auto/Sybase/DBlib/DBlib.bs
        PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.5 "-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............ok
t/3_bcp................ok
t/4_blk................ok
t/5_sybperl............ok
t/5_sybperl_dbmoney....ok
All tests successful.
Files=11, Tests=215,  3 wallclock secs ( 1.02 cusr +  0.34 csys =  1.36 CPU)
No tests defined for Sybase::BCP extension.
No tests defined for Sybase::BLK extension.
No tests defined for Sybase::CTlib extension.
No tests defined for Sybase::DBlib extension.
No tests defined for Sybase::Sybperl extension.
ahdsedstap01 35: make install
Warning: You do not have permissions to install into /usr/local/man/man3 at 
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 114.
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/CTlib/CTlib.sl
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/CTlib/CTlib.bs
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/DBlib/DBlib.sl
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/DBlib/DBlib.bs
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/ctutil.pl
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/sql.pl
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/sybutil.pl
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/sybperl.pl
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/CTlib/autosplit.ix
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/DBlib/autosplit.ix
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbcancel.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbcanquery.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbfreebuf.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbsetopt.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbclropt.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbisopt.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/DBCURCMD.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/DBMORECMDS.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/DBCMDROW.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/Sybperl/DBROWS.
al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/DBCOUNT.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/Sybperl/DBDEAD.
al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbhasretstat.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbretstatus.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbnumcols.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbprtype.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbcoltype.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbcollen.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbcolname.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbretdata.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbsafestr.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_init.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_meminit.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_sendrow.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_batch.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_done.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_control.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_columns.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_colfmt.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_collen.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_exec.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_readfmt.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/bcp_writefmt.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4add.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4divide.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4minus.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4mul.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4sub.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4cmp.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmny4zero.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyadd.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnydivide.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyminus.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnymul.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnysub.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnycmp.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyzero.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnydec.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyinc.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnydown.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyinit.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyscale.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmnyndigit.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/Sybperl/sql.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbrpcsend.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbrpcparam.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbrpcinit.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbreginit.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbreglist.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbregparam.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbregexec.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbwritetext.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbreadtext.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbmoretext.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/dbpreptext.al
Installing /usr/local/navsup/perl/perllib/PA-RISC2.
0/auto/Sybase/Sybperl/autosplit.ix
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/Sybase/BCP.pm
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/Sybase/BLK.pm
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/Sybase/CTlib.pm
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/Sybase/DBlib.pm
Installing /usr/local/navsup/perl/perllib/PA-RISC2.0/Sybase/Sybperl.pm
Installing /usr/local/man/man3/Sybase::BCP.3
Installing /usr/local/man/man3/Sybase::BLK.3
Installing /usr/local/man/man3/Sybase::CTlib.3
Installing /usr/local/man/man3/Sybase::DBlib.3
Installing /usr/local/man/man3/Sybase::Sybperl.3
Installing /usr/local/man/man3/sybperl.3
Writing /usr/local/navsup/perl/perllib/PA-RISC2.0/auto/Sybase/.packlist
Appending installation info to /usr/local/navsup/perl/perllib/PA-RISC2.
0/perllocal.pod