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: Joseph C King <jking at chablis dot cos dot com>
Subject: Re: Problems With Sybperl 2.08 on DU 4.0B
Date: Dec 15 1997 7:32PM

Nope..... here is some updated info.

Sorry for being a pain...... Joe

Digital UNIX 4.0B
Perl -V 
Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
  Platform:
    osname=dec_osf, osvers=4.0, archname=alpha-dec_osf
    uname='osf1 julio.cos.com v4.0 564 alpha '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O4', gccversion=
    cppflags='-std -D_INTRINSICS -D__LANGUAGE_C__'
    ccflags ='-std -D_INTRINSICS -D__LANGUAGE_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'
    libpth=/usr/local/lib /usr/shlib /shlib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lm
    libc=/usr/shlib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -O4 -msym -s
-L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under dec_osf
  Compiled at Dec 15 1997 12:15:59
  @INC:
    /usr/local/lib/perl5/alpha-dec_osf/5.00404
    /usr/local/lib/perl5
    /usr/local/lib/perl5/site_perl/alpha-dec_osf
    /usr/local/lib/perl5/site_perl
    .
----
Sybperl 2.08
CONFIG
------
# 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= -linsck -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=
----
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 -linsck -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 -linsck -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)
----
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.



At 09:04 AM 12/15/97 -0800, you wrote:
>Try setting EXTRA_LIBS to -linsck -ldnet_stub -lsdna and rebuild from
>scratch (ie start with perl Makefile.PL).
>
>Michael
>
>Joseph C King wrote:
>> 
>> Sorry for being a pain.
>> 
>> No dice.... same errors.
>> 
>> Any other ideas.
>> 
>> Here is the perl info also
>> 
>> $ perl -v
>> 
>> This is perl, version 5.004_04 built for alpha-dec_osf
>> 
>> Copyright 1987-1997, Larry Wall
>> 
>> Perl may be copied only under the terms of either the Artistic License
or the
>> GNU General Public License, which may be found in the Perl 5.0 source kit.
>> 
>> Joe
>> 
>> At 09:44 AM 12/11/97 -0800, Michael Peppler wrote:
>> >Joseph C King wrote:
>> >>
>> >> 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.
>> >
>> >DEC Unix is tarting to make me tired...
>> >
>> >Edit DBlib/Makefile and remove -lsdna from the EXTRALIBS/LDLOADLIBS
>> >lines.
>> >
>> >This particular problem should be fixed in 2.09 (which I hope to
>> >release before Christmas...)
>> >
>> >Michael
>> >--
>> >Michael Peppler       -||-  Data Migrations Inc.
>> >mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler
>> >
>> >
>> --
>> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>> Joseph C. King              |
>> Systems Administrator       |
>> Community of Science, Inc.  |
>> Baltimore, MD               |
>> (410)563-2378  (V)          |
>> (410)563-5389  (F)          |
>
>-- 
>Michael Peppler       -||-  Data Migrations Inc.
>mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler
>
>
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Joseph C. King              |
Systems Administrator       | 
Community of Science, Inc.  |
Baltimore, MD               |
(410)563-2378  (V)          |
(410)563-5389  (F)          |