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: "Heinz Ringlhofer" <Heinz dot Ringlhofer at zamg dot ac dot at>
Subject: make test fails Solaris 8 - 64 bit
Date: Apr 8 2003 12:11PM

make test fails on Solaris 8 - Sybase 12.5 (64 bit version):

(this is sybperl-2.15)

1. make output:

zaadbs9: 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 config.pl blib/lib/config.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.pod ../blib/lib/Sybase/CTlib.pod
cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting ../blib/lib/Sybase/CTlib.pm (../blib/lib/auto/Sybase/CTlib)
/usr/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -prototypes -typemap
/opt/perl/lib/5.8.0/ExtUtils/typemap  CTlib.xs > CTlib.xsc && mv CTlib.xsc
CTlib.c
/opt/SUNWspro/bin/cc -c  -I/daten1/sybase//sybase_12.5/OCS-12_5/include
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"2.15\"
 -DXS_VERSION=\"2.15\" -KPIC "-I/opt/perl/lib/5.8.0/sun4-solaris/CORE"
 -DCTLIBVS=100 -DSYBPLVER='"2.15"' -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="/daten1/sybase//sybase_12.5/OCS-12_5/lib:/usr/lib"
/opt/SUNWspro/bin/cc  -L/daten1/sybase//sybase_12.5/OCS-12_5/lib -G CTlib.o  -o
../blib/arch/auto/Sybase/CTlib/CTlib.so
  -L/daten1/sybase//sybase_12.5/OCS-12_5/lib -lct -lcs -ltcl -lcomn -lintl
-linsck -ltli -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)
cp DBlib.pod ../blib/lib/Sybase/DBlib.pod
/usr/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -prototypes -typemap
/opt/perl/lib/5.8.0/ExtUtils/typemap  DBlib.xs > DBlib.xsc && mv DBlib.xsc
DBlib.c
/opt/SUNWspro/bin/cc -c  -I/daten1/sybase//sybase_12.5/OCS-12_5/include
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"2.15\"
 -DXS_VERSION=\"2.15\" -KPIC "-I/opt/perl/lib/5.8.0/sun4-solaris/CORE"
 -DDBLIBVS=1000 -DSYBPLVER='"2.15"' -DDO_TIE DBlib.c
"DBlib.xs", line 4431: warning: argument #3 is incompatible with prototype:
	prototype: pointer to unsigned char :
"/daten1/sybase//sybase_12.5/OCS-12_5/include/sybdb.h", line 3286
	argument : pointer to char
Running Mkbootstrap for Sybase::DBlib ()
chmod 644 DBlib.bs
rm -f ../blib/arch/auto/Sybase/DBlib/DBlib.so
LD_RUN_PATH="/daten1/sybase//sybase_12.5/OCS-12_5/lib:/usr/lib"
/opt/SUNWspro/bin/cc  -L/daten1/sybase//sybase_12.5/OCS-12_5/lib -G DBlib.o  -o
../blib/arch/auto/Sybase/DBlib/DBlib.so
  -L/daten1/sybase//sybase_12.5/OCS-12_5/lib -lsybdb -linsck -ltli -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)
Manifying ../blib/man3/Sybase::Sybperl.3
Manifying blib/man3/sybperl.3


2. make test output:

zaadbs9: make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'../blib/lib', '../blib/arch')" t/*.t
t/bcp....ok
All tests successful.
Files=1, Tests=9,  4 wallclock secs ( 0.30 cusr +  0.05 csys =  0.35 CPU)
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'../blib/lib', '../blib/arch')" t/*.t
t/blk....Can't load
'/daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/arch/auto/Sybase/CTlib/CTlib.so'
for module Sybase::CTlib: ld.so.1: /usr/bin/perl: fatal: relocation error: file
/daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/arch/auto/Sybase/CTlib/CTlib.so:
symbol blk_drop: referenced symbol not found at
/opt/perl/lib/5.8.0/sun4-solaris/DynaLoader.pm line 229.
 at /daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/lib/Sybase/BLK.pm line 300
Compilation failed in require at
/daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/lib/Sybase/BLK.pm line 300.
BEGIN failed--compilation aborted at
/daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/lib/Sybase/BLK.pm line 300.
Compilation failed in require at t/blk.t line 14.
BEGIN failed--compilation aborted at t/blk.t line 14.
t/blk....dubious
	Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
	Failed 10/10 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/blk.t      255 65280    10   10 100.00%  1-10
Failed 1/1 test scripts, 0.00% okay. 10/10 subtests failed, 0.00% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
Current working directory /daten1/sybase/perl/src/sybperl-2.15/BLK
*** Error code 1
make: Fatal error: Command failed for target `test'

3. File test:

zaadbs9: file
/daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/arch/auto/Sybase/CTlib/CTlib.so
/daten1/sybase/perl/src/sybperl-2.15/BLK/../blib/arch/auto/Sybase/CTlib/CTlib.so:
ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped

4. ASE version


1> select @@version
2> go

 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Adaptive Server Enterprise/12.5.0.3/EBF 10973 ESD#1/P/Sun_svr4/OS
5.8/rel12503/1
	 920/64-bit/FBO/Thu Mar 27 01:09:31 2003


5. Perl Version:

zaadbs9: perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos zaadbs9 5.8 generic_108528-19 sun4u sparc sunw,ultra-30 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='/opt/SUNWspro/bin/cc', ccflags =' -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags=''
    ccversion='Sun WorkShop 6 2000/06/19 C 5.1 Patch 109491-02', gccversion='',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/opt/SUNWspro/bin/cc', ldflags =' '
    libpth=/usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Apr  7 2003 14:14:48
  @INC:
    /opt/perl/lib/5.8.0/sun4-solaris
    /opt/perl/lib/5.8.0
    /opt/perl/lib/site_perl/5.8.0/sun4-solaris
    /opt/perl/lib/site_perl/5.8.0
    /opt/perl/lib/site_perl


Any hints ???

Heinz Ringlhofer