Up Prev Next
From: Andreas Schmidt <andi at team-konzept dot de>
Subject: Re: Problem installing Sybperl under Linux
Date: Oct 4 1997 12:43AM
We had this problem too, several month ago. And we could not really solve
it. But it was gone, after installing SuSE 5.0.
But maybe some hints:
- are you shure to have static linking enabled in the CONFIG file (although
the libraries are in ELF format, they don't support dynamic linking;) I'm a
litte confuse about all this -fpic and -shared stuff in your make-output.
- in the elf-port Sybase's libtcl.a was renamed to libsybtcl.a. Since
sybperl doesn't know this, you should change in CTlib/Makefile.PL the -tcl
to -sybtcl in the line where $lib_string is set before you call perl
- Our cc and ld-versions which compile all the stuff:
gcc version 220.127.116.11
GNU ld version 2.8.1 (with BFD 2.8.1)
Hope that helps
>I'm using slakware 3.2 (linux 2.0.30), perl 5.00401, sybperl 2.07 or
>2.07b. I've set DBLIBVS=0 in the CONFIG file, I am using the elf-port
>from Michael Pippler's site, and I am getting the following errors:
Sorry Michael. It was just a wrong keystroke in my last reply. Hope you get
your real name back soon.
>cu_atlas:/usr/src/sybperl-2.07# perl Makefile.PL
>Checking if your kit is complete...
>Note (probably harmless): No library found for -ltcl
>Writing Makefile for Sybase::CTlib
>Writing Makefile for Sybase
>cp lib/sql.pl ./blib/lib/./sql.pl
>cp lib/sybperl.pl ./blib/lib/./sybperl.pl
>cp lib/sybutil.pl ./blib/lib/./sybutil.pl
>cp lib/ctutil.pl ./blib/lib/./ctutil.pl
>make: Entering directory `/usr/src/sybperl-2.07/BCP'
>make: Nothing to be done for `all'.
>make: Leaving directory `/usr/src/sybperl-2.07/BCP'
>make: Entering directory `/usr/src/sybperl-2.07/CTlib'
>cp CTlib.pm .././blib/lib/Sybase/CTlib.pm
>AutoSplitting Sybase::CTlib (.././blib/lib/auto/Sybase/CTlib)
>/usr/bin/perl -I/usr/lib/perl5/i586-linux/5.00401 -I/usr/lib/perl5
>/usr/lib/perl5/ExtUtils/xsubpp -prototypes -typemap /usr/lib/perc
>cc -c -I/sybase/include -Dbool=char -DHAS_BOOL -I/usr/local/include
>-O2 -DVERSION=\"2.07\" -DXS_VERSION=\"2.07\" -fpic -I/usr/lic
>Running Mkbootstrap for Sybase::CTlib ()
>chmod 644 CTlib.bs
>LD_RUN_PATH="/sybase/lib:/lib" cc -o
>.././blib/arch/auto/Sybase/CTlib/CTlib.so -L/sybase/lib -shared
>-L/usr/local/lib CTlib.o -
>/usr/i486-linux/bin/ld:/sybase/lib/libct.a: file format not recognized;
>treating as linker script
>/usr/i486-linux/bin/ld:/sybase/lib/libct.a:1: parse error
>make: *** [.././blib/arch/auto/Sybase/CTlib/CTlib.so] Error 1
>make: Leaving directory `/usr/src/sybperl-2.07/CTlib'
>make: *** [subdirs] Error 2
>If I do a nm -s on any of the archive libs it tells me the the file
>format is not recognized. The file command said that the libs are ar
>Michael sPeppler wrote:
>> Steve wrote:
>> > I'm having a problem installing sybperl 2.07 or 2.07b under linux.
>> > perl version I have is 5.00401 I'm using sybase.gz from the sybase
>> > site, I also tried the version on www.mbay.net/~mpeppler site. I'm
>> > tried to link statically. The problem I have is when I do a make
>> test I
>> > receive the following errors:
>> > In function `to_datetime':
>> > DBlib.o(.text+0x623): undefined reference to `dbconvert'
>> You are trying to build the DBlib part of sybperl which requires
>> Sybase's DBlibrary API. This library is not available on Linux,
>> Edit CONFIG and set DBLIBVS=0, then rebuild from scratch (ie
>> starting with perl Makefile.PL).
>> Michael Peppler -||- Data Migrations Inc.
>> email@example.com -||- http://www.mbay.net/~mpeppler
>> Are you shure to have a.out-support on your linux box installed.
>> you should try the elf-port of the sybase client libraries (available
>> Michael Pippler's site)