[Coin-discuss] Problem building Osi-0.95.3/Osi/src/OsiDylp on Solaris 10

Stefan Vigerske stefan at math.hu-berlin.de
Fri Feb 9 14:00:01 EST 2007


Hi,

from a look at the code I think you can just take the corresponding 
lines out of the OsiDylpSolverInterface.cpp. They seem to print only 
some logmessages, e.g., around line 2085 the code is
# ifdef ODSI_INFOMSGS
   CoinMessageHandler *hdl = messageHandler() ;
   hdl->message(ODSI_DETACH,messages_)
     << reinterpret_cast<int>(this)
     << CoinMessageEol ;
# endif

Or you can check what is defining the ODSI_INFOMSGS flag and switch this 
off.

Of course, you should also post a ticket and report this as a bug, so 
someone responsible for it should correct it some day.

Stefan

Kostas Oikonomou schrieb:
> Hello,
> 
> I am trying to compile Osi-0.95.3 on Solaris 10, Sparc, using Sun's Sun 
> Studio 11 compilers.
> I configure like this:
> 
> configure --prefix=/opt/COIN/OSI CC='cc -xarch=v9a' CXX='CC -xarch=v9a' 
> CFLAGS='-xO3 -dalign -xlic_lib=sunperf' CXXFLAGS='-xO3 -dalign 
> -xlic_lib=sunperf'
> 
> (I am using the Sun Performance Library "sunperf").
> 
> Configuration succeeds, but at some point the make fails with the 
> following error:
> 
> ...
> ...
> 
>  CC -xarch=v9a -DHAVE_CONFIG_H -I. -I. -I../../inc 
> -I/home/build/Osi-0.95.3/CoinUtils/src 
> -I/home/build/Osi-0.95.3/Osi/../CoinUtils/inc 
> -I/home/build/Osi-0.95.3/DyLP/src/DylpStdLib 
> -I/home/build/Osi-0.95.3/DyLP/src/Dylp 
> -I/home/build/Osi-0.95.3/Osi/../DyLP/inc -I./.. -xO3 -dalign 
> -xlic_lib=sunperf -c OsiDylpWarmStartBasis.cpp  -KPIC -DPIC -o 
> .libs/OsiDylpWarmStartBasis.o
> "OsiDylpSolverInterface.cpp", line 2085: Error: Cannot cast from 
> OsiDylpSolverInterface* to int.
> "OsiDylpSolverInterface.cpp", line 4010: Error: Cannot cast from 
> OsiDylpSolverInterface* to int.
> "OsiDylpSolverInterface.cpp", line 4447: Error: Cannot cast from 
> OsiDylpSolverInterface* to int.
> "OsiDylpSolverInterface.cpp", line 5878: Error: Cannot cast from 
> OsiDylpSolverInterface* to int.
> 4 Error(s) detected.
> make[3]: *** [OsiDylpSolverInterface.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> make[3]: Leaving directory `/home/build/Osi-0.95.3/Osi/src/OsiDylp'
> 
> 
> Any help would be greatly appreciated.
> 
> 
>                 Kostas
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
> 


-- 
Stefan Vigerske
Humboldt University Berlin, Numerical Mathematics
http://www.math.hu-berlin.de/~stefan



More information about the Coin-discuss mailing list