Re: Source of "Note (probably harmless): No library found for -lfoo" messages

"Gerrit P. Haase" <[email protected]> Wed, 16 Jun 2004 10:21:16 +0200
Newsgroups gmane.os.cygwin.perl
Organization Esse keine toten Tiere
Message-ID <[email protected]>
Hi Yaakov,

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> I know I've had this message a number of times, and I've always wondered
> why some libs can be found and others not.  Of course, in cygwin it's
> NOT harmless, as win32 dll's can't have undefined symbols.  I think,
> though, that I may have (finally!!) found the source of the problem.

> These messages are generated by ExtUtils::Liblist::Kid, which verifies
> the presence of each library file specified, and if not found, removes
> it from the list (and gives that message to warn you).  It appears to
> verify presence by looking for the library file, either shared or
> static, in the standard lib dirs, plus any specified with -L.  I believe
> that this message occurs when the library was only built shared, and
> here's why:

> First, EU::Liblist::Kid looks for $libname.$so ($so appears to come from
> Config, so it should be dll) in the libdirs.  Of course, in cygwin where
> .dlls are in $PATH and not in libdirs, then it's never found.  Next, it
> looks for a static library.  If there is one, fine, but if the library
> was only built shared, all there is in the libdir is the .dll.a import
> library, which it doesn't seem to know to look for, and therefore it
> claims that it can't find the library (with all the consequences thereof).

> Would someone with more perl programming knowledge be able to verify
> this, and perhaps propose a patch?  Thanks!


I already submitted a patch twice to Michael Schern (MakeMaker
pumpking), it should be included in perl (post 5.8.2).  I have never
released another tarball with this fix included though...

It should also be sufficient to update MakeMaker via CPAN (if an update
is available).


Gerrit
-- 
=^..^=



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/ndFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/cygwin-perl/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/