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: "Calder, Erick" <ECalder at westernasset dot com>
Subject: Re: DBD::Sybase on OSX failing make...
Date: Feb 7 2005 2:23PM


as per Chuck's discovery, I'm attaching a little patch that
addresses issues with OSX

1) the value of $SYBASE defaults to /Applications/Sybase/System
which is the default location for installations.  this value is used
(OSX only) when /opt/sybase doesn't exist (and the previously
mentioned directory does).

2) -lsybsrv is added to $attr{EXTRA_LIBS} which comes from the
CONFIG.  I didn't want to add it to the config because there's no
way to conditionally set the value per OS.  it would be better if
the CONFIG were include()d instead of read so things can be more
automatic (like OS detection).

the patch is provided in diff -Naur format.

thanks for maintaining this very useful module and I hope the patch

- erick

 -----Original Message-----
> From: Charles Phares []
> Sent: Friday, February 04, 2005 1:30 PM
> To:
> Subject: Re: Failing make...
> Sure, Erick!
> I only misspelled the variable name for DYLD_LIBRARY_PATH(!!)  I
had defined it incorrectly as:  DYLD_LIBRARY  (details,
> My running value is:
> DYLD_LIBRARY_PATH=/Applications/Sybase/System/OCS-12_5/lib:/
> Applications/Sybase/System/ASE-12_5/lib
> I removed references to /usr/local/lib from the makefile as I
don't have that directory structure.  I altered the following two
> in the makefile:
> EXTRALIBS = -L/Applications/Sybase/System/OCS-12_5/lib -lsybsrv_r
-lsybct_r -lsybcs_r -lsybtcl_r -lsybcomn_r -lsybintl_r -lsybblk_r
LDLOADLIBS = -L/Applications/Sybase/System/OCS-12_5/lib -lsybsrv_r
-lsybct_r -lsybcs_r -lsybtcl_r -lsybcomn_r -lsybintl_r -lsybblk_r
-ldl -lm
> I tried to understand how Makefile.PL was generating these
entries, but
> I am not that fluent in perl.(!!) It looks like sybsrv_r was
> inadvertently excluded from the list of required libraries though.
> Good Luck!
> -Chuck
> On Feb 4, 2005, at 1:06 PM, Calder, Erick wrote:
>> Chuck,
>> I had the same problem a while back and never went back to figure
it out.  in which way did you correct the _PATH (what did you
> add/change)?
>> dould you post the actual entry you made into the makefile for the
> sake
>> of others?
>> thanks - erick
>> -----Original Message-----
>> From: Charles Phares []
>> Sent: Friday, February 04, 2005 11:08 AM
>> To:
>> Subject: Re: Failing make...
>> OK.  So I corrected my DYLD_LIBRARY_PATH variable, and added
sybsrv_r to the library lists where other sybase libraries were
in the make file, and it made with out issue.
>> -Chuck
>> On Feb 3, 2005, at 12:03 PM, Charles Phares wrote:
>>> Greetings All!
>>> I am having trouble building DBD-Sybase on Mac OS X 10.3.7.  I
am running Sybase ASE 12.5.3 & perl 5.8.1-RC3.  DBI built with
no problems.
>>> Make is failing with the following message:
>>> ld: warning can't open dynamic library: libsybsrv_r.dylib
(checking for undefined symbols may be affected) (No such file
or directory, errno = 2)
>>> DYLD_LIBRARY=/Applications/Sybase/System/OCS-12_5/lib:/Applications/
>>> and if I search in this path, I find the libsybsrv_r.dylib file.
>>> stumped!  :)
>>> Attempting to run make tests returns many many failures.
>>> Any ideas?
>>> Cheers!
>>> -Chuck

E-mail sent through the Internet is not secure. Western Asset therefore recommends that you do not send any confidential or sensitive information to us via electronic mail, including social security numbers, account numbers, or personal identification numbers. Delivery, and or timely delivery of Internet mail is not guaranteed. Western Asset therefore recommends that you do not send time sensitive or action-oriented messages to us via electronic mail.