swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java, Swarm, JDK1.2.2, Solaris 8 and static vs shared libraries


From: Gary Polhill
Subject: Re: java, Swarm, JDK1.2.2, Solaris 8 and static vs shared libraries
Date: Wed, 15 Aug 2001 15:17:55 +0100

I installed binutils-2.11.2, gcc-3.0, and when compiling swarm-2001-08-10, I 
got the same error as before -- problems with collections.xm. I configured gcc 
just the way you did, and used the following command to configure swarm:

env EMACS=/software/emacs/emacs-20.6/bin/emacs ./configure 
--with-defaultdir=/software/swarm/swarm-2.1.1/needed 
--with-jdk=/software/java/jdk1.2.2 --with-xpmdir=/software/xpm/xpm-3.4k 
--enable-shared --prefix=/software/swarm/swarm-2.1.1/swarm --with-gnu-ld

binutils I configured with --prefix=/software/gcc/binutils-2.11.2

I built GNU sed-3.02, and this fixed the problem. (One minor gripe is that make 
distclean does not get rid of *.xm) The compilation then bailed out for lack of 
gperf, which I have also obtained and compiled (version 2.7.2). Now I get this 
little beauty... Any ideas? Also, why is the linker trying to include stuff in 
/afs/ncsa.uiuc.edu/packages/hdf/4.1r4-solaris7/lib (I don't have this 
directory)? Should I have compiled swarm from a different date?

gcc -g -O2 -Wall -Wno-import -Wno-protocol -Werror -o .libs/findImp findImp.o 
-L/software/swarm/swarm-2.1.1/src-20010810/src 
-L/software/swarm/swarm-2.1.1/src-20010810/libobjc 
/software/swarm/swarm-2.1.1/src-20010810/src/.libs/libswarm.so 
-L/software/swarm/swarm-2.1.1/src-20010810/src/space 
-L/software/swarm/swarm-2.1.1/src-20010810/src/analysis 
-L/software/swarm/swarm-2.1.1/src-20010810/src/simtoolsgui 
-L/software/swarm/swarm-2.1.1/src-20010810/src/simtools 
-L/software/swarm/swarm-2.1.1/src-20010810/src/random 
-L/software/swarm/swarm-2.1.1/src-20010810/src/tkobjc 
-L/software/swarm/swarm-2.1.1/src-20010810/src/tclobjc 
-L/software/swarm/swarm-2.1.1/src-20010810/src/objectbase 
-L/software/swarm/swarm-2.1.1/src-20010810/src/activity 
-L/software/swarm/swarm-2.1.1/src-20010810/src/defobj 
-L/software/swarm/swarm-2.1.1/src-20010810/src/collections 
-L/software/swarm/swarm-2.1.1/src-20010810/src/misc 
-L/software/swarm/swarm-2.1.1/src-20010810/libobjc 
-L/software/swarm/swarm-2.1.1/needed/lib -L/software/xpm/xpm-3.4k/lib 
-L/software/gcc/gcc-3.0/lib/gcc-lib/sparc-sun-solaris2.8/3.0/ 
/software/swarm/swarm-2.1.1/src-20010810/src/space/.libs/libspace.so 
/software/swarm/swarm-2.1.1/src-20010810/src/analysis/.libs/libanalysis.so 
/software/swarm/swarm-2.1.1/src-20010810/src/simtoolsgui/.libs/libsimtoolsgui.so
 /software/swarm/swarm-2.1.1/src-20010810/src/simtools/.libs/libsimtools.so 
/software/swarm/swarm-2.1.1/src-20010810/src/random/.libs/librandom.so 
/software/swarm/swarm-2.1.1/src-20010810/src/tkobjc/.libs/libtkobjc.so 
/software/swarm/swarm-2.1.1/src-20010810/src/tclobjc/.libs/libtclobjc.so 
/software/swarm/swarm-2.1.1/src-20010810/src/objectbase/.libs/libobjectbase.so 
/software/swarm/swarm-2.1.1/src-20010810/src/activity/.libs/libactivity.so 
/software/swarm/swarm-2.1.1/src-20010810/src/defobj/.libs/libdefobj.so 
/software/swarm/swarm-2.1.1/src-20010810/src/collections/.libs/libcollections.so
 /software/swarm/swarm-2.1.1/src-20010810/src/misc/.libs/libmisc.so 
/software/swarm/swarm-2.1.1/src-20010810/libobjc/.libs/libobjc.so -lgcc 
-lXpm -lpng /software/swarm/swarm-2.1.1/needed/lib/libhdf5.so 
-L/afs/ncsa.uiuc.edu/packages/hdf/4.1r4-solaris7/lib -lssl -lcrypto -lz -lmfhdf 
-ldf -ljpeg -lnsl -lm -lsocket -lX11 -ldl -Wl,--rpath 
-Wl,/software/swarm/swarm-2.1.1/swarm/lib -Wl,--rpath 
-Wl,/software/swarm/swarm-2.1.1/needed/lib -Wl,--rpath 
-Wl,/software/xpm/xpm-3.4k/lib -Wl,--rpath 
-Wl,/afs/ncsa.uiuc.edu/packages/hdf/4.1r4-solaris7/lib
/software/gcc/binutils-2.11.2/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[2]: *** [findImp] Error 1
make[2]: Leaving directory `/software/swarm/swarm-2.1.1/src-20010810/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/software/swarm/swarm-2.1.1/src-20010810'
make: *** [all-recursive-am] Error 2


Gary

>>> Marcus G. Daniels <address@hidden> 14/08/01 19:26:42 >>>
>>>>> "GP" == Gary Polhill <address@hidden> writes:

GP> Any ideas how I fix things? 
GP> Do you need to know how I installed gcc?

If it isn't possible to use the tested configuration of those
binaries, then I suggest building and installing GCC 3.0 in disk space
under your control.  I don't know what would cause the strange
behavior you are seeing buildling HDF5, but it is possible it is a
consequence of a broken compiler propagating garbage into autoconf.
Remember you need to install the latest GNU binutils and then
configure GCC with --with-gnu-ld and --with-gnu-as.

Here's what I use to build GCC 3.0 on sparc-sun-solaris2.8.
Change $SRC and $P/development/gcc to whatever make sense on your system. 

#!/bin/sh
SRC=/disks/disk1/Scratch/mgd/src/gcc-3.0

$SRC/configure --prefix=$P/development/gcc --srcdir=$SRC --with-gnu-as 
--with-as=$P/development/gcc/bin/as --with-gnu-ld 
--with-ld=$P/development/gcc/bin/ld
make bootstrap





                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]