This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile failure due to undefined symbol


Hi Daniel,

0x000000000000000f (RPATH) Library rpath: [/work/builds/binutils/current/shared-build/opcodes/../bfd/.libs]

But if it adds an rpath to the installed libraries, I think we should avoid that.

No, it does not do that. :-)

Umm, make that, it does add an rpath. Hmm, so why do the binaries still work if I rename my build bfd directory ? I am confused:


% cd shared-build
% mv bfd bfd-tmp-rename
% ldd ./install/bin/objdump
libopcodes-2.18.50.20071002.so => /work/builds/binutils/current/shared-build/install/lib/libopcodes-2.18.50.20071002.so (0x0000002a95557000)
libbfd-2.18.50.20071002.so => /work/builds/binutils/current/shared-build/install/lib/libbfd-2.18.50.20071002.so (0x0000002a956d1000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000003d51f00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003d51d00000)


  % ldd ./install/lib/libopcodes.so
  libbfd-2.18.50.20071002.so => not found
  libc.so.6 => /lib64/tls/libc.so.6 (0x0000002a956e6000)
  /lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)

So the installed executables can find the installed libraries, but the installed libaries cannot find the other installed libraries. Is this what should be expected ?

Cheers
  Nick


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