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: Rick Perron <rick at ties dot org>
Subject: Re: Sybperl problems under Digital Unix
Date: Sep 23 1997 6:17PM

> Rick,
> 
> I found your inquiry about problems with sybperl's "make test" in 
> the Sybperl e-mail archives, but I could not find a response.
> Did you get help with your problem, or find a fix yourself?
> I'm getting the same messages that you got:

> -----------------------------------------------------------------------
> Ken Fasman, Ph.D.                             |  ken@genome.wi.mit.edu  
> Director for Sequencing Informatics           | 
> Whitehead/MIT Center for Genome Research      |  (617) 258-0900 (main #)
> 320 Charles Street                            |  (617) 258-0903 (fax)
> Cambridge MA  02141                           |  (617) 258-0918 (direct)
> -----------------------------------------------------------------------

I don't know why the answer wasn't in the list archives.  I can't
find it in there either.  The answer I got was:

Rick Perron wrote:
> 
> > > > Please send a trace of the make test, and make it as detailed as
> > > > possible (it's probably a library problem).
> > > madness> make
> > > cc -c -I/home/sybase/prod/include -std -D_INTRINSICS -D__LANGUAGE_C__ -O4     -DVERSION=\"2.07b\"  -DXS_VERSION=\"2.07b\"  -I/usr/local/lib/perl5/alpha-dec_osf/5.00401/CORE -DCTLIBVS=100 -DSYBPLVER='"2.07b"' -DDO_TIE CTlib.c
> > > cc: Warning: CTlib.xs, line 59: Trailing comma found in enumerator list.
> > > } ConType;
> > > ^
> >
> > [etc.]
> >
> > Could you also supply us with the output of perl -V
> 
> Sorry for not including this earlier.
> 
> madness> perl -V
> Summary of my perl5 (5.0 patchlevel 4 subversion 1) configuration:



>   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 -ldb -lm
		^^^^^^
		here's the culprit (or at least one of them!)

You have berkeley DB installed on your system, and perl (unfortunately,
and incorrectly) links -ldb to the main perl executable, instead of
linking it only to DB_File.so.

I say unforntunately, because both Berkeley DB and Sybase DB library
have a function called dbopen().

Solution:
	1. Edit the Berkeley DB sources, change dbopen() to DBopen() 
	(for example), rebuild berkeley DB, rebuild perl, rebuild
	sybperl.

	2. Edit perl's config.sh and remove all occurances of -ldb.
	Regenerate the Makefile's (run ./Configure -S)
	Rebuild perl, rebuild sybperl.

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler