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: "Matthew O dot Persico" <persicom at acedsl dot com>
Subject: Re: Bad compilation
Date: Nov 28 2002 3:02AM

On 27 Nov 2002 10:27:13 -0800, Michael Peppler wrote:
>On Wed, 2002-11-27 at 10:15, Matthew O. Persico wrote:
>>On 27 Nov 2002 08:07:33 -0800, Michael Peppler wrote:
>>>On Tue, 2002-11-26 at 19:09, Matthew O. Persico wrote:
>>>
>
>>>>cc -c -I/opt/sybase-12.5/OCS/include -
>>>>I/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI -fno-strict-
>>>>aliasing -I/usr/local/include -O3 -fomit-frame-pointer -pipe -
>>>>mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce   -
>>>>DVERSION=\"0.95\" -DXS_VERSION=\"0.95\" -fpic -
>>>>I/usr/lib/perl5/5.6.1/i386-linux/CORE  Sybase.c Sybase.c:218:24:
>>>>Driver_xst.h: No such file or directory
>>>
>>>Hmmm.... I think I see where the problem lies. DBD::Sybase's
>>>Makefile.PL tries to find the proper location of the DBI include
>>>files, and does so by *first* searching in $Config{sitearchexp}
>>>and *then* in @INC.
>>>And it looks for DBIXS.h, not for Driver_xst.h. Hence the -I entry
>>>in the cc command above that refers to the /usr/lib/perl5/.../DBI
>>>directory.
>>>
>>>On line 155 of Makefile.PL try changing
>>>
>>>my @try = ($Config{sitearchexp}, @INC);
>>>
>>>to
>>>
>>>my @try = (@INC, $Config{sitearchexp});
>>>
>>>and see if that fixes things.
>>>
>>>Michael
>>
>>Whoooop. You 'da man! Worked like a charm. I guess that makes it
>>into 0.96, eh?
>
>Indeed. It's actually seriously braindead to search the system
>directories *first*. One has to assume that the PERL5LIB setting is
>used for a reason, and that this means that these directories should
>be searched first...

Well, don't kick yourself too hard. Happy Thanksgiving Day.

>
>Michael


--
Matthew O. Persico