<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=x-gbk" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>Make sure that you have a complete GNU build environment. The
Solaris package that contained all this used to be called GNU
binutils (or something like that), but I haven't used Solaris for
a few years. On Solaris systems, gnu software is usually prefixed
with a "g", so useful programs would be called called gmake, gar,
gas, etc.</tt> You may have to alias some of these things if
there aren't makefile options to set them. Finally, make sure that
the Fortran compiler is from the same suite (3.4.3) as your C and
C++ compilers. I think the command should be f77 in your case.<br>
<br>
I hope one of these suggestions is the right one.<br>
<br>
Tom<br>
<br>
On 06/19/2011 05:52 PM, Lqc wrote:
<blockquote
cite="mid:768ecab1.743c.130aa88a2b5.Coremail.lqc234@126.com"
type="cite">
<div>
<div>
<div>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman">hello,everybody!</font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"> I¡¯am
puzzled about some Ipopt questions. I use Ipopt-3.8.1
on my Solaris X86 system. Thirdparties of Ipopt are
HSL,ma27,ma19 and BLAS. There are two compilers in my
system: gcc(version 3.4.3) and CC. Ipopt used CC
compiler defaultly and there is no compilation problem
with CC. However our software is compiled by gcc,I
want to use gcc compiler to compile the Ipopt lib
because I </font></span><span lang="EN-US"><font
face="Times New Roman">heard there might be some
problem linking a lib compiled by cc in an application
compiled by gcc. </font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman">According to the manual, I compiled the Ipopt
like this:<span style=""> </span></font></span></p>
<p style="text-indent: 32.25pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman">mkdir build</font></span></p>
<p style="text-indent: 32.25pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman">cd build</font></span></p>
<p style="text-indent: 32.25pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman">../configure CXX=g++ CC=gcc</font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman">There are my problems in the compilation . Such
as :</font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><o:p><font
face="Times New Roman"><font color="#000080"> <em>..........................................................................</em></font></font></o:p></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><o:p><font
color="#000080" face="Times New Roman"><em> ...........................................................................</em></font></o:p></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>Text relocation remains<span
style=""> </span>referenced</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman"><em><font color="#000080"><span style=""> </span>against
symbol<span style=""> </span>offset<span
style=""> </span>in file</font></em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em><unknown><span
style=""> </span>0xa1<span
style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>ma27ad.t$4<span style="">
</span>0x19b<span style=""> </span><span
style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>ma27ad.SRC_LOC$1<span
style=""> </span>0x1aa<span
style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>ma27ad.t$6<span style="">
</span>0x281<span style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><o:p><font
color="#000080" face="Times New Roman"><em> </em></font></o:p></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡.</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡.</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>__f90_ssfw<span style="">
</span>0x1bc<span style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>__f90_ssfw<span style="">
</span>0x2a2<span style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>__f90_ssfw<span style="">
</span>0x360<span style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>__f90_ssfw<span style="">
</span>0x424<span style=""> </span>.libs/libipopt.lax/libcoinhsl.a/ma27ad.o</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>ld: fatal: relocations
remain against allocatable but non-writable sections</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>collect2: ld returned 1
exit status.</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>¡¡¡¡¡¡¡¡¡¡¡¡..</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font color="#000080"
face="Times New Roman"><em>¡¡¡¡¡¡¡¡¡¡¡¡..</em></font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><o:p><font
face="Times New Roman"> </font></o:p></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><o:p><font
face="Times New Roman"> </font></o:p></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"></span></p>
<span style="font-size: 18px;">
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font
color="#ff0000" face="Times New Roman"><font
color="#ff0000" face="Times New Roman">I record
the compile procedure and the errors </font>in
the 1.txt. </font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span style="font-size: 16px;"
lang="EN-US"></span> </p>
</span>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman"><span style="font-size: 18px;"></span>I found
that these questions were about <font color="#ff0000">¡°ma27¡±</font>
and <font color="#ff0000">¡°f90¡±, </font>so I thought
that it might be caused by the fortran compiler. I
checked the configure procedure and found Ipopt used
f95 to compile. There is another fortran compiler :
f90 in my system, ¡°might it be caused by the f95
compiler</font></span><span style="font-family: ËÎÌå;">£¿</span><span
lang="EN-US"><font face="Times New Roman">¡± I asked
myself.</font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman"> Then I used </font></span></p>
<p style="text-indent: 21.75pt; margin: 0cm 0cm 0pt;"
class="MsoNormal"><span lang="EN-US"><font face="Times New
Roman">../configure CXX=g++ CC=gcc F77=f90</font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><font
face="Times New Roman"> </font>to compile the
Ipopt.</font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman">However ,there
are still the questions. </font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"></span></p>
<span style="font-size: 18px;">
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#ff0000" face="Times New
Roman"><font color="#ff0000" face="Times New Roman">
</font>I put the compile procedure which includs the
errors in the 2.txt.</font></span></p>
</span>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><o:p><font face="Times New Roman"><span
style="font-size: 18px;"></span> </font></o:p></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><font
face="Times New Roman">As I said there was no
problem using CC to compile the Ipopt. Firstly, I
compiled the Ipopt with CC. Then </font> I compiled
my application. I used qmake of QT to generate the
Makefile. Qmake uses gcc to compile the application.(I
have no choice even I write the Makefile myself
without generating Makefile by qmake because ur
software is compiled with gcc). There are also some
errors which puzzled me greatly. Errors are like the
following:</font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><o:p><font face="Times New Roman"> </font></o:p></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><span
style=""> <font color="#000080"> </font></span><font
color="#000080">In file included from
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/vector:72,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
../../thirdparty/ipopt/Ipopt/src/Common/IpJournalist.hpp:28,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
../../thirdparty/ipopt/Ipopt/src/Common/IpException.hpp:13,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
../../thirdparty/ipopt/Ipopt/src/Interfaces/IpTNLP.hpp:14,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
reatvOptSolver.h:3,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
reatvOptSolver.cpp:12:</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_bvector.h:
In member function `void std::vector<bool,
_Alloc>::_M_insert_range(std::_Bit_iterator,
_ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_bvector.h:522:
error: expected unqualified-id before '(' token</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_bvector.h:
In member function `void std::vector<bool,
_Alloc>::_M_fill_insert(std::_Bit_iterator,
size_t, bool)':</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/stl_bvector.h:823:
error: expected unqualified-id before '(' token</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>In file included from
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/vector:75,</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
../../thirdparty/ipopt/Ipopt/src/Common/IpJournalist.hpp:28,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span><span
style=""> </span>from
../../thirdparty/ipopt/Ipopt/src/Common/IpException.hpp:13,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
../../thirdparty/ipopt/Ipopt/src/Interfaces/IpTNLP.hpp:14,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
reatvOptSolver.h:3,</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><em><font
color="#000080"><span style=""> </span>from
reatvOptSolver.cpp:12:</font></em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/vector.tcc:
In member function `void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename
_Alloc::pointer, std::vector<_Tp, _Alloc>
>, size_t, const _Tp&)':</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/vector.tcc:307:
error: expected unqualified-id before '(' token</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/vector.tcc:
In member function `void std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename
_Alloc::pointer, std::vector<_Tp, _Alloc>
>, _ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#000080" face="Times New
Roman"><em>/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/vector.tcc:384:
error: expected unqualified-id before '(' token</em></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><o:p><font face="Times New Roman"> </font></o:p></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><o:p><font face="Times New Roman"> </font></o:p></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><span style=""> <span
style="font-size: 18px;"></span><font
style="font-size: 18px;" color="#ff0000"> </font></span><span
style="font-size: 18px;"><font color="#ff0000">I
record the compile procedure in the 4.txt.</font></span></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><span
style="font-size: 18px;"></span></font></span> </p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><span
style="font-size: 18px;"></span></font></span> </p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><span
style="font-size: 18px;"></span></font></span> </p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font color="#ff0000" face="Times New
Roman"><span style="font-size: 18px;"> <font
color="#000000">I have tried for many times and
several days, however have no idea about the
errors yet. I am not familiar with configure and
Makefile, and Ipopt seems too complicated for
me. The compile procedure of the cases I
described are attached in the mail. Anyone can
give me some suggestions? I appreciate greatly
for your help!!!! Thank you very much!</font></span></font></span></p>
<p style="margin: 0cm 0cm 0pt;" class="MsoNormal"><span
lang="EN-US"><font face="Times New Roman"><span
style="font-size: 18px;">
Liu Quanchang</span></font></span></p>
</div>
<br>
</div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span>
<script language="javascript">try{var s = window.name;parent.MM[s].initIframe();}catch(e){}</script>
</div>
<br>
<br>
<span title="neteasefooter"><span id="netease_mail_footer"></span></span>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Ipopt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/ipopt">http://list.coin-or.org/mailman/listinfo/ipopt</a>
</pre>
</blockquote>
<br>
</body>
</html>