Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Zick <minimod@morethan.org>
To: buildroot@busybox.net
Subject: [Buildroot] Glibc LD_LIBRARAY_PATH error
Date: Tue, 1 Jul 2014 16:09:04 -0500	[thread overview]
Message-ID: <20140701160904.34c80062@core2quad.morethan.org> (raw)
In-Reply-To: <20140701220703.0fa13b8a@free-electrons.com>

On Tue, 1 Jul 2014 22:07:03 +0200
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:

> Dear Arnout Vandecappelle,
> 
> On Tue, 01 Jul 2014 20:11:45 +0200, Arnout Vandecappelle wrote:
> 
> > >> > my problem was solved by your solution I mean using "unset
> > >> > LD_LIBRARY_PATH"
> > > Ok. I'm not sure why we don't simply unset the LD_LIBRARY_PATH
> > > from our main Makefile. Probably we should just do it.
> > 
> >  I could imagine an ancient build host where the developer has to
> > build his own python2.7 or other buildroot-dependencies. Not really
> > realistic, though, because then the executable should just set its
> > DT_RPATH/DT_RUNPATH.
> 
> Yes.
> 
> >  Also, we already have a check for LD_LIBRARY_PATH in
> > dependencies.sh. It just doesn't check for empty path elements,
> > only for . path elements.
> 
> Well, the idea would be to get rid of this check entirely, and replace
> it by a simple unexport in the main Makefile.
> 

What about the (I would hope, unusual) case where a user needs those
LD_LIBRARY_PATH settings to run a POST_**_SCRIPT ?

- - - -

Even a further out use case -
The applications requiring a LD_LIBRARY_PATH setting, where the
application(s) are used in a POST_**_SCRIPT, but the source isn't
available to build-in the appropriate DT_RUNPATH/DT_RPATH?

For this second use case -
How about putting a "host-patchelf" target in the host tools list?

This would allow the use case #2 above user to build the tool to
fix their host application to not require a LD_LIBRARY_PATH setting.

Note: 
In my few weeks of use; 
I have not been able to break ARM binaries with patchelf-0.8
regardless of the current documentation that claims ARM isn't
fully supported.

Mike
> What do you think?
> 
> Best regards,
> 
> Thomas

  reply	other threads:[~2014-07-01 21:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27 20:28 [Buildroot] Glibc LD_LIBRARAY_PATH error Panahi Parsa
2014-06-27 22:01 ` Thomas Petazzoni
2014-06-28  4:45   ` Panahi Parsa
2014-06-28  6:36     ` Thomas Petazzoni
2014-06-28 14:25       ` Panahi Parsa
2014-06-28 14:28         ` Thomas Petazzoni
2014-06-28 15:12           ` Panahi Parsa
2014-06-28 15:36             ` Panahi Parsa
2014-06-28 15:44               ` Thomas Petazzoni
2014-07-01 18:11                 ` Arnout Vandecappelle
2014-07-01 20:07                   ` Thomas Petazzoni
2014-07-01 21:09                     ` Mike Zick [this message]
2014-07-02  6:47                       ` Arnout Vandecappelle
2014-07-02  9:53                         ` Mike Zick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140701160904.34c80062@core2quad.morethan.org \
    --to=minimod@morethan.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox