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: Lord Vorp <lordvorp at usa dot net>
Subject: Sybperl on Linux Notes
Date: Nov 6 1997 12:16AM

Well, I've wanted to get Sybperl working for months, and FINALLY found a
note that had the solution.

Built/compiled, all happy.  Bout time! :)

So then I see the announce for 2.08 & 2.08.50 and try to build it, and
again it doesn't work...
but the same fix for the 1st one works for the new one.

The short version:
When running 'make test', a file is created in blib/arch/auto/Sybase called
extralibs.all.

It looks like this (on my linux system):
-L/usr/local/sybase/lib -lct -lcs -ltcl -lcomn -lintl -lsybtcl -linsck -lm

-L/usr/local/sybase/lib -lct -lcs -lcomn -lintl -lsybtcl -lc -lm

However, the "CORRECTED" version looks like this:
-L/usr/local/sybase/lib -lct -lcs -lcomn -lintl -lsybtcl -lm

-L/usr/local/sybase/lib -lct -lcs -lcomn -lintl -lsybtcl -linsck -lm

So the question here becomes:  How to change the Makefile.PL (or whatever)
to be correct?

There is an explicit mention of -ltcl (which seems to be the culprit) in
CTlib/Makefile.PL:
$lib_string = "-L$SYBASE/lib -lct -lcs -ltcl -lcomn -lintl
$$sattr{EXTRA_LIBS} -lm";

It was all over the makefiles in 2.07 but now that's the only place I see it.
Is this necessary?  Perhaps requiring -ltcl in the EXTRA_LIBS in CONFIG
would be an answer.

L8r,
L V