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 peppler dot org>
Subject: Re: Problems with install sybperl
Date: Oct 16 2003 3:22PM

On Thu, 2003-10-16 at 00:35, Yuval Ben_mordechai wrote:
> Hi Michael,
> This was solve the CTlib problem but now I get a new one:

> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
> t/dblib....FAILED tests
> 20-22                                                

This is the dbpoll() bug that exists in some versions of OpenClient
11.1.1 for Solaris (and possibly other platforms).

To fix this you need to upgrade to a later EBF of OpenClient.

However, unless you plan to use asynch programming with DBlibrary (i.e.
dbpoll() and friends) you should be fine using sybperl as is.

Michael

> Michael Peppler wrote:
> > On Wed, 2003-10-15 at 07:51, Michael Peppler wrote:
> >   
> > > [ Note - CC'd to the sybperl-l mailing list as this is of interest to
> > > the general sybperl community ]
> > > 
> > > On Wed, 2003-10-15 at 07:33, Yuval Ben_mordechai wrote:
> > >     
> > > > Hi,
> > > > I tried to install sybperl on Solaris 8 with perl 5.8.1.
> > > > When runnig the make test I got this message:
> > > > 3 cusr +  0.06 csys =  0.29 CPU)
> > > > PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" 
> > > > "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
> > > > t/blk....Can't load 
> > > > '/.cpan/build/sybperl-2.15/BLK/../blib/arch/auto/Sybase/CTlib/CTlib.so' 
> > > > for module Sybase::CTlib: ld.so.1: /usr/local/bin/perl: fatal: 
> > > > relocation error: file /home/u/sybase/lib/libct.so: symbol 
> > > > dcl_result_drop: referenced symbol not found at 
> > > > /usr/local/lib/perl5/5.8.1/sun4-solaris-64int/DynaLoader.pm line 229.
> > > >       
> > > You're the second person to contact me this week with the same problem.
> > > 
> > > dcl_result_drop is defined in libtcl.so (or libtcl64.so, in your case).
> > > 
> > > Do you have tcl/tk installed on your system? It has a libtcl.so file
> > > that could interfere with Sybase.
> > > 
> > > Alternatively, Jason Ornstein noticed that perl 5.8.1 is using some new
> > > flags in the LDFLAGS line so that it is possible that some libraries
> > > don't get linked in correctly during the build.
> > > 
> > > I don't have a Solaris 8 box available for testing - but I'll build
> > > 5.8.1 on Solaris 7 and see what I find.
> > >     
> > OK - here's what I found:
> > 
> > Run "perl Makefile.PL"
> > Edit CTlib/Makefile, and delete all of the -z flags from the LDDLFLAGS
> > and CCDLFLAGS macros.
> > Run make, and make test. The Sybase::CTlib module should now run
> > normally.
> > 
> > Now to figure out why these -z flags cause the tcl library to get
> > ignored during the link phase...
> > 
> > Michael
> >   
> 
> -- 
> Your favorite stores, helpful shopping tools and great gift ideas.
> Experience the convenience of buying online with Shop@Netscape!
> http://shopnow.netscape.com/
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.mbay.net/~mpeppler/resume.html