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: David Waldo <waldo at cos dot com>
Subject: Re: Problems installing sybperl-2.11 - SOLVED
Date: Apr 10 2000 4:40PM

All -

The problems involves the changes made to the config.pl
script in sybperl-2.11. Even if one specifies the following
line in CONFIG:

EXTRA_LIBS=-ldnet_stub

it is ignored in the link line building the .so files:

LD_RUN_PATH="/usr/local/sybase/lib:/usr/shlib" ld -o .././blib/arch/auto/Sybase/
CTlib/CTlib.so  -L/usr/local/sybase/lib -shared -expect_unresolved "*" -O4 -msym
 -s -L/usr/local/lib -all tmp.a -none    -L/usr/local/sybase/lib -lct -lcs -ltcl
 -lcomn -lintl -linsck -lsdna -lm

This is because of the logic added in 2.11 to the config.pl
script. It ignores libraries not found in the $SYBASE/lib
area, but -ldnet_stub is a system library found in
/usr/lib. Commenting out line 130 of config.pl

#       delete($x{$f}) unless exists($files{$file});

fixed the problem.

I've submitted this to Michael Peppler's sybperl bug db also.

- Dave


David Waldo wrote:
> 
> I'm having trouble installing sybperl-2.11 on a dec alpha
> OSF V4.0 with perl5.00405. I have had no problem with
> sybperl-2.10. I've copied my CONFIG and PWD files f
> rom the sybperl-2.10 dir to the sybperl-2.11 dir, and
> tried to do a perl Makefile.PL; make; make test in the s
> ybperl-2.11 dir, but get the errors below. Using the
> exact same shell and doing the same commands in the sybperl-2.10
> dir returns no errors. So I've ruled out a SYBASE or
> LD_LIBRARY_PATH env problem, or a problem with the sybase
> client libraries.
> 
> 'make test' in the sybperl-2.11 dir returns the following error:
> 
> PERL_DL_NONLAZY=1 /projects/perl.dev/bin/perl -I.././blib/arch -I.././blib/lib -
> I/projects/perl.dev/lib/alpha-dec_osf/5.00405 -I/projects/perl.dev/lib -e 'use T
> est::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/bcp...............Can't load '.././blib/arch/auto/Sybase/DBlib/DBlib.so' for m
> odule Sybase::DBlib: dlopen: Unresolved symbols at /projects/perl.dev/lib/alpha-
> dec_osf/5.00405/DynaLoader.pm line 169.
> 
>  at .././blib/lib/Sybase/BCP.pm line 278
> BEGIN failed--compilation aborted at .././blib/lib/Sybase/BCP.pm line 278.
> BEGIN failed--compilation aborted at t/bcp.t line 14.
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> 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         255 65280     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
> 
> perl -V:
> 
> Summary of my perl5 (5.0 patchlevel 4 subversion 5) configuration:
>   Platform:
>     osname=dec_osf, osvers=4.0, archname=alpha-dec_osf
>     uname='osf1 chablis.cos.com v4.0 878 alpha '
>     hint=recommended, useposix=true, d_sigaction=define
>     bincompat3=n useperlio=undef d_sfio=undef
>   Compiler:
>     cc='cc', optimize='-O4', gccversion=
>     cppflags='-std -ieee -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__'
>     ccflags ='-std -fprm d -ieee -D_INTRINSICS -I/usr/local/include -D__LANGUAGE
> _C__'
>     stdchar='unsigned char', d_stdstdio=define, usevfork=false
>     intsize=4, longsize=8, ptrsize=undef, doublesize=undef
>     alignbytes=8, usemymalloc=y, prototype=define
>   Linker and Libraries:
>     ld='ld', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /v
> ar/shlib
>     libs=-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/us
> r/local/lib'
> 
> Characteristics of this binary (from libperl):
>   Built under dec_osf
>   Compiled at Mar 27 2000 10:54:20
>   @INC:
>     /projects/perl.dev/lib/alpha-dec_osf/5.00405
>     /projects/perl.dev/lib
>     /projects/perl.dev/lib/site_perl/alpha-dec_osf
>     /projects/perl.dev/lib/site_perl
>     .