[Coin-symphony] building Symphony 5.1.0 on solaris x86

bremner at unb.ca bremner at unb.ca
Sat Nov 18 09:24:10 EST 2006


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

-------------- next part --------------
-- 
David Bremner                        Associate Professor, UNB Computer Science
bremner at unb.ca                              Cross Appointment, UNB Mathematics
+1 (506) 447 3300                     Atlantic Scientific Director, MITACS NCE
http://www.cs.unb.ca/~bremner                             http://www.mitacs.ca


More information about the Symphony mailing list