2008-04-16 03:50:20     ldd and ldconfig on target

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-16 03:50:20     ldd and ldconfig on target

Gyula Kovacs (HUNGARY)

Message: 54307    Hi All,

 

Does anybody know how to get ldd and ldconfig running on the target? When building the toolchain, only the host side versions are compiled (however, the sources are present in uClibc/utils directory).

 

Best regards,

Gyula

QuoteReplyEditDelete

 

 

2008-04-16 10:49:57     Re: ldd and ldconfig on target

Mike Frysinger (UNITED STATES)

Message: 54345    why do you want to do that ?  ldconfig is already run for you when generating the image in uclinux-dist, so running on the board seems kind of pointless ...

 

as for ldd, just use readelf on your host with the -d option

QuoteReplyEditDelete

 

 

2008-04-18 08:04:40     Re: ldd and ldconfig on target

Gyula Kovacs (HUNGARY)

Message: 54475    Hi Mike,

 

My original intention was to keep my proprietary libraries (which are not part of the distribution) in /opt/my-app/libs directory and specify this directory in the /etc/ld.so.conf file. The applications can find these shared libraries only if the ldconfig was running before starting them.

But it was just an idea, you are right, I can make my system up & running without ldconfig on the target.

 

Best regards,

Gyula

QuoteReplyEditDelete

 

 

2008-04-18 13:32:00     Re: ldd and ldconfig on target

Mike Frysinger (UNITED STATES)

Message: 54499    ldconfig only generates a cache.  it should not affect the ability to locate libraries in any way.

 

if the ldso cannot locate the library, please verify your /etc/ld.so.conf file is correct.

 

as for ldconfig, if you simply install the libraries into the romfs directory and update the ld.so.conf file, the build system should automatically update the cache with the additional path for you.

QuoteReplyEditDelete

 

 

2008-04-21 05:53:44     Re: ldd and ldconfig on target

Gyula Kovacs (HUNGARY)

Message: 54611    Hi Mike,

 

I've modified my scripts, and now everything is working fine. My private libs are in /opt/my-app/lib directory, and during the build - as you suggested - I've updated the /etc/ld.so.cache file.

Thank you for your help.

 

Best regards,

Gyula

Attachments

    Outcomes