[Fxruby-users] My fox build segfaults on Solaris 9 gcc.

Hugh Sasse Staff Elec Eng hgs at dmu.ac.uk
Mon Jul 19 10:03:16 EDT 2004


On Wed, 7 Jul 2004, Hugh Sasse Staff Elec Eng wrote:

> On Tue, 6 Jul 2004, jeroen wrote:
>
>> On Tuesday 06 July 2004 10:26 am, Hugh Sasse Staff Elec Eng wrote:
>>> The last thing I get on building the Fox library is
>>> 
>>> g++ -shared  FX4Splitter.lo FXAccelTable.lo FXApp.lo
>>> FXArrowButton.lo FXBMPIcon.lo FXBMPImage.lo FXBitmap.lo
>        [....]
>>> -ldl -lpthread -ljpeg -lpng -lz -lbz2 -lm -lGL -lGLU -lc
>>> -Wl,-soname -Wl,libFOX-1.2.so.0 -o .libs/libFOX-1.2.so.0.0.6
>>> collect2: ld terminated with signal 11 [Segmentation Fault], core
>>> dumped
>>> gmake[1]: *** [libFOX-1.2.la] Error 1
>>> gmake[1]: Leaving directory `/export/home/Scratch/hgs/fox-1.2.6/src'
>>> gmake: *** [all-recursive] Error 1
>>> 
>> I keep up with FOX compiling on SUN; it should compile out of the
>> box using SUN's own compiler.  If you have a problem with compiling
>
> I'll give that a go, but Ruby compiles with GCC, so will the
> libraries interoperate?  There are dire warnings about this in the
> changes docs for GCC, and I don't know enough to test for the
> ramificiations in any particular case.
>

OK, here is what I did

#!/bin/sh -vx
# vim:sw=2

for ld in /usr/ccs/bin/ld /usr/ucb/ld /usr/local/bin/ld
do
   LD=$ld
   export LD
   for cc in gcc /progs/SUNWspro/bin/cc /usr/ucb/cc
   do
     CC=$cc
     export CC
     for cxx in g++ CC
     do
       CXX=$cxx
       export CXX
       for make in gmake make
       do
         MAKE=$make
         export MAKE
         $MAKE distclean
         ./configure &&  $MAKE && ( echo $LD $CC $CXX $MAKE >> build.sh.out )
       done
     done
   done
done


and the results are:

/usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ make
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC gmake
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC make
/usr/ucb/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/ucb/ld /progs/SUNWspro/bin/cc g++ make
/usr/ucb/ld /progs/SUNWspro/bin/cc CC gmake
/usr/ucb/ld /progs/SUNWspro/bin/cc CC make
/usr/local/bin/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/local/bin/ld /progs/SUNWspro/bin/cc g++ make
# Then with freshly built gcc-3.4.1...
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ make
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC gmake
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC make
/usr/ucb/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/ucb/ld /progs/SUNWspro/bin/cc g++ make
/usr/ucb/ld /progs/SUNWspro/bin/cc CC gmake
/usr/ucb/ld /progs/SUNWspro/bin/cc CC make
/usr/local/bin/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/local/bin/ld /progs/SUNWspro/bin/cc g++ make
# Then with /usr/local/lib/sparcv9 added to the path.
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ make
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC gmake
/usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC make
/usr/ucb/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/ucb/ld /progs/SUNWspro/bin/cc g++ make
/usr/ucb/ld /progs/SUNWspro/bin/cc CC gmake
/usr/ucb/ld /progs/SUNWspro/bin/cc CC make
/usr/local/bin/ld /progs/SUNWspro/bin/cc g++ gmake
/usr/local/bin/ld /progs/SUNWspro/bin/cc g++ make

Basically it never build successfully with gcc.  When I rebuilt GCC
I build it with Sun's tools in preference to the existing GCC which
didn't work for Fox.  I'm somewhat stuck now.  Any suggestions on
how to proceed?

         Hugh


More information about the fxruby-users mailing list