This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ...but now


Cristian Gafton <gafton@redhat.com> writes:

> Atually, it doesn't because what is happening is you have  a static binary
> that will dlopen nss_ldap which in turn is dynamically linked against the
> LDAP libs which will cause a segfault.
> 
> So
>     static -> dlopen(foo) -> works
> but
>     static -> dlopen(foo) -> dlopen(bar) -> SEGV

This will never work.  It's simply impossible.  You have two ld.sos
which stomp on each others foots.  People simply have to realized that
static binaries can only be used in very special environments.  Create
a rpm which is linked dynamically and use it whenever possible.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]