<DIV>Hi everyone,Hi Andreas:</DIV>
<DIV>Thank you for your reply!</DIV>
<DIV>I tried as you said and the previous errors I reported disappeared.The "gmake install" stage after "gmake test" was no problem,the libipopt.a and libipopt.la were generated successfully. But there are some new and more errors in the "gmake test" stage:</DIV>
<DIV>when I did "gmake test", it outputs :</DIV>
<DIV> </DIV>
<DIV>.....</DIV>
<DIV>.....</DIV>
<DIV>cd test; gmake test<BR>gmake[2]: Entering directory `/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'<BR>source='hs071_main.cpp' object='hs071_main.o' libtool=no \<BR> DEPDIR=.deps depmode=tru64 /bin/ksh ../../../Ipopt/../depcomp \<BR> cxx -pthread -DHAVE_CONFIG_H -I. -I`echo ../../../Ipopt/test` -I../inc -I`echo ../../../Ipopt/test/../src/Common` -I`echo ../../../Ipopt/test/../src/LinAlg` -I`echo ../../../Ipopt/test/../src/LinAlg/TMatrices` -I`echo ../../../Ipopt/test/../src/Algorithm` -I`echo ../../../Ipopt/test/../src/Interfaces` -O -DNDEBUG -c -o hs071_main.o hs071_main.cpp<BR>source='hs071_nlp.cpp' object='hs071_nlp.o' libtool=no \<BR> DEPDIR=.deps depmode=tru64 /bin/ksh ../../../Ipopt/../depcomp \<BR> cxx -pthread -DHAVE_CONFIG_H -I. -I`echo ../../../Ipopt/test` -I../inc -I`echo ../../../Ipopt/test/../src/Common` -I`echo ../../../Ipopt/test/../src/LinAlg` -I`echo ../../../Ipopt/test/../src/LinAlg/TMatrices` -I`echo ../../../Ipopt/test/../src/Algorithm` -I`echo ../../../Ipopt/test/../src/Interfaces` -O -DNDEBUG -c -o hs071_nlp.o hs071_nlp.cpp<BR>/bin/ksh ../../libtool --tag=CXX --mode=link cxx -pthread -O -DNDEBUG -o hs071_cpp hs071_main.o hs071_nlp.o ../src/Interfaces/libipopt.la -lm -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1 -L/usr/lib/cmplrs/cc -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s <BR>mkdir .libs<BR>cxx -pthread -O -DNDEBUG -o hs071_cpp hs071_main.o hs071_nlp.o ../src/Interfaces/.libs/libipopt.a -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1 -L/usr/lib/cmplrs/cc -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1/../../.. /usr/users/df8002/gcclqc/gcc411/lib/libgfortranbegin.a /usr/users/df8002/gcclqc/gcc411/lib/libgfortran.so -lm -lgcc_s -rpath /usr/users/df8002/gcclqc/gcc411/lib<BR>ld:<BR><FONT color="#f00000">Unresolved:</FONT></DIV>
<DIV>std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned long, unsigned long, const char*, unsigned long) const <BR>std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::erase(std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::iterator, std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::iterator)<BR>std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_RWdeallocate_buffers(void)<BR>.....</DIV>
<DIV>Ipopt::SmartPtr<Ipopt::RegisteredOptions>::SmartPtr(const Ipopt::SmartPtr<Ipopt::RegisteredOptions>&)<BR>Ipopt::SmartPtr<Ipopt::Journalist>::operator *(void) const <BR>Ipopt::SmartPtr<Ipopt::SolveStatistics>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::IpoptAlgorithm>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::IpoptNLP>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::IpoptData>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::IpoptCalculatedQuantities>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::NLP>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::OptionsList>::operator *(void) const <BR>std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(void)<BR>std::basic_ifstream<char, std::char_traits<char> >::open(const char*, int, long)<BR>std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream(void)<BR>std::basic_ifstream<char, std::char_traits<char> >::close(void)<BR>Ipopt::IsValid(const Ipopt::SmartPtr<Ipopt::Journal>&)<BR>Ipopt::SmartPtr<Ipopt::RegisteredOptions>::operator ->(void) const <BR>Ipopt::SmartPtr<Ipopt::NLP>::operator =(Ipopt::NLP*)<BR>Ipopt::GetRawPtr(const Ipopt::SmartPtr<Ipopt::TNLP>&)<BR>Ipopt::ConstPtr(const Ipopt::SmartPtr<Ipopt::Journalist>&)<BR>Ipopt::SmartPtr<const Ipopt::Journalist>::~SmartPtr(void)<BR>Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>::SmartPtr(Ipopt::AlgorithmBuilder*)<BR>Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>::~SmartPtr(void)<BR>....</DIV>
<DIV><FONT color="#000000">and so on.<BR></FONT><BR>It seems that a lot of symbols can't be resolved.</DIV>
<DIV></DIV>Anyone can give me some suggestions? Thank you in advance!<BR><PRE>ÔÚ2009-12-14 01:23:27£¬"Andreas Waechter" <<A href="mailto:andreasw@watson.ibm.com">andreasw@watson.ibm.com</A>> дµÀ£º
>Hi,
>
>I know know if shared libraries are linked correctly on that system with
>the libtool version that we are using. I suggest you rerun configure with
>the --disable-shared flag, then you would compiled static and not shared
>libraries of Ipopt. But make sure you clean up everything before that (in
>particular the lib directory where the libraries are installed).
>
>Regards,
>
>Andreas
>
>
>On Sat, 12 Dec 2009, lqc234 wrote:
>
>> hi everyone ,hi Andreas!
>> I use the gnu make and native CXX compiler on the alpha system.The configure and make stage work well,howerver in the make test stage ,there are some errors:
>> cd test; gmake test
>> gmake[2]: Entering directory `/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
>> chmod u+x ./run_unitTests
>> ./run_unitTests
>>
>> Running unitTests...
>>
>> Testing AMPL Solver Executable...
>> no AMPL solver executable found, skipping test...
>> Testing C++ Example...
>>
>> ---- 8< ---- Start of test program output ---- 8< ----
>> resolve_symbols: loader error: dlopen: libipopt.so.0: symbol "GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix" unresolved
>> ---- 8< ---- End of test program output ---- 8< ----
>>
>> ******** Test FAILED! ********
>> Output of the test program is above.
>> Testing C Example...
>>
>> ---- 8< ---- Start of test program output ---- 8< ----
>> resolve_symbols: loader error: dlopen: libipopt.so.0: symbol "GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix" unresolved
>> ---- 8< ---- End of test program output ---- 8< ----
>>
>> ******** Test FAILED! ********
>> Output of the test program is above.
>> Testing Fortran Example...
>>
>> ---- 8< ---- Start of test program output ---- 8< ----
>> resolve_symbols: loader error: exception system: exiting due to internal error: exception dispatch or unwind stuck in infinite loop
>> ---- 8< ---- End of test program output ---- 8< ----
>>
>> ******** Test FAILED! ********
>> Output of the test program is above.
>> gmake[2]: Leaving directory `/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
>> gmake[1]: Leaving directory `/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt'
>> I guess that GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix is generated by the compiler,but what's wrong in the generated
>> libipopt.so.o? As to the fortran test , I really haven't any idea, I even don't know what the error means?
>> Anyone can help me? Thank you very much in advance!
>>
>> LiuQuanchang
</PRE><br><br><span title="neteasefooter"/></span>