libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS libtool under OSF (Digital Unix 5.1)


From: Gary V. Vaughan
Subject: Re: CVS libtool under OSF (Digital Unix 5.1)
Date: Fri, 03 Sep 2004 13:35:14 +0100
User-agent: Mozilla Thunderbird 0.7 (X11/20040615)

Hi Bob,

Previously I wrote:
> Bob Friesenhahn wrote:
> 
> > I see this interesting warning when building libldtl under Digital Unix
> > 5.1:
> >
> > /bin/ksh ../libtool --mode=link --tag=CC cc  -g -no-undefined  -o
> > libltdl.la -rpath /usr/local/lib -version-info 6:0:0 -dlpreopen
> > loaders/dlopen.la  libltdl_la-ltdl.lo libltdl_la-lt_dlloader.lo
> > libltdl_la-preopen.lo libdlloader.la
> >
> > *** Warning: Linking the shared library libltdl.la against the
> > *** static library loaders/.libs/dlopen.a is not portable!
> >
> > Perhaps loaders/.libs/dlopen.a is a convenience library?  Regardless, a
> > warning is being generated.
> 
> 
> loaders/.libs/dlopen.a should be an old archive of either pic or non-pic
> objects for linking --whole-archive wise into libltdl.la ready to be
> loaded by preopen.c.

I'm mistaken.  loaders/.libs/dlopen.a is always built from pic objects --
in effect a convenience library.

There is a shortcoming in the current implementation, which in this case
always results in pic objects from .libs/dlopen.a being linked with the
library that -dlpreopens it.  Although it carries a performance penalty,
I'm not aware of an architecture that disallows pic objects in statically
linked libs. And osf5 uses pic exclusively.

Anyway, that's beside the point, the warning is clearly bogus.  ltmain.in
(around line 3428 in current HEAD) has code that is supposed to skip this
warning (following line 3643) if the library name has been specified with
-dlpreopen.

Can you check that your libtool script is not picking up a bogus ltmain.sh
from before these lines were added (search for dlpreconveniencelibs) in
the first instance, and if everything looks okay, try to figure out why
the dlpreconveniencelibs checks are failing with a few well placed echos?

Cheers,
        Gary.
-- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]