This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
building libgcj on solaris
- To: java-discuss at sourceware dot cygnus dot com
- Subject: building libgcj on solaris
- From: Charlie McDowell <charlie at cse dot ucsc dot edu>
- Date: Mon, 21 Feb 2000 11:15:15 -0800
I saw a number of build problems in the archive but couldn't find this
one.
I'm running on Solaris 2.6.
I'm using gcc 2.8.1.
Im using ld 2.6 (with BFD 2.6).
I'm trying to build libgcj-2.95.1.
For some reason it doesn't like the -fpermissive option.
make[2]: Entering directory
`/projects/learning/usr/java/libgcj-objdir/sparc-sun-solaris2.6/libjava'
/bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I.
-I../../../libgcj-2.95.1/libjava -I./include -Iinclude
-I../../../libgcj-2.95.1/libjava/include
-I../../../libgcj-2.95.1/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1
-DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1
-I../../../libgcj-2.95.1/libjava/../compat-include
-I../../../libgcj-2.95.1/libjava/../zlib -fno-rtti -fvtable-thunks
-fpermissive -W -Wall -g -O2 -g0 -c
../../../libgcj-2.95.1/libjava/prims.cc
rm -f .libs/prims.lo
c++ -DHAVE_CONFIG_H -I. -I../../../libgcj-2.95.1/libjava -I./include
-Iinclude -I../../../libgcj-2.95.1/libjava/include
-I../../../libgcj-2.95.1/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1
-DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1
-I../../../libgcj-2.95.1/libjava/../compat-include
-I../../../libgcj-2.95.1/libjava/../zlib -fno-rtti -fvtable-thunks
-fpermissive -W -Wall -g -O2 -g0 -Wp,-MD,.deps/prims.pp -c -fPIC -DPIC
../../../libgcj-2.95.1/libjava/prims.cc -o .libs/prims.lo
cc1plus: Invalid option `-fpermissive'
Even after removing that, I get another problem. I'm sorry but I'm not
familiar with namespaces and some
C++ features that appear to be used. After eliminating the -fpermissive
flag I get:
c++ -DHAVE_CONFIG_H -I. -I../../../libgcj-2.95.1/libjava -I./include
-Iinclude -I../../../libgcj-2.95.1/libjava/include
-I../../../libgcj-2.95.1/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1
-DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1
-I../../../libgcj-2.95.1/libjava/../compat-include
-I../../../libgcj-2.95.1/libjava/../zlib -fno-rtti -fvtable-thunks -W
-Wall -g -O2 -g0 -Wp,-MD,.deps/prims.pp -c -fPIC -DPIC
../../../libgcj-2.95.1/libjava/prims.cc -o .libs/prims.lo
In file included from
../../../libgcj-2.95.1/libjava/java/lang/Object.h:16,
from ../../../libgcj-2.95.1/libjava/include/cni.h:16,
from ../../../libgcj-2.95.1/libjava/prims.cc:20:
../../../libgcj-2.95.1/libjava/include/javaprims.h:21: language string
`"Java"' not recognized
../../../libgcj-2.95.1/libjava/include/javaprims.h:23: syntax error
before `;'
...
When I examine javaprims.h, I don't know what to make of it. Line 21 is
the extern "Java" line.
// To force selection of correct types that will mangle consistently
// across platforms.
extern "Java"
{
typedef __java_byte jbyte;
typedef __java_short jshort;
typedef __java_int jint;
Any help would be greatly appreciated.
--
Charlie McDowell, Professor (831) 459-4772 (w)
Computer Science Department (831) 427-2076 (h)
239 Baskin Engineering (831) 459-4829 (fax)
Univ. of Calif., Santa Cruz, CA 95064
http://www.cse.ucsc.edu/~charlie