Menu

#1 Linker problem; libcolamd.a

open
nobody
None
5
2013-04-09
2013-04-09
Samuel Fux
No

Hi,

I downloaded the sources via svn co https://libgimli.svn.sourceforge.net/svnroot/libgimli/trunk libgimli and tried to compile libgimli.

For linking the required libraries, I set

export LDFLAGS='-L/cluster/apps/openblas/0.2.4_seq/x86_64/gcc_4.7.0 -lopenblas -L/cluster/apps/boost/1.51.0/x86_64/serial/gcc_4.7.0/lib64 -lboost_system -L/cluster/apps/suitesparse/4.0.2/x86_64/gcc_4.7.0/lib64 -lsuitesparseconfig -lcolamd -lcholmod -lamd -lldl'

Everything seems to compile without error but when doing an ldd -d command to check if the library is complete, it shows an undefined symbol

[sfux@brutus2 ~]$ ldd -d libgimli-0.9.so.0
linux-vdso.so.1 => (0x00007fffe4d24000)
libboost_thread.so.1.51.0 => /cluster/apps/boost/1.51.0/x86_64/serial/gcc_4.7.0/lib64/libboost_thread.so.1.51.0 (0x00007fadadf76000)
libopenblas.so.0 => /cluster/apps/openblas/0.2.4_seq/x86_64/gcc_4.7.0/libopenblas.so.0 (0x00007f442f491000)
libboost_system.so.1.51.0 => /cluster/apps/boost/1.51.0/x86_64/serial/gcc_4.7.0/lib64/libboost_system.so.1.51.0 (0x00007fadadd64000)
libstdc++.so.6 => /cluster/apps/gcc/gcc470/lib64/../lib64/libstdc++.so.6 (0x00007fadada5c000)
libm.so.6 => /lib64/libm.so.6 (0x00007fadad7d8000)
libc.so.6 => /lib64/libc.so.6 (0x00007fadad445000)
libgcc_s.so.1 => /cluster/apps/gcc/gcc470/lib64/../lib64/libgcc_s.so.1 (0x00007fadad22f000)
libboost_chrono.so.1.51.0 => /cluster/apps/boost/1.51.0/x86_64/serial/gcc_4.7.0/lib64/libboost_chrono.so.1.51.0 (0x00007fadad028000)
librt.so.1 => /lib64/librt.so.1 (0x00007fadace20000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fadacc02000)
/lib64/ld-linux-x86-64.so.2 (0x00007fadae579000)
undefined symbol: colamd_printf (./libgimli-0.9.so.0)
[sfux@brutus2 ~]$

this somehow indicates that libcolamd.a from suitesparse was not linked correctly. When linking to libgimli, I get an "undefined reference to" error shows up until libsuitesparseconfig and libcolamd are linked explicitely.

Best regards

Sam

Discussion


Log in to post a comment.