Skip to contentSkip to conversation

New: ldconfig parameter in Makefile

Buildroot bugzilla at busybox.net 1 participant 2 messages Aug 17, 2015 – Aug 24, 2015

lore
Share & tools
lore
#0 lore raw

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

Summary: ldconfig parameter in Makefile
Product: buildroot
Version: 2015.05
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: ncfernan at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

The ldconfig invocation on the top Makefile seems to be wrong. At line 586 the parameter "-r" first set the new root and then the command tries to open the new config file, but at the wrong place:

/sbin/ldconfig -r $(TARGET_DIR) \
               -f $(TARGET_DIR)/etc/ld.so.conf;

The above command will always report a file not found, so it must be fixed to:

/sbin/ldconfig -r $(TARGET_DIR) \
               -f /etc/ld.so.conf;

The same applies to line 583.

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 8301] ldconfig parameter in Makefile

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

Thomas Petazzoni <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Thomas Petazzoni <[email protected]> 2015-08-24 20:18:19 UTC --- No, using /etc/ld.so.conf to generate the ld.so cache for the target is
completely wrong. The proper fix is to completely get rid of the ldconfig stuff
in Buildroot, since it cannot work properly in a cross-compiled environment.

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.