[Bonmin] Unresolved symbol in libClp
Tony Kelman
kelman at berkeley.edu
Wed Jan 15 17:25:54 EST 2014
Felipe,
COIN libraries currently don’t link to their dependencies by default. There
are a few ways to deal with this. Either you can change the makefile of your
application to include all of the dependencies on the link line
(replace -lbonmin with the output of
`PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --libs bonmin`), or you
can try the recently added --enable-dependency-linking configure flag which
should result in libClp depending on libcoinmumps, etc.
-Tony
-----Original Message-----
From: Felipe Furlan
Sent: Wednesday, January 15, 2014 9:37 AM
To: bonmin at list.coin-or.org
Subject: [Bonmin] Unresolved symbol in libClp
Hi all,
I compiled Bonmin release version 1.7.4 on linux (ubuntu 12.04) with
MUMPS. MUMPS was downloaded using the get.mumps script in ThirdParty
directory. The compilation works fine, but when I use bonmin inside a
program of mine, the following error occurs:
error: /usr/local/lib/libClp.so.1: undefined symbol: MPI_Init
Looking at the library file I got:
felipe at felipe:/usr/local/lib$ nm libClp.so | grep -i MPI_INit
U MPI_Init
Apparently, this symbol is defined in libcoinmumps:
felipe at felipe:/usr/local/lib$ nm libcoinmumps.so | grep -i mpi_init
00163e40 T MPI_Init
00160c60 T mpi_init
00160c70 T mpi_initialized_
But libClp does not depend on libcoinmumps:
felipe at felipe:/usr/local/lib$ ldd libClp.so
linux-gate.so.1 => (0xb76f8000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb7483000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7457000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb72ac000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb728e000)
/lib/ld-linux.so.2 (0xb76f9000)
I compiled Bonmin through:
configure --prefix=/usr/local
make
sudo make install
Did I forget some flag during configuration in bonmin folder?
Thanks.
Best regards,
Felipe Furlan
_______________________________________________
Bonmin mailing list
Bonmin at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/bonmin
More information about the Bonmin
mailing list