On 12/22/06, Fabian Groffen <[EMAIL PROTECTED]> wrote:
On 22-12-2006 13:56:35 -0700, m h wrote:
> Here's the log of what happens when (one of the libraries, libldap_r)
> it gets installed::
>
>  Entering subdirectory libldap_r
> make[2]: Entering directory
> 
`/opt/prefix/var/tmp/portage/openldap-2.3.27-r3/work/openldap-2.3.27/libraries/libldap_r'
> ...
> .libs/txn.o .libs/ppolicy.o .libs/version.o  -Wl,--rpath
> -Wl,/opt/prefix/usr/lib -L/opt/prefix/lib -L/opt/prefix/usr/lib

This is where it seems to be going wrong.  The rpath is
/opt/prefix/usr/lib but nothing else.  The list of -L paths is much
longer.  I don't know where libldap_r is supposed to go, but if it goes
in /opt/prefix/usr/lib then there seems to be something else wrong.

Where is libldap_r normally installed?

/opt/prefix/usr/lib


> -L/opt/prefix/usr/local/lib -L/opt/prefix/usr/X11/lib
> -L/opt/prefix/usr/X11R6/lib -L/lib -L/usr/lib -L/usr/local/lib
> -L/usr/X11/lib -L/usr/X11R6/lib
> -L/opt/prefix/var/tmp/portage/openldap-2.3.27-r3/image//opt/prefix/usr/lib
> -llber -lresolv
> -lssl -lcrypto  -Wl,-soname -Wl,libldap_r-2.3.so.0 -o
> .libs/libldap_r-2.3.so.0.2.15


> libtool: install: warning: remember to run `libtool --finish
> /opt/prefix/usr/lib'
> /bin/sh ../..//libtool --mode=finish
> /opt/prefix/var/tmp/portage/openldap-2.3.27-r3/image//opt/prefix/usr/lib
> PATH="$PATH:/sbin" ldconfig -n
> /opt/prefix/var/tmp/portage/openldap-2.3.27-r3/image//opt/prefix/usr/lib
>
> I think this last command ldconfig is messing things up.

-n:
Only process directories specified on the command line. Don't process
the trusted directories (/lib and /usr/lib) nor those specified in
/etc/ld.so.conf. Implies -N.

Besides, it's only cache for the runtime linker.  Unless you run
privileged, and the ldconfig succeeds because it gets it from the main
system, then this cache is used, but it doesn't sound at all that it
"removes" the rpath.


Hmm, I'm running as root, but maybe my memory is failing me ( I
manually ran through these commands yesterday and it seemed to be that
command that changed the link...).

Let me get back on the build machine and see.
--
[EMAIL PROTECTED] mailing list

Reply via email to