[Ipopt] Compiling ipopt in ubuntu 13.10: udefined undefined reference to `dlopen'
Antonello Lobianco
antonello at lobianco.org
Tue Nov 19 02:40:02 EST 2013
Hi, I can confirm that appending LDFLAGS=-Wl,--no-as-needed to configure
solves the problem, thank you.
/Antonello
On 18 November 2013 18:09, Stefan Vigerske <stefan at math.hu-berlin.de> wrote:
> Hi,
>
> a wild guess: Can you try rerunning configure with option
> LDFLAGS=-Wl,--no-as-needed
> and see if that would help?
> That resolved some issues I saw with linking Ipopt libraries on some
> Ubuntu system.
>
> Stefan
>
>
> On 11/18/2013 05:44 PM, Antonello Lobianco wrote:
>
>> Hello, trying to compile ipopt 3.11.6 in Ubuntu 13.10 x64 I got the
>> following error:
>> g++ -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type
>> -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion
>> -Wno-unknown-pragmas -Wno-long-long -DIPOPT_BUILD -o .libs/ipopt
>> ampl_ipopt.o ./.libs/libipoptamplinterface.so
>> ../../Interfaces/.libs/libipopt.so
>> /home/lobianco/programs/linux/src/ipopt/ThirdParty/ASL/.
>> libs/libcoinasl.so
>> /home/lobianco/programs/linux/src/ipopt/ThirdParty/Mumps/.
>> libs/libcoinmumps.so
>> /home/lobianco/programs/linux/src/ipopt/ThirdParty/Metis/.
>> libs/libcoinmetis.so
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.8
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu
>> -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/../lib
>> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lpthread
>> -lgfortran -lquadmath -llapack -lblas -lm -ldl
>> ../../Interfaces/.libs/libipopt.so: undefined reference to `dlopen'
>> ../../Interfaces/.libs/libipopt.so: undefined reference to `dlclose'
>> ../../Interfaces/.libs/libipopt.so: undefined reference to `dlerror'
>> ../../Interfaces/.libs/libipopt.so: undefined reference to `dlsym'
>> collect2: error: ld returned 1 exit status
>> make[3]: *** [ipopt] Error 1
>>
>> I coudn't find anything specific to ipopt, and I see that the linker flag
>> -ldl, that is often "accused" to be the reason behind this error is
>> instead
>> already there.. any clue??
>>
>> /Antonello
>>
>> On 28 April 2013 03:36, Tae-Hyuk Ahn <ahn.no1 at gmail.com> wrote:
>>
>>
--
Antonello Lobianco
AgroParisTech, Laboratoire d'Economie Forestière
14 Rue Girardet - 54000 Nancy, France
Tel: +33.383396865
Email: antonello.lobianco at nancy.inra.fr
http://antonello.lobianco.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20131119/4fff81b8/attachment.html>
More information about the Ipopt
mailing list