Mark Mitchell dixit: >In general, GCC 3.4.3 is working for people
I've been playing around a lot with the various 3.4.4 snapshots lately, and got everything to work, except for libjava: gmake[1]: Entering directory `/usr/obj/gcc/libjava' /bin/ksh ./libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I/usr/src/gcc/libjava -I./include -I./gcj -I/usr/src/gcc/libjava -Iinclude -I/usr/src/gcc/libjava/include -I/usr/src/gcc/boehm-gc/include -DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I/usr/src/gcc/libjava/libltdl -I/usr/src/gcc/libjava/libltdl -I../libstdc++-v3/include -I../libstdc++-v3/include/i386-ecce-mirbsd8 -I/usr/src/gcc/libjava/../libstdc++-v3/libsupc++ -I/usr/src/gcc/libjava/.././libjava/../gcc -I/usr/src/gcc/libjava/../libffi/include -I../libffi/include -isystem /usr/src/gcc/libjava -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -ffloat-store -I/usr/X11R6/include -W -Wall -D_GNU_SOURCE -DPREFIX="\"/usr\"" -DLIBDIR="\"/usr/lib\"" -DBOOT_CLASS_PATH="\"/usr/share/java/libgcj-3.4.4.jar\"" -O2 -c /usr/src/gcc/libjava/prims.cc mkdir .libs c++ -DHAVE_CONFIG_H -I. -I/usr/src/gcc/libjava -I./include -I./gcj -I/usr/src/gcc/libjava -Iinclude -I/usr/src/gcc/libjava/include -I/usr/src/gcc/boehm-gc/include -DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I/usr/src/gcc/libjava/libltdl -I/usr/src/gcc/libjava/libltdl -I../libstdc++-v3/include -I../libstdc++-v3/include/i386-ecce-mirbsd8 -I/usr/src/gcc/libjava/../libstdc++-v3/libsupc++ -I/usr/src/gcc/libjava/.././libjava/../gcc -I/usr/src/gcc/libjava/../libffi/include -I../libffi/include -isystem /usr/src/gcc/libjava -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -ffloat-store -I/usr/X11R6/include -W -Wall -D_GNU_SOURCE -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -DBOOT_CLASS_PATH=\"/usr/share/java/libgcj-3.4.4.jar\" -O2 -Wp,-MD,.deps/prims.pp -c /usr/src/gcc/libjava/prims.cc -fPIC -DPIC -o .libs/prims.o In file included from /usr/src/gcc/libjava/java/lang/Object.h:16, from /usr/src/gcc/libjava/gcj/cni.h:16, from ./include/platform.h:40, from /usr/src/gcc/libjava/prims.cc:12: /usr/src/gcc/libjava/gcj/javaprims.h:486: error: declaration of C function `java::lang::Thread* _Jv_AttachCurrentThread(java::lang::String*, java::lang::ThreadGroup*)' conflicts with /usr/src/gcc/libjava/gcj/javaprims.h:484: error: previous declaration `jint _Jv_AttachCurrentThread(java::lang::Thread*)' here In file included from ./java/lang/String.h:9, from /usr/src/gcc/libjava/java/lang/Class.h:18, from /usr/src/gcc/libjava/gcj/cni.h:17, from ./include/platform.h:40, from /usr/src/gcc/libjava/prims.cc:12: /usr/src/gcc/libjava/gcj/array.h: In function `jsize JvGetArrayLength(__JArray*)': /usr/src/gcc/libjava/gcj/array.h:29: error: previous declaration of `jsize JvGetArrayLength(__JArray*)' with Java linkage /usr/src/gcc/libjava/gcj/array.h:138: error: conflicts with new declaration with C linkage In file included from /usr/src/gcc/libjava/gcj/cni.h:17, from ./include/platform.h:40, from /usr/src/gcc/libjava/prims.cc:12: /usr/src/gcc/libjava/java/lang/Class.h: At global scope: /usr/src/gcc/libjava/java/lang/Class.h:366: error: declaration of C function `void _Jv_InitField(java::lang::Object*, java::lang::Class*, int)' conflicts with /usr/src/gcc/libjava/java/lang/Class.h:365: error: previous declaration `void _Jv_InitField(java::lang::Object*, java::lang::Class*, _Jv_Field*)' here In file included from ./include/platform.h:40, from /usr/src/gcc/libjava/prims.cc:12: /usr/src/gcc/libjava/gcj/cni.h: In function `java::lang::Object* JvAllocObject(java::lang::Class*, jsize)': /usr/src/gcc/libjava/gcj/cni.h:31: error: declaration of C function `java::lang::Object* JvAllocObject(java::lang::Class*, jsize)' conflicts with /usr/src/gcc/libjava/gcj/cni.h:25: error: previous declaration `java::lang::Object* JvAllocObject(java::lang::Class*)' here /usr/src/gcc/libjava/gcj/cni.h: In function `java::lang::String* JvNewStringLatin1(const char*)': /usr/src/gcc/libjava/gcj/cni.h:64: error: declaration of C function `java::lang::String* JvNewStringLatin1(const char*)' conflicts with /usr/src/gcc/libjava/gcj/cni.h:58: error: previous declaration `java::lang::String* JvNewStringLatin1(const char*, jsize)' here /usr/src/gcc/libjava/prims.cc: In function `void unblock_signal(int)': /usr/src/gcc/libjava/prims.cc:136: warning: right-hand operand of comma has no effect /usr/src/gcc/libjava/prims.cc: At global scope: /usr/src/gcc/libjava/prims.cc:132: warning: 'void unblock_signal(int)' defined but not used gmake[1]: *** [prims.lo] Error 1 gmake[1]: Leaving directory `/usr/obj/gcc/libjava' gmake: *** [all-recursive] Error 1 *** Error code 2 Stop in /usr/src/gcc/libjava (line 99 of /usr/share/mk/bsd.cfwrap.mk). *** Error code 1 Stop in /usr/src/gcc. *** Error code 1 Stop in /usr/src/gcc (line 23 of /usr/src/gcc/Makefile). What's more weird is: if I take the line which starts with "c++" (the fourth line above) and just add a -E, then take the .i file and give it to c++ with the same parametres, it gives me the same errors - if I do a removal of all '^# [1-9].*$' lines on the .i file, it compiles the file without errors. Does anyone have an idea where to look? Thanks, //mirabile -- > Hi, does anyone sell openbsd stickers by themselves and not packaged > with other products? No, the only way I've seen them sold is for $40 with a free OpenBSD CD. -- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc