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: Michael Peppler <mpeppler at MBAY dot NET>
Subject: problems with sybperl 2.09.05
Date: Jun 24 1998 2:42AM

Andrew Williams writes:
 > This is a bit verbose, but I'd rather give you a little too much info
 > than not enough.   I read through the faq's etc and couldn't find anything.
 > 
 > 
 > System:
 > 
 > SGI indigo2 running irix6.2

I believe there have been some issues with the -n32 compilation flag
(I'm not an SGI person, but I seem to recall that certain versions of
the Sybase libs were built without that flag (or with a different
flag) causing them to be incompatible...)

Michael

 > 
 > perl -V
 > 
 > Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
 >   Platform:
 >     osname=irix, osvers=6.2, archname=IP22-irix
 >     uname='irix stides 6.2 03131015 ip22 '
 >     hint=recommended, useposix=true, d_sigaction=define
 >     bincompat3=n useperlio=undef d_sfio=undef
 >   Compiler:
 >     cc='cc -n32', optimize=' ', gccversion=
 >     cppflags='-D_BSD_TYPES -D_BSD_TIME -woff -I/usr/local/include
 > -DLANGUAGE_C'
 >     ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184
 > -I/usr/local/include -DLANGUAGE_C'
 >     stdchar='unsigned char', d_stdstdio=define, usevfork=false
 >     voidflags=15, castflags=0, d_casti32=define, d_castneg=define
 >     intsize=4, alignbytes=8, usemymalloc=y, prototype=define
 >   Linker and Libraries:
 >     ld='ld', ldflags =' -L/usr/local/lib -L/usr/lib32 -L/lib32'
 >     libpth=/usr/local/lib /usr/lib32 /lib32 /lib /usr/lib
 >     libs=-lm -lc
 >     libc=/usr/lib32/libc.so, so=so
 >     useshrplib=false, libperl=libperl.a
 >   Dynamic Linking:
 >     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
 >     cccdlflags=' ', lddlflags='-n32 -shared -L/usr/local/lib /-L/usr/lib32
 > -L/lib32'
 > 
 > 
 > Characteristics of this binary (from libperl): 
 >   Built under irix
 >   Compiled at Jun 19 1998 11:16:58
 >   @INC:
 >     /usr/local/development/lib/perl5/IP22-irix/5.00404
 >     /usr/local/development/lib/perl5
 >     /usr/local/development/lib/perl5/site_perl/IP22-irix
 >     /usr/local/development/lib/perl5/site_perl
 >     .
 > 
 > 
 > when doing perl Makefile.PL
 > Checking if your kit is complete...
 > Looks good
 > Checking if your kit is complete...
 > Looks good
 > Writing Makefile for Sybase::BCP
 > Note (probably harmless): No library found for -ltli
 > Writing Makefile for Sybase::CTlib
 > Note (probably harmless): No library found for -ltli
 > Writing Makefile for Sybase::DBlib
 > Writing Makefile for Sybase::Sybperl
 > Writing Makefile for Sybase
 > 
 > 
 > 
 > make yields the following output:
 > 
 > Manifying ..//Sybase::BCP.0
 >         cc -n32 -c -I/usr/local/sybase/include -D_BSD_TYPES -D_BSD_TIME
 > -woff 1009,1110,1184 -I/usr/local/include -DLANGUAGE_C
 > -DVERSION=\"2.09_05\"  -DXS_VERSION=\"2.09_05\"
 > -I/usr/local/development/lib/perl5/IP22-irix/5.00404/CORE -DCTLIBVS=100
 > -DSYBPLVER='"2.09_05"' -DDO_TIE CTlib.c
 > "CTlib.xs", line 1623: warning(1048): cast between pointer-to-object and
 >           pointer-to-function
 >                           (CS_VOID *)clientmsg_cb)) != CS_SUCCEED)
 >                           ^
 > 
 > "CTlib.xs", line 1626: warning(1048): cast between pointer-to-object and
 >           pointer-to-function
 >                               (CS_VOID *)servermsg_cb)) != CS_SUCCEED)
 >                               ^
 > 
 > "CTlib.xs", line 1630: warning(1048): cast between pointer-to-object and
 >           pointer-to-function
 >                               (CS_VOID *)notification_cb)) != CS_SUCCEED)
 >                               ^
 > 
 > Running Mkbootstrap for Sybase::CTlib ()
 >         chmod 644 CTlib.bs
 >         LD_RUN_PATH="/usr/local/sybase/lib:/usr/lib32" ld -o
 > .././blib/arch/auto/Sybase/CTlib/CTlib.so  -L/usr/local/sybase/lib -n32
 > -shared -L/usr/local/lib -L/usr/lib32 -L/lib32 CTlib.o
 > -L/usr/local/sybase/lib -lct -lcs -ltcl -lcomn -lintl -lm 
 > ld: WARNING 84: /usr/lib32/libm.so is not used for resolving any symbol.
 >         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
 > mkdir .././blib/arch/auto/Sybase/DBlib
 > mkdir .././blib/lib/auto/Sybase/DBlib
 > cp DBlib.pm .././blib/lib/Sybase/DBlib.pm
 > AutoSplitting Sybase::DBlib (.././blib/lib/auto/Sybase/DBlib)
 >         /usr/local/development/bin/perl
 > -I/usr/local/development/lib/perl5/IP22-irix/5.00404
 > -I/usr/local/development/lib/perl5
 > /usr/local/development/lib/perl5/ExtUtils/xsubpp -prototypes -typemap
 > /usr/local/development/lib/perl5/ExtUtils/typemap DBlib.xs >DBlib.tc && mv
 > DBlib.tc DBlib.c
 >         cc -n32 -c -I/usr/local/sybase/include -D_BSD_TYPES -D_BSD_TIME
 > -woff 1009,1110,1184 -I/usr/local/include -DLANGUAGE_C
 > -DVERSION=\"2.09_05\"  -DXS_VERSION=\"2.09_05\"
 > -I/usr/local/development/lib/perl5/IP22-irix/5.00404/CORE -DDBLIBVS=1000
 > -DSYBPLVER='"2.09_05"' -DDO_TIE DBlib.c
 > "DBlib.xs", line 4334: warning(1164): argument of type "char *" is
 >           incompatible with parameter of type "CS_BYTE *"
 >       RETVAL = dbmoretext(dbproc, size, buf);
 >                                         ^
 > 
 > Running Mkbootstrap for Sybase::DBlib ()
 >         chmod 644 DBlib.bs
 >         LD_RUN_PATH="/usr/local/sybase/lib:/usr/lib32" ld -o
 > .././blib/arch/auto/Sybase/DBlib/DBlib.so  -L/usr/local/sybase/lib -n32
 > -shared -L/usr/local/lib -L/usr/lib32 -L/lib32 DBlib.o
 > -L/usr/local/sybase/lib -lsybdb -lm 
 > ld: WARNING 84: /usr/lib32/libm.so is not used for resolving any symbol.
 >         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
 > mkdir .././blib/arch/auto/Sybase/Sybperl
 > mkdir .././blib/lib/auto/Sybase/Sybperl
 > cp Sybperl.pm .././blib/lib/Sybase/Sybperl.pm
 > AutoSplitting Sybase::Sybperl (.././blib/lib/auto/Sybase/Sybperl)
 > 
 > 
 > 
 > make test yields the following:
 > 
 >         PERL_DL_NONLAZY=1 /usr/local/development/bin/perl -I.././blib/arch
 > -I.././blib/lib -I/usr/local/development/lib/perl5/IP22-irix/5.00404
 > -I/usr/local/development/lib/perl5 -e 'use Test::Harness qw(&runtests
 > $verbose); $verbose=0; runtests @ARGV;' t/*.t
 > t/bcp...............Can't load '.././blib/arch/auto/Sybase/DBlib/DBlib.so'
 > for module Sybase::DBlib: 10363:/usr/local/development/bin/perl: rld: Fatal
 > Error: cannot successfully map soname 'libsybdb.so' under any of the
 > filenames
 > /usr/local/sybase/lib/libsybdb.so:/usr/lib32/libsybdb.so:/lib32/libsybdb.so:
 > /usr/libn32/libsybdb.so:/libn32/libsybdb.so:  at
 > /usr/local/development/lib/perl5/IP22-irix/5.00404/DynaLoader.pm line 166.
 > 
 >  at .././blib/lib/Sybase/BCP.pm line 277
 > BEGIN failed--compilation aborted at .././blib/lib/Sybase/BCP.pm line 277.
 > BEGIN failed--compilation aborted at t/bcp.t line 12.
 > dubious
 >         Test returned status 2 (wstat 512, 0x200)
 > DIED. FAILED tests 1-9
 >         Failed 9/9 tests, 0.00% okay
 > Failed Test  Status Wstat Total Fail  Failed  List of failed
 > ----------------------------------------------------------------------------
 > ---
 > t/bcp.t           2   512     9    9 100.00%  1-9
 > Failed 1/1 test scripts, 0.00% okay. 9/9 subtests failed, 0.00% okay.
 > *** Error code 2 (bu21)
 > *** Error code 1 (bu21)
 > 
 > 
 > 
 > [andrew@stides][114] sybperl-2.09_05>ls -al /usr/local/sybase/lib/libsybdb.so
 > 
 > 2761 -rwxr-xr-x    1 sybase   dev      1413400 Oct  7  1996
 > /usr/local/sybase/lib/libsybdb.so*
 > 
 > [andrew@stides][115] sybperl-2.09_05>
 > 
 > 
 > Any ideas?  If you need anything else let me know.  Thanks.
 > 
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@datamig.com    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com