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: Alexandro Brito <abrito at temazatl dot tvirtual dot com dot mx>
Subject: Re: Help to install sybperl 2.07
Date: Sep 23 1997 3:50AM

On Fri, 19 Sep 1997, Michael Peppler wrote:

> Alexandro Brito wrote:
> >
> > Hi,
> >
> > I'm installing sybperl 2.07. I'm following the README file to install it
> > bun when I try to execute the "make test" statment I receive the following
> > output :
> >
> > # make test
> >         PERL_DL_NONLAZY=1 /usr/local/bin/perl -I.././blib/arch
> > -I.././blib/lib -I/usr/local/lib/perl5/i386-sco_sv/5.003
> > -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose);
> > $verbose=0; runtests @ARGV;' t/*.t
> > t/bcp...............Can't load '.././blib/arch/auto/Sybase/DBlib/DBlib.so'
> > for module Sybase::DBlib: dynamic linker: /usr/local/bin/perl: relocation
> > error: symbol not found: _ftol at /usr/local/lib/perl5/DynaLoader.pm line
> > 140.
>
> Well that's an error I've not seen before (but then I don't know of
> many people who run SCO anymore...)
>
> I think you need to go into /usr/lib and run something like (csh syntax)
> foreach i (*.a)
> echo $i
> nm $i | grep ftol
> end
>
> and see in which library that symbol is defined.
>
> Also, do the same thing in your Sybase lib directory, because it might
> just possibly be defined there...
>
> Then, if you find it, you need to add that library to the EXTRA_LIBS
> line in sybperl's CONFIG and rebuild from scratch (ie starting with
> perl Makefile.PL).
>
> Michael
> --
> Michael Peppler       -||-  Data Migrations Inc.
> mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler
>

Thank'a Michael,

I found the symbol ftol in libc.a library and I added this name to
EXTRA_LIBS line in CONFIG file but I receive the following output from
"perl Makefile.PL" statement:

# perl Makefile.PL
Writing Makefile for Sybase::BCP
Warning (will try anyway): No library found for -libc
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase


then when I execute "make" it outputs"

# make
Manifying .././blib/man3/Sybase::BCP.3
        cc -c -I/paquetes/sybase/include -belf -KPIC -O
-DVERSION=\"2.07\"
-DXS_VERSION=\"2.07\"  -I/usr/local/lib/perl5/i386-sco_sv/5.003/CORE
-DDBLIBVS=1
000 -DSYBPLVER='"2.07"' -DDO_TIE DBlib.c
"DBlib.c", line 508: warning: argument is incompatible with prototype: arg
#3
"DBlib.c", line 521: warning: argument is incompatible with prototype: arg
#6
"DBlib.c", line 570: warning: argument is incompatible with prototype: arg
#3
"DBlib.c", line 583: warning: argument is incompatible with prototype: arg
#6
"DBlib.c", line 3181: warning: end-of-loop code not reached
"DBlib.c", line 3188: warning: end-of-loop code not reached
Running Mkbootstrap for Sybase::DBlib ()
        chmod 644 DBlib.bs
        LD_RUN_PATH="/paquetes/sybase/lib:/lib" ld -o
..././blib/arch/auto/Sybase
/DBlib/DBlib.so -L/paquetes/sybase/lib -G -L/usr/local/lib DBlib.o
-L/paquete
s/sybase/lib -lsybdb -lm
        chmod 755 .././blib/arch/auto/Sybase/DBlib/DBlib.so
        cp DBlib.bs .././blib/arch/auto/Sybase/DBlib/DBlib.bs
        chmod 644 .././blib/arch/auto/Sybase/DBlib/DBlib.bs




and finally when I try to execute the "make test" I received the same
original error:

# make test
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I.././blib/arch
-I.././blib/lib -
I/usr/local/lib/perl5/i386-sco_sv/5.003 -I/usr/local/lib/perl5 -e 'use
Test::Har
ness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/bcp...............Can't load '.././blib/arch/auto/Sybase/DBlib/DBlib.so'
for m
odule Sybase::DBlib: dynamic linker: /usr/local/bin/perl: relocation
error: symb
ol not found: _ftol at /usr/local/lib/perl5/DynaLoader.pm line 140.

 at .././blib/lib/Sybase/DBlib.pm line 304
BEGIN failed--compilation aborted at .././blib/lib/Sybase/BCP.pm line 272.
BEGIN failed--compilation aborted at t/bcp.t line 12.
FAILED tests 1-9
        Failed 9/9 tests, 0.00% okay
        Test returned status 2 (wstat 512)
Failed 1 test script, 0.00% okay. 9/9 subtests failed, 0.00% okay.
*** Error code 2 (bu21)
*** Error code 1 (bu21)
#



Please help me, I really need to run sybperl for SCO.

thanks

----------------------------------------------------------------------
Tecnologia Virtual, S.A. de C.V.	Cuernavaca, Morelos, Mexico
Alexandro Brito Beltran			Tel: +52(73) 22-0770 ext. 236
abrito@tvirtual.com.mx			Fax: +52(73) 22-5194