Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

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
	GNU ld version 2.8.1 (with BFD 2.8.1)
	  Supported emulations:

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...
>Looks good
>Note (probably harmless): No library found for -ltcl
>Writing Makefile for Sybase::CTlib
>Writing Makefile for Sybase
>cu_atlas:/usr/src/sybperl-2.07# make
>mkdir ./blib
>mkdir ./blib/lib
>mkdir ./blib/arch
>mkdir ./blib/arch/auto
>mkdir ./blib/arch/auto/Sybase
>mkdir ./blib/lib/auto
>mkdir ./blib/lib/auto/Sybase
>cp lib/ ./blib/lib/./
>cp lib/ ./blib/lib/./
>cp lib/ ./blib/lib/./
>cp lib/ ./blib/lib/./
>make[1]: Entering directory `/usr/src/sybperl-2.07/BCP'
>make[1]: Nothing to be done for `all'.
>make[1]: Leaving directory `/usr/src/sybperl-2.07/BCP'
>make[1]: Entering directory `/usr/src/sybperl-2.07/CTlib'
>mkdir .././blib/lib/Sybase
>mkdir .././blib/arch/auto/Sybase/CTlib
>mkdir .././blib/lib/auto/Sybase/CTlib
>cp .././blib/lib/Sybase/
>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
>LD_RUN_PATH="/sybase/lib:/lib" cc -o
>.././blib/arch/auto/Sybase/CTlib/  -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[1]: *** [.././blib/arch/auto/Sybase/CTlib/] Error 1
>make[1]: 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
>archive files.
>Michael sPeppler wrote:
>> Steve wrote:
>> >
>> > I'm having a problem installing sybperl 2.07 or 2.07b under linux.
>> The
>> > perl version I have is 5.00401  I'm using  sybase.gz from the sybase
>> > site, I also tried the version on site.  I'm
>> > tried to link statically. The problem I have is when I do a make
>> test I
>> > receive the following errors:
>>  /home/
>> nape9/sybperl-2.07/blib/arch/auto/Sybase/DBlib/DBlib.a(DBlib.o):
>> > 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,
>> unfortunately.
>> Edit CONFIG and set DBLIBVS=0, then rebuild from scratch (ie
>> starting with perl Makefile.PL).
>> Michael
>> --
>> Michael Peppler       -||-  Data Migrations Inc.
>>  -||-
>> 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)
>> Andi