[Coin-symphony] building Symphony 5.1.0 on solaris x86

Ted Ralphs tkralphs at lehigh.edu
Sun Nov 19 12:18:42 EST 2006


Thanks very much for taking the time to build SYMPHONY 5.1.0 on Solaris 
and for reporting this! We will incorporate your changes into release 
5.1.1, due out soon.

Cheers,

Ted

bremner at unb.ca wrote:
> I have managed to build Symphony 5.1.0 on our sun opteron servers with
> gcc 4.1.1
> 
> Here is what I had to do.
> 
> 1) config.guess returns 
> 
> i386-pc-solaris2.10
> 
> which is not recognized by the configure scripts (I get Unknown OS
> when configuring )
> 
> I made the following patch to SYMPHONY/configure.ac
> 
> --- SYMPHONY.orig/SYMPHONY/configure.ac	Thu Nov  2 08:39:48 2006
> +++ SYMPHONY-5.1.0/SYMPHONY/configure.ac	Fri Nov 17 21:35:48 2006
> @@ -466,9 +466,9 @@
>    *-aix-*)
>         SYMDEFS="$SYMDEFS -D__RS6K" 
>         ARCH=RS6K ;;
> -  *-sun-*)
> +  *-sun-*|*solaris2*)
>         case $build in
> -            *-i86pc-*)	
> +            *-i86pc-*|i386-pc*)	
>                  SYMDEFS="$SYMDEFS -D__X86SOL2"
>  	        ARCH=X86SOL2 ;;
>              *-5.-*)
> @@ -492,7 +492,6 @@
>    *)
>         AC_MSG_ERROR([Unknown OS]) ;;
>  esac
> -
>  #############################################################################
>  #                       Applications                                        #
>  #############################################################################
> 
> 
> 2) Then I had the fun of figuring out how to run autotools :-). 
> 
> Eventually I found run_autotools, but because 'grep -E' is a gnuism, I
> had to invoke the following jiggery-pokery
> 
> 
> $(SYMPHONYPATCHED): $(SYMPHONYUNPACKED) $(automakeBUILT) $(autoconfBUILT) $(libtoolBUILT)
> 	patch -p0 < patch-SYMPHONY-5.1.0-SYMPHONY-configure-ac
> 	cd $(SYMPHONYDIR) && \
> 	sed "s|grep|$(GREP)|" < ./BuildTools/run_autotools > local-run_autotools  && \
> 	 env AUTOTOOLS_DIR=`pwd`/../.. PATH=../../bin:$(PATH) sh ./local-run_autotools
> 	touch $(SYMPHONYPATCHED)
> 
> the main point is that I had to replace the hardcoded grep with
> something determined by my configure script.
> 
> The best thing would be if the usage of grep was portable, but failing
> that, maybe the script could make some more effort to find gnu grep,
> or allow overriding via a shell variable (this is part of an automated
> build process, so "edit the file" is not optimal).
> 
> All the best,
> 
> David
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Coin-symphony mailing list
> Coin-symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-symphony


-- 
Dr. Ted Ralphs
Associate Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2



More information about the Symphony mailing list