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: undefined symbol: scl_init
Date: Jan 14 2000 6:12PM

Colm O' Flaherty writes:
 > Rainer,
 > 
 > The first thing to note is that the kernel release u think u have is not 
 > what Perl is reporting...  (2.0.34 as opposed to 2.2.5)
 > 
 > Would recommend u make Perl (and Sybperl) again on the new kernel, if 
 > possible.  If u have already done this (which irt doesn't look like u have, 
 > based on the date), and Perl -V still registers 2.0.34, maybe u sure the 
 > manual kernel upgrade went awry?  Just a thought.

undefined symbols in normal programs are (almost) never due to kernel
differences (this is of course not true of kernel modules, or modules
that interface directly with the kernel).

Usually this means that some library is missing from the linkline, or
that ld.so (the dynamic loader) picks the wrong library due to an
incorrect search path.

Michael


 > >From: Rainer Fuegenstein 
 > >Reply-To: rfu@iguwnext.tuwien.ac.at
 > >To: SybPerl Discussion List 
 > >Subject: undefined symbol: scl_init
 > >Date: Fri, 14 Jan 100 17:32:34 +0100 (MET)
 > >
 > >Hi,
 > >
 > >I installed sybase & sybperl under linux recently and now my cworker,
 > >who's an expert in perl programming, encountered a problem:
 > >
 > >[rfu@sheena sybperl-2.11]$ perl Version
 > >This is sybperl, version 2.11
 > >
 > >Sybase::DBlib $Revision: 1.49 $ $Date: 1999/09/21 21:08:01 $
 > >
 > >Copyright (c) 1991-1999 Michael Peppler
 > >
 > >perl: error in loading shared libraries
 > >/opt/sybase-11.9.2/lib/libct.so: undefined symbol: scl_init
 > >
 > >the machine is running a RedHat 5.2 distribution with the kernel upgraded
 > >to 2.2.5 (manually).
 > >
 > >sybase versions:
 > >sybase-ase-11.9.2-1
 > >sybase-common-11.9.2-1
 > >sybase-doc-11.9.2-1
 > >sybase-german-11.9.2-1
 > >sybase-openclient-11.1.1-1
 > >
 > >the production database is running on a different server, this installation
 > >is just used as a client for accessing this production server. therefore,
 > >I didn't run the sybase installer after making a rpm -hiv syb*
 > >
 > >accessing the sybase DB using isql works without problems.
 > >
 > >perl -V reports:
 > >
 > >Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
 > >   Platform:
 > >     osname=linux, osvers=2.0.34, archname=i386-linux
 > >     uname='linux porky.redhat.com 2.0.34 #1 thu may 7 10:17:44 edt 1998 
 > >i686 unk
 > >nown '
 > >     hint=recommended, useposix=true, d_sigaction=define
 > >     bincompat3=y useperlio=undef d_sfio=undef
 > >   Compiler:
 > >     cc='cc', optimize='-O2', gccversion=2.7.2.3
 > >     cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
 > >     ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
 > >     stdchar='char', d_stdstdio=define, usevfork=false
 > >     intsize=4, longsize=4, ptrsize=undef, doublesize=undef
 > >     alignbytes=4, usemymalloc=n, prototype=define
 > >   Linker and Libraries:
 > >     ld='cc', ldflags =' -L/usr/local/lib'
 > >     libpth=/usr/local/lib /lib /usr/lib
 > >     libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
 > >     libc=, so=so
 > >     useshrplib=false, libperl=libperl.a
 > >   Dynamic Linking:
 > >     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
 > >     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
 > >
 > >
 > >Characteristics of this binary (from libperl):
 > >   Locally applied patches:
 > >         MAINT_TRIAL_4 - 5.004_05 maintenance trial 4
 > >   Built under linux
 > >   Compiled at Sep 10 1998 02:16:22
 > >   @INC:
 > >     /usr/lib/perl5/i386-linux/5.00404
 > >     /usr/lib/perl5
 > >     /usr/lib/perl5/site_perl/i386-linux
 > >     /usr/lib/perl5/site_perl
 > >     .
 > >
 > >the db libs are still included in perl since I didn't dare to recompile 
 > >perl
 > >(heavily used as production machine), it doesn't look like this is the 
 > >problem.
 > >
 > >the hardware is an Intel Dual Pentium II and there's no tcl installed on 
 > >the
 > >server.
 > >
 > >sybperls make test failed with the following error message:
 > >[...]
 > >make[1]: Entering directory `/home/rfu/work/sybperl-2.11/BCP'
 > >PERL_DL_NONLAZY=1 /usr/bin/perl -I.././blib/arch -I.././blib/lib 
 > >-I/usr/lib/perl5/i386-linux/5.00404 -I/usr/lib/perl5 -e 'use Test::Harness 
 > >qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
 > >t/bcp...............Can't call method "sql" without a package or object 
 > >reference at t/bcp.t line 49.
 > >dubious
 > >         Test returned status 22 (wstat 5632, 0x1600)
 > >Undefined subroutine &Test::Harness::WCOREDUMP called at 
 > >/usr/lib/perl5/Test/Harness.pm line 252.
 > >make[1]: *** [test_dynamic] Error 2
 > >make[1]: Leaving directory `/home/rfu/work/sybperl-2.11/BCP'
 > >make: *** [test] Error 2
 > >
 > >Unfortunately, I'm not really familiar with perl, can't figure out what's 
 > >exactly
 > >the problem. maybe downgrading to an older sybase version might help ? we 
 > >are
 > >rather in panic mode now since deadlines are approaching much to fast ...
 > >
 > >tnx in advance.
 > >
 > >------------------------------------------------------------------------------
 > >  Rainer Fuegenstein                                 
 > >rfu@iguwnext.tuwien.ac.at
 > >------------------------------------------------------------------------------
 > >"Why are you looking into the darkness and not into the fire as we do ?", 
 > >Nell
 > >asked. "Because the darkness is where danger comes from," Peter said, "and
 > >from the fire comes only illusion".                   (from "The Diamond 
 > >Age")
 > >------------------------------------------------------------------------------
 > >
 > 
 > ______________________________________________________
 > Get Your Private, Free Email at http://www.hotmail.com
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com