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: "Kerry HAGEMAN" <Kerry dot Hageman at state dot or dot us>
Subject: sybperl-2.17 install issues
Date: Feb 18 2005 11:18PM

I have been experiencing problems while trying to install sybperl-2.17
on AIX 5.2 with perl 5.8.0.
It is the 'make test' that does the real complaning but possibly the
inital execution of
perl Maikefile.PL
is where the problem actually starts.  I've seen others inquire as to
similar problems/errors but have seen little or no resolution.
Sybase is 12.5.  Environment appears to be set correctly.  There have
been no changes made to CONFIG.
This is the output from the build process:
root@dhs-oltp2d:/local/work/sybperl-2.17>uname -a
AIX dhs-oltp2d 2 5 0001703A4C00
root@dhs-oltp2d:/local/work/sybperl-2.17>oslevel -r
5200-04
root@dhs-oltp2d:/local/work/sybperl-2.17>perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0)
configuration:
  Platform:
    osname=aix, osvers=5.2.0.0, archname=aix-thread-multi
    uname='aix rocky 2 5 000ad7df4c00 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-q32 -D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -b32'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r -lcrypt
-lbsd -lPW
    perllibs=-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r -lcrypt -lbsd
-lPW
    libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' 
-bE:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under aix
  Compiled at Jul 26 2002 13:48:15
  @INC:
    /usr/opt/perl5/lib/5.8.0/aix-thread-multi
    /usr/opt/perl5/lib/5.8.0
    /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.0
    /usr/opt/perl5/lib/site_perl
    .
root@dhs-oltp2d:/local/work/sybperl-2.17>env|egrep "LD|LIB|SYBASE"
SYBASE_SYSAM=SYSAM-1_0
SYBASE_FTS=FTS-12_5
SYBASE_JRE=/opt/sybase/shared-1_0/JRE-1_3
SYBASE=/opt/sybase
SYBASE_ASE=ASE-12_5
LD_LIBRARY_PATH=/opt/sybase/ASE-12_5/lib:/opt/sybase/OCS-12_5/lib
SYBASE_OCS=OCS-12_5
LIBPATH=/opt/sybase/shared-1_0/JRE-1_3/bin:/opt/sybase/shared-1_0/JRE-1_3/bin/classic:/opt/sybase/OCS-12_5/lib:/opt/sybase/OCS-12_5/lib3p64:/opt/sybase/OCS-12_5/lib3p:/opt/sybase/ASE-12_5/lib:/opt/sybase/OCS-12_5/lib:/opt/sybase/OCS-12_5/lib3p:/usr/lib:/opt/sybase/OCS-12_5/lib


root@dhs-oltp2d:/local/work/sybperl-2.17>perl Makefile.PL
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): DEVL1
User ID to log in to Sybase (default: sa): 
Password (default: undef): 
Sybase database to use on DEVL1 (default: undef): drm

* 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
Running in threaded mode - looking for _r libraries...
Found -lct_r for -lct
Found -lcs_r for -lcs
Found -ltcl_r for -ltcl
Found -lcomn_r for -lcomn
Found -lintl_r for -lintl
Note (probably harmless): No library found for -lct_r
Note (probably harmless): No library found for -lcs_r
Note (probably harmless): No library found for -ltcl_r
Note (probably harmless): No library found for -lcomn_r
Note (probably harmless): No library found for -lintl_r
Note (probably harmless): No library found for -lblk
Writing Makefile for Sybase::CTlib
Note (probably harmless): No library found for -lsybdb
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase


root@dhs-oltp2d:/local/work/sybperl-2.17>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
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Sybase", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" => []);'
cp BCP.pm ../blib/lib/Sybase/BCP.pm
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Sybase::BCP", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" =>
[]);'
Manifying ../blib/man3/Sybase::BCP.3
cp BLK.pm ../blib/lib/Sybase/BLK.pm
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Sybase::BLK", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" =>
[]);'
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/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Sybase::CTlib", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" =>
[]);'
        /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp
-prototypes -typemap /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap  CTlib.xs
> CTlib.xsc && mv CTlib.xsc CTlib.c
        cc_r -c  -I/opt/sybase/OCS-12_5/include  -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-O    -DVERSION=\"2.17\"  -DXS_VERSION=\"2.17\" 
"-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"  -DCTLIBVS=100
-DSYBPLVER='"2.17"' -DDO_TIE CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
        chmod 644 CTlib.bs
        rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.so
        LD_RUN_PATH="/lib" ld  -L/opt/sybase/OCS-12_5/lib -bhalt:4
-bM:SRE -bI:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp
-bE:CTlib.exp -G -bnoentry -lpthreads -lc_r CTlib.o  -o
../blib/arch/auto/Sybase/CTlib/CTlib.so   -L/opt/sybase/OCS-12_5/lib -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
cp DBlib.pm ../blib/lib/Sybase/DBlib.pm
AutoSplitting ../blib/lib/Sybase/DBlib.pm
(../blib/lib/auto/Sybase/DBlib)
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Sybase::DBlib", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" =>
[]);'
        /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp
-prototypes -typemap /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap  DBlib.xs
> DBlib.xsc && mv DBlib.xsc DBlib.c
        cc_r -c  -I/opt/sybase/OCS-12_5/include  -D_ALL_SOURCE
-D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-O    -DVERSION=\"2.17\"  -DXS_VERSION=\"2.17\" 
"-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"  -DDBLIBVS=1000
-DSYBPLVER='"2.17"' -DDO_TIE DBlib.c
Running Mkbootstrap for Sybase::DBlib ()
        chmod 644 DBlib.bs
        rm -f ../blib/arch/auto/Sybase/DBlib/DBlib.so
        LD_RUN_PATH="/lib" ld  -L/opt/sybase/OCS-12_5/lib -bhalt:4
-bM:SRE -bI:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp
-bE:DBlib.exp -G -bnoentry -lpthreads -lc_r DBlib.o  -o
../blib/arch/auto/Sybase/DBlib/DBlib.so   -L/opt/sybase/OCS-12_5/lib -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
cp Sybperl.pm ../blib/lib/Sybase/Sybperl.pm
AutoSplitting ../blib/lib/Sybase/Sybperl.pm
(../blib/lib/auto/Sybase/Sybperl)
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Sybase::Sybperl", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" =>
[]);'
Manifying ../blib/man3/Sybase::Sybperl.3
Manifying blib/man3/sybperl.3
Target "makemakerdflt" is up to date.


root@dhs-oltp2d:/local/work/sybperl-2.17>make test
        PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1_db_dblib...........Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/DBlib/DBlib.so' for
module Sybase::DBlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 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 255 (wstat 65280, 0xff00)
t/1_db_money...........Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/DBlib/DBlib.so' for
module Sybase::DBlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 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 255 (wstat 65280, 0xff00)
t/2_ct_ctlib...........Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/CTlib/CTlib.so' for
module Sybase::CTlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at t/2_ct_ctlib.t line 11
Compilation failed in require at t/2_ct_ctlib.t line 11.
BEGIN failed--compilation aborted at t/2_ct_ctlib.t line 11.
                                                                       
     t/2_ct_ctlib...........NOK 1                                       
                                     t/2_ct_ctlib...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-30
        Failed 30/30 tests, 0.00% okay
t/2_ct_cursor..........Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/CTlib/CTlib.so' for
module Sybase::CTlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at t/2_ct_cursor.t line 12
Compilation failed in require at t/2_ct_cursor.t line 12.
BEGIN failed--compilation aborted at t/2_ct_cursor.t line 12.
                                                                       
     t/2_ct_cursor..........NOK 1                                       
                                     t/2_ct_cursor..........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-22
        Failed 22/22 tests, 0.00% okay
t/2_ct_nsql............Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/CTlib/CTlib.so' for
module Sybase::CTlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at t/2_ct_nsql.t line 9
Compilation failed in require at t/2_ct_nsql.t line 9.
BEGIN failed--compilation aborted at t/2_ct_nsql.t line 9.
                                                                       
     t/2_ct_nsql............NOK 1                                       
                                     t/2_ct_nsql............dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-4
        Failed 4/4 tests, 0.00% okay
t/2_ct_prepare.........Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/CTlib/CTlib.so' for
module Sybase::CTlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at t/2_ct_prepare.t line 9
Compilation failed in require at t/2_ct_prepare.t line 9.
BEGIN failed--compilation aborted at t/2_ct_prepare.t line 9.
                                                                       
     t/2_ct_prepare.........NOK 1                                       
                                     t/2_ct_prepare.........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-15
        Failed 15/15 tests, 0.00% okay
t/2_ct_xblk............Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/CTlib/CTlib.so' for
module Sybase::CTlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at t/2_ct_xblk.t line 11
Compilation failed in require at t/2_ct_xblk.t line 11.
BEGIN failed--compilation aborted at t/2_ct_xblk.t line 11.
                                                                       
     t/2_ct_xblk............NOK 1                                       
                                     t/2_ct_xblk............dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-21
        Failed 21/21 tests, 0.00% okay
t/3_bcp................Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/DBlib/DBlib.so' for
module Sybase::DBlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at /local/work/sybperl-2.17/blib/lib/Sybase/BCP.pm line 278
Compilation failed in require at
/local/work/sybperl-2.17/blib/lib/Sybase/BCP.pm line 278.
BEGIN failed--compilation aborted at
/local/work/sybperl-2.17/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................NOK 1                                       
                                     t/3_bcp................dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-9
        Failed 9/9 tests, 0.00% okay
t/4_blk................Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/CTlib/CTlib.so' for
module Sybase::CTlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at /local/work/sybperl-2.17/blib/lib/Sybase/BLK.pm line 312
Compilation failed in require at
/local/work/sybperl-2.17/blib/lib/Sybase/BLK.pm line 312.
BEGIN failed--compilation aborted at
/local/work/sybperl-2.17/blib/lib/Sybase/BLK.pm line 312.
Compilation failed in require at t/4_blk.t line 12.
BEGIN failed--compilation aborted at t/4_blk.t line 12.
                                                                       
     t/4_blk................dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-19
        Failed 19/19 tests, 0.00% okay
t/5_sybperl............Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/DBlib/DBlib.so' for
module Sybase::DBlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at /local/work/sybperl-2.17/blib/lib/Sybase/Sybperl.pm line 79
Compilation failed in require at
/local/work/sybperl-2.17/blib/lib/Sybase/Sybperl.pm line 79.
BEGIN failed--compilation aborted at
/local/work/sybperl-2.17/blib/lib/Sybase/Sybperl.pm line 79.
Compilation failed in require at
/local/work/sybperl-2.17/blib/lib/sybperl.pl line 17.
BEGIN failed--compilation aborted at
/local/work/sybperl-2.17/blib/lib/sybperl.pl line 17.
Compilation failed in require at t/5_sybperl.t line 7.
                                                                       
     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....Can't load
'/local/work/sybperl-2.17/blib/arch/auto/Sybase/DBlib/DBlib.so' for
module Sybase::DBlib: Cannot run a file that does not have a valid
format. at /usr/opt/perl5/lib/5.8.0/aix-thread-multi/DynaLoader.pm line
229.
 at /local/work/sybperl-2.17/blib/lib/Sybase/Sybperl.pm line 79
Compilation failed in require at
/local/work/sybperl-2.17/blib/lib/Sybase/Sybperl.pm line 79.
BEGIN failed--compilation aborted at
/local/work/sybperl-2.17/blib/lib/Sybase/Sybperl.pm line 79.
Compilation failed in require at
/local/work/sybperl-2.17/blib/lib/sybperl.pl line 17.
BEGIN failed--compilation aborted at
/local/work/sybperl-2.17/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 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    ??   ??       %  ??
t/1_db_money.t         255 65280    ??   ??       %  ??
t/2_ct_ctlib.t         255 65280    30   30 100.00%  1-30
t/2_ct_cursor.t        255 65280    22   22 100.00%  1-22
t/2_ct_nsql.t          255 65280     4    4 100.00%  1-4
t/2_ct_prepare.t       255 65280    15   15 100.00%  1-15
t/2_ct_xblk.t          255 65280    21   21 100.00%  1-21
t/3_bcp.t              255 65280     9    9 100.00%  1-9
t/4_blk.t              255 65280    19   19 100.00%  1-19
t/5_sybperl.t          255 65280    28   28 100.00%  1-28
t/5_sybperl_dbmoney.t  255 65280    32   32 100.00%  1-32
Failed 11/11 test scripts, 0.00% okay. 180/180 subtests failed, 0.00%
okay.
make: 1254-004 The error code from the last command is 2.


Stop.
root@dhs-oltp2d:/local/work/sybperl-2.17>

Any help would be greatly appreciated.  I've been going back over this
for a couple of days now and do not see what I'm missing.

Thanks,
Kerry  

Kerry Hageman
State of Oregon, DHS CRM
kerry.hageman@state.or.us
(503) 947-1914