Skip to contentSkip to conversation

New: eglibc doesn't install ldconfig to target

Buildroot bugzilla at busybox.net 1 participant 4 messages Aug 12, 2013 – Feb 7, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=6446

Summary: eglibc doesn't install ldconfig to target
Product: buildroot
Version: 2013.05
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: bluemrp9 at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 5030
--> https://bugs.busybox.net/attachment.cgi?id=5030
install ldconfig to target

I am not 100% sure this is a bug. I noticed that when using the new experimental eglibc package, ldconfig does not get installed to the target. Attached is a patch. I'm also not sure if anything else needs installed as well (like ldd).

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 6446] eglibc doesn't install ldconfig to target

https://bugs.busybox.net/show_bug.cgi?id=6446

--- Comment #1 from Thomas De Schampheleire <[email protected]> 2014-02-07 09:03:19 UTC --- ldconfig, nor ldd, are required components on the target system.
These are not installed by default, even when using an external toolchain.

ldconfig basically updates /etc/ld.so.conf, which can be done by hand. ldd just runs the executable with the env variable LD_TRACE_LOADED_OBJECTS=1 set, so you can obtain the same behavior with:

LD_TRACE_LOADED_OBJECTS=1 /usr/bin/foo

So I indeed don't think this is a bug.
What do other developers think?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 6446] eglibc doesn't install ldconfig to target

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6446

--- Comment #2 from Thomas Petazzoni <[email protected]> 2014-02-07 14:52:49 UTC --- I agree that this is not a bug: there is no point in having ldconfig installed
to the target, since we don't support doing development on target. Therefore,
the ld.so.cache should be generated at build time, on the build machine.

That said, I believe there is a ldconfig problem: if none was found in the cross-compilation toolchain, we use the one from the build machine, which is wrong. But this is not per-se related to this bug.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 6446] eglibc doesn't install ldconfig to target

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6446

Ryan Coe <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Ryan Coe <[email protected]> 2014-02-07 15:09:18 UTC --- I do agree that they aren't normally needed on the target filesystem. I am marking this bug as invalid.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.