Adding dependencies to shared objects

Andrew Haley aph-gcc@littlepinkcloud.COM
Sat Aug 18 10:05:00 GMT 2007


Christoph Bartoschek writes:
 > Hi,
 > 
 > I have on my opensuse 10.2 system a libblas.so.3 with the following problem:
 > 
 > bartosch@gunter> ldd -r /usr/lib64/libblas.so.3
 > undefined symbol: _gfortran_st_write_done      (/usr/lib64/libblas.so.3)
 > undefined symbol: _gfortran_transfer_integer   (/usr/lib64/libblas.so.3)
 > undefined symbol: cabs                         (/usr/lib64/libblas.so.3)
 > undefined symbol: _gfortran_stop_numeric       (/usr/lib64/libblas.so.3)
 > undefined symbol: _gfortran_st_write           (/usr/lib64/libblas.so.3)
 > undefined symbol: cabsf                        (/usr/lib64/libblas.so.3)
 > undefined symbol: _gfortran_transfer_character (/usr/lib64/libblas.so.3)
 >         libc.so.6 => /lib64/libc.so.6 (0x0002b31ac563000)
 >         /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
 > 
 > 
 > The library does not have libgfortran and libm as its dependencies. How can I 
 > change the libblas.so.3 such that libgfortran and libm appear as its 
 > dependencies?
 
What does readelf -d /usr/lib64/libblas.so.3 say?  If it really needs
libgfortran and libm as its dependencies, they should appear.

If they don't, then libblas has been build incorrectly and should be
relinked.

Andrew.



More information about the Gcc-help mailing list