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: Tue, 14 Aug 2001 18:25:40 +0100

Compilation of swarm-2001-08-10 fails (details below). I configured with:

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

I am using SDGgcc-2.95.2 -- I didn't quite install this the way you asked 
because I don't have root permissions any more :-( -- and I wanted to give 
sysadmin the minimum and simplest possible instructions... However, I am 
assuming from the fact that other swarm things compile OK that there is no 
problem with my gcc installation...
I have downloaded the binary version of hdf5-1.4.2, because the source failed 
to compile.

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libobjc -I../../libobjc -I. 
-I.. -I./.. -I./../defobj -I./../misc -I./../objectbase -I./../random 
-I/software/java/jdk1.2.2/include -I/software/java/jdk1.2.2/include/solaris 
-DBUILDING_SWARM -g -O2 -Wall -Wno-import -Wno-protocol -Werror 
-Wno-unknown-pragmas -c  -fPIC -DPIC collections.m -o .libs/collections.lo
In file included from collections.m:12:
collections.xm:6: `id' redeclared as different kind of symbol
../../libobjc/objc/objc.h:72: previous declaration of `id'
collections.xm:6: parse error before `OffsetOutOfRange'
cc1obj: warnings being treated as errors
collections.xm:8: warning: type defaults to `int' in declaration of 
`AlreadyAtEnd'
collections.xm:8: conflicting types for `AlreadyAtEnd'
collections.h:330: previous declaration of `AlreadyAtEnd'
collections.xm:8: warning: type defaults to `int' in declaration of 
`AlreadyAtStart'
collections.xm:8: conflicting types for `AlreadyAtStart'
collections.h:330: previous declaration of `AlreadyAtStart'
collections.xm:8: warning: type defaults to `int' in declaration of 
`InvalidIndexLoc'
collections.xm:8: conflicting types for `InvalidIndexLoc'
collections.h:330: previous declaration of `InvalidIndexLoc'
collections.xm:8: warning: type defaults to `int' in declaration of 
`InvalidLocSymbol'
collections.xm:8: conflicting types for `InvalidLocSymbol'
collections.h:330: previous declaration of `InvalidLocSymbol'
collections.xm:8: warning: data definition has no type or storage class
collections.xm:9: warning: address@hidden' must appear in an implementation 
context
collections.xm:10: warning: address@hidden' must appear in an implementation 
context
collections.xm:11: invalid identifier address@hidden'
collections.xm:12: invalid identifier address@hidden'
collections.xm:12: parse error before address@hidden'
collections.xm:13: method definition not in class context
make[3]: *** [collections.lo] Error 1
make[3]: Leaving directory 
`/software/swarm/swarm-2.1.1/src-20010810/src/collections'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/software/swarm/swarm-2.1.1/src-20010810/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/software/swarm/swarm-2.1.1/src-20010810'
make: *** [all-recursive-am] Error 2

collections.xm looks kind of weird -- is it meant to have doubled up lines (my 
guess is not!):
     1  #import <collections.h>
     2  #import <objc/objc-api.h>
     3
     4  externvardef id Start=0,End=0,Between=0,Removed=0,Member=0;
     5  externvardef id OffsetOutOfRange=0,NoMembers=0,
     6  externvardef id OffsetOutOfRange=0,NoMembers=0,
     7  AlreadyAtEnd=0,AlreadyAtStart=0,InvalidIndexLoc=0,InvalidLocSymbol=0;
     8  AlreadyAtEnd=0,AlreadyAtStart=0,InvalidIndexLoc=0,InvalidLocSymbol=0;
     9  @end
    10  @end
    11  @protocolPermutedIndex
    12  @protocolPermutedIndex
    13  CREATING
    14  CREATING
    15  -setCollection:aCollection=0;
    16  -setCollection:aCollection=0;
    17  -setUniformRandom:rnd=0;
    18  -setUniformRandom:rnd=0;
    19  USING
    20  USING
    21  -reshuffle=0;
    22  -reshuffle=0;
...

I filtered collections.xm through the following awk script:

cat collections.xm-20010814-1805 | awk 'BEGIN { lastline = "bibble" } $0 != 
lastline { print; lastline = $0 }' > collections.xm

Now I get:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libobjc -I../../libobjc -I. 
-I.. -I./.. -I./../defobj -I./../misc -I./../objectbase -I./../random 
-I/software/java/jdk1.2.2/include -I/software/java/jdk1.2.2/include/solaris 
-DBUILDING_SWARM -g -O2 -Wall -Wno-import -Wno-protocol -Werror 
-Wno-unknown-pragmas -c  -fPIC -DPIC collections.m -o .libs/collections.lo
cc1obj: warnings being treated as errors
In file included from collections.m:12:
collections.xm:7: warning: address@hidden' must appear in an implementation 
context
collections.xm:8: invalid identifier address@hidden'
collections.xm:9: parse error before `-'
collections.xm:9: method definition not in class context
make[3]: *** [collections.lo] Error 1
make[3]: Leaving directory 
`/software/swarm/swarm-2.1.1/src-20010810/src/collections'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/software/swarm/swarm-2.1.1/src-20010810/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/software/swarm/swarm-2.1.1/src-20010810'
make: *** [all-recursive-am] Error 2


>>> Marcus G. Daniels <address@hidden> 13/08/01 16:33:02 >>>
>>>>> "GP" == Gary Polhill <address@hidden> writes:

GP> So would you suggest I installl the gcc binaries off the CD-ROM (I
GP> have an atypical install locatiion -- will that be OK?), get the
GP> latest version of Swarm from the ftp site and compile that having
GP> configured with --enable-shared?

Below is the Swarm compile command I use with the GCC binaries.

Lose the --datadir=$DATADIR and replace $SWARMSRCDIR with where your
Swarm source tree is unpacked.  Replace $P/data/hdf5 with a path
containing a new install of HDF5 (or drop the option).  The latest
version of HDF5 is 1.4.2 from ftp://hdf.ncsa.uiuc/HDF5.

#!/bin/sh
JAVAC=jikes $SWARMSRCDIR/configure --srcdir=$SWARMSRCDIR --prefix=$P/swarm-test 
--enable-subdirs --with-xpmdir=/usr/local/X11 
--with-tcldir=/opt/SUNWtcl/8.0/sun4 --with-bltdir=/opt/SDGblt/2.4g 
--with-zlibdir=/opt/SDGzlib/1.1.3 --with-pngdir=/opt/SDGlibpng/1.0.5 
--datadir=$DATADIR --with-hdf5dir=$P/data/hdf5 --with-jdkdir=/opt/jdk1.3 && make

                  ==================================
   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]