[Coin-symphony] Issue compiling symphony.

Paul Pacheco paul.pacheco at wavecode.com
Thu Mar 10 16:18:02 EST 2005


On Thursday 10 March 2005 02:29 pm, Paul Pacheco wrote:
> I downloaded COIN from cvs, and I am trying to compile symphony.
>
> When compiling Osi, I got the following error:
>
> compiling OsiSymSolverInterface.cpp
> In file included from /home/paul/COIN/SYMPHONY/include/symphony_api.h:20,
>                  from include/SymWarmStart.hpp:25,
>                  from include/OsiSymSolverInterface.hpp:24,
>                  from OsiSymSolverInterface.cpp:19:
> /home/paul/COIN/SYMPHONY/include/proto.h:33: error: new declaration `int
>    srandom(unsigned int)'
> /usr/include/stdlib.h:443: error: ambiguates old declaration `void
>    srandom(unsigned int)'
>
> and compilation stopped right there.


I should give some more details (when will I learn?)

I am using gentoo current, this comes from emerge info:

System uname: 2.6.10-gentoo-r4 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.9
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13
Automake: 
sys-devel/automake-1.7.9-r1,sys-devel/automake-1.8.5-r3,sys-devel/automake-1.5,sys-devel/automake-1.4_p6,sys-devel/automake-1.6.3,sys-devel/automake-1.9.4
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.10-r4

I am using glpk 4.7

glibc version : glibc-2.3.4.20050125
gcc version: gcc-3.3.5-r1

If you need any more info, please let me know.

I commented the definition of srandom and it worked, but I hardly believe that 
is the right solution



More information about the Symphony mailing list