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: Doug K Silver <dsilver at ecesis dot ucsd dot edu>
Subject: Sybperl perl5 problems
Date: Oct 30 1998 8:00PM

I'm having problem getting sybperl to compile, here are some
details:
SunOS 5.5, Sparcstation.
perl 5.00502 (see bottom for perl -V)
Sybase DB-LIBRARY Version 10.0 (see below for isql -v)
LD_LIBRARY_PATH=/sybase/sybase/lib

This system does not have a libtcl.a, so that shouldn't be the
problem.  The system is missing a few libraries (see below), but
it claims that these are "probably harmless".

Actually, it compiles fine, it is just failing the "make test":

# make test
PERL_DL_NONLAZY=1 /pub/gnu/bin/perl -I../blib/arch -I../blib/lib 
-I/pub/gnu/lib/perl5/5.00502/sun4-solaris -I/pub/gnu/lib/perl5/5.00502 -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: ld.so.1: /pub/gnu/bin/perl: fatal: relocation error: 
symbol not found: dbsetuserdata: referenced in 
../blib/arch/auto/Sybase/DBlib/DBlib.so at 
/pub/gnu/lib/perl5/5.00502/sun4-solaris/DynaLoader.pm line 168.

 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
make: Fatal error: Command failed for target `test_dynamic'
Current working directory /local/src/gnu/perl-MODULES/sybperl-2.09_05/BCP
*** Error code 1
make: Fatal error: Command failed for target `test'

Any suggestions would be greatly appreciated!

Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
ECE Computer Support		EBU1 2904
534-7821
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 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 -lct
Note (probably harmless): No library found for -lcs
Note (probably harmless): No library found for -ltcl
Note (probably harmless): No library found for -lcomn
Note (probably harmless): No library found for -ltli
Writing Makefile for Sybase::CTlib
Note (probably harmless): No library found for -lsybdb
Note (probably harmless): No library found for -ltli
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

#./isql -v
isql/10.0.1/P/sun_svr4/Solaris 2.2/1

# perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=solaris, osvers=2.5, archname=sun4-solaris
    uname='sunos ft5 5.5 generic_103093-14 sun4m sparc sunw,sparcstation-5 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O -g', gccversion=
    cppflags='-DDEBUGGING -I/opt/SUNWspro/include'
    ccflags ='-DDEBUGGING -I/opt/SUNWspro/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib /opt/SUNWspro/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  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: DEBUGGING
  Built under solaris
  Compiled at Oct 28 1998 16:28:38
  @INC:
    /pub/gnu/lib/perl5/5.00502/sun4-solaris
    /pub/gnu/lib/perl5/5.00502
    /local/gnu/perl5/site_perl/sun4-solaris
    /local/gnu/perl5/site_perl