|
|
sybperl-l Archive
Up Prev Next
From: Joseph C King <jking at chablis dot cos dot com>
Subject: Problems With Sybperl 2.08 on DU 4.0B
Date: Dec 10 1997 8:08PM
We are having problems with sybperl 2.08 on Digital Unix 4.0B.
We are using Open Client 10.0.4.
Quite a bummer. We have rebuild the Shared Object files under $SYBASE/lib
but that didn't help.
I have enclosed the CONFIG, make, and make test for debugging purposes.
Joe
Here is out CONFIG:
#
# Configuration file for Sybperl
#
# DBlibrary version. Set to 1000 (or higher) if you have System 10
# Set to 0 if you do not want to build DBlib or if DBlib is not available
# (Linux, for example)
DBLIBVS=1000
# CTlib version. Set to 0 if Client Library is not available on your
# system, or if you don't want to build the CTlib module. The Client
# Library started shipping with System 10.
# Note that the CTlib module is still under construction, though the
# core API should be stable now.
# Set to 100 if you have System 10.
CTLIBVS=100
# Where is the Sybase directory on your system (include files &
# libraries are expected to be found at SYBASE/include & SYBASE/lib
SYBASE=/sybase
# Additional libraries.
# Some systems require -lnsl or -lBSD.
# Solaris 2.x needs -ltli
# DEC OSF/1 needs -ldnet_stub and may need -lsdna
# SunOS 4.x needs -linsck
# HP-UX 10.x needs -linsck
# AIX 3.2.5 needs -linsck
# Linux needs -lsybtcl and -linsck
# See the Sybase OpenClient Supplement for your OS/Hardware
# combination.
EXTRA_LIBS=-ldnet_stub -lsdna
# Additional #defines.
# With Perl 5.001m, you will need -DUNDEF_BUG.
# With Perl 5.002, none are normally needed, but you may wish to
# use -DDO_TIE to get the benefit of stricter checking on the
# Sybase::DBlib and Sybase::CTlib attributes.
#EXTRA_DEFS=-DUNDEF_BUG
#EXTRA_DEFS=-DDO_TIE
#EXTRA_DEFS=
# LINKTYPE
# If you wish to link Sybase::DBlib and/or Sybase::CTlib statically
# into perl uncomment the line below and run the make normally. Then,
# when you run 'make test' a new perl binary will be built.
LINKTYPE=
Print out from 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
cp config.pl ./blib/lib/config.pl
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
mkdir .././blib/lib/Sybase
mkdir .././blib/arch/auto/Sybase/BCP
mkdir .././blib/lib/auto/Sybase/BCP
mkdir .././blib/man3
cp BCP.pm .././blib/lib/Sybase/BCP.pm
Manifying .././blib/man3/Sybase::BCP.3
mkdir .././blib/arch/auto/Sybase/CTlib
mkdir .././blib/lib/auto/Sybase/CTlib
cp CTlib.pm .././blib/lib/Sybase/CTlib.pm
AutoSplitting Sybase::CTlib (.././blib/lib/auto/Sybase/CTlib)
/usr/local/bin/perl -I/usr/local/lib/perl5/alpha-dec_osf/5.00404
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp -prototypes
-typemap /usr/local/lib/perl5/ExtUtils/typemap CTlib.xs >CTlib.tc && mv
CTlib.tc CTlib.c
cc -c -I/sybase/include -std -D_INTRINSICS -D__LANGUAGE_C__ -O4
-DVERSION=\"2.08\" -DXS_VERSION=\"2.08\"
-I/usr/local/lib/perl5/alpha-dec_osf/5.00404/CORE -DCTLIBVS=100
-DSYBPLVER='"2.08"' CTlib.c
cc: Warning: CTlib.xs, line 60: Trailing comma found in enumerator list.
} ConType;
^
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
ar cr tmp.a CTlib.o
: tmp.a
LD_RUN_PATH="/sybase/lib:/usr/shlib" ld -o
.././blib/arch/auto/Sybase/CTlib/CTlib.so -L/sybase/lib -shared
-expect_unresolved "*" -O4 -msym -s -L/usr/local/lib -all tmp.a -none
-L/sybase/lib -lct -lcs -ltcl -lcomn -lintl -ldnet_stub -lsdna -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
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/bin/perl -I/usr/local/lib/perl5/alpha-dec_osf/5.00404
-I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp -prototypes
-typemap /usr/local/lib/perl5/ExtUtils/typemap DBlib.xs >DBlib.tc && mv
DBlib.tc DBlib.c
cc -c -I/sybase/include -std -D_INTRINSICS -D__LANGUAGE_C__ -O4
-DVERSION=\"2.08\" -DXS_VERSION=\"2.08\"
-I/usr/local/lib/perl5/alpha-dec_osf/5.00404/CORE -DDBLIBVS=1000
-DSYBPLVER='"2.08"' DBlib.c
cc: Warning: DBlib.xs, line 500: In this statement, the referenced type of
the pointer value "str" is "char", which is not compatible with "unsigned
char"
if (dbconvert(NULL, SYBCHAR, str, -1, SYBDATETIME,
--------^
cc: Warning: DBlib.xs, line 513: In this statement, the referenced type of
the pointer value "buff" is "char", which is not compatible with "unsigned
char".
if (dbconvert(dt->dbproc, SYBDATETIME, (BYTE*)&dt->date,
sizeof(DBDATETIME),
--------^
cc: Warning: DBlib.xs, line 562: In this statement, the referenced type of
the pointer value "str" is "char", which is not compatible with "unsigned
char".
if (dbconvert(NULL, SYBCHAR, str, -1, SYBMONEY,
--------^
cc: Warning: DBlib.xs, line 575: In this statement, the referenced type of
the pointer value "buff" is "char", which is not compatible with "unsigned
char".
if (dbconvert(m->dbproc, SYBMONEY, (BYTE*)&m->mn, sizeof(DBMONEY),
--------^
cc: Warning: DBlib.xs, line 4130: In this statement, the referenced type of
the pointer value "buf" is "char", which is not compatible with "unsigned
char".
RETVAL = dbmoretext(dbproc, size, buf);
-------------^
Running Mkbootstrap for Sybase::DBlib ()
chmod 644 DBlib.bs
ar cr tmp.a DBlib.o
: tmp.a
LD_RUN_PATH="/sybase/lib:/usr/shlib" ld -o
.././blib/arch/auto/Sybase/DBlib/DBlib.so -L/sybase/lib -shared
-expect_unresolved "*" -O4 -msym -s -L/usr/local/lib -all tmp.a -none
-L/sybase/lib -lsybdb -ldnet_stub -lsdna -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
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)
Output from make test:
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I.././blib/arch -I.././blib/lib
-I/usr/local/lib/perl5/alpha-dec_osf/5.00404 -I/usr/local/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: dlopen: cannot load
.././blib/arch/auto/Sybase/DBlib/DBlib.so at
/usr/local/lib/perl5/alpha-dec_osf/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.
*** Exit 2
Stop.
*** Exit 1
Stop.
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Joseph C. King |
Systems Administrator |
Community of Science, Inc. |
Baltimore, MD |
(410)563-2378 (V) |
(410)563-5389 (F) |
|