From owner-freebsd-java Mon Dec 2 14:52:50 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 157A537B408 for ; Mon, 2 Dec 2002 14:52:47 -0800 (PST) Received: from fs.quynh-and-brian.org (dsl-64-131-121-185.telocity.com [64.131.121.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54AAC43EBE for ; Mon, 2 Dec 2002 14:52:42 -0800 (PST) (envelope-from brian@quynh-and-brian.org) Received: (qmail 68916 invoked from network); 2 Dec 2002 22:52:40 -0000 Received: from host1.quynh-and-brian.org (HELO brians.aymanllc.com) ([10.1.1.1]) (envelope-sender ) by host1.quynh-and-brian.org (qmail-ldap-1.03) with SMTP for ; 2 Dec 2002 22:52:40 -0000 Content-Type: text/plain; charset="us-ascii" From: Brian Skrab To: freebsd-java@FreeBSD.ORG Subject: Building jdk-1.3.1p7_x Fails when WITH_NATIVE_THREADS=yes Date: Mon, 2 Dec 2002 17:52:10 -0500 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212021752.10385.brian@quynh-and-brian.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, Is there a particular reason that the jdk-1.3.1p7_x port fails to build w= hen=20 attempting to build it with native threads? The only difference that I c= an=20 see between the working native build of jdk-1.3.1p7 and the latest port=20 revision (jdk-1.3.1p7_2) is the pre-requisite of the nspr port. Perhaps = a=20 different threading model in nspr is the root of this problem? Is this p= ort=20 known to be in a state in which a native threads version cannot be built?= =20 Or, am I just completely missing something? Any suggestions/pointers will be much appreciated. Thanks for your time. ~brian brian@quynh-and-brian.org Here's my make command: make WITH_NATIVE_THREADS=3Dyes WITHOUT_PLUGIN=3Dyes And here is the build output: =2E =2E =2E /usr/bin/gcc -O -pipe -W -Wall -Wno-unused -Wno-parentheses -pthread=20 -I/usr/src/lib/libc_r/uthread -I/usr/src/lib/libc/include -Di386=20 -DARCH=3D'"i386"' -DSOLARIS2 -DRELEASE=3D'"1.3.1-p7"'=20 -DFULL_VERSION=3D'"1.3.1-p7-bgs-021202-17:35"' -D_LARGEFILE64_SOURCE=20 -D_GNU_SOURCE -D_REENTRANT -DLOGGING -D_LITTLE_ENDIAN -I.=20 -I../../../../build/bsd-i386/tmp/java/hpi/native_threads/CClassHeaders=20 -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/ex= port=20 -I../../../../src/solaris/hpi/native_threads/include=20 -I../../../../src/solaris/hpi/include -I../../../../src/solaris/hpi/expor= t=20 -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export=20 -D_REENTRANT -DNATIVE -DUSE_PTHREADS -DMOOT_PRIORITIES -DNO_INTERRUPTIBLE= _IO =20 -c -o=20 =2E./../../../build/bsd-i386/tmp/java/hpi/native_threads/obj/threads_bsd.= o=20 =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: warni= ng:=20 `enum pthread_susp' declared inside parameter list =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: warni= ng: its=20 scope is only this definition or declaration, which is probably not what = you=20 want. =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:288: param= eter=20 `suspendState' has incomplete type =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In functi= on=20 `getSuspendStateString': =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:293: warni= ng:=20 control reaches end of non-void function =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c: At top le= vel: =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: warni= ng:=20 initializer-string for array of chars is too long =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: warni= ng:=20 (near initialization for `SignalList[21]') =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: warni= ng:=20 excess elements in array initializer =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: warni= ng:=20 (near initialization for `SignalList') =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In functi= on=20 `record_gc_registers_of': =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:530: struc= ture=20 has no member named `ctxtype' =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532:=20 `CTX_JB_NOSIG' undeclared (first use in this function) =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: (Each= =20 undeclared identifier is reported only once =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: for e= ach=20 function it appears in.) =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:533: `CTX_= JB'=20 undeclared (first use in this function) =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:534: `CTX_= SJB'=20 undeclared (first use in this function) =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:540: `CTX_= UC'=20 undeclared (first use in this function) =2E./../../../src/solaris/hpi/native_threads/src/threads_bsd.c:535: warni= ng:=20 unreachable code at beginning of switch statement gmake[4]: ***=20 [../../../../build/bsd-i386/tmp/java/hpi/native_threads/obj/threads_bsd.o= ]=20 Error 1 gmake[4]: Leaving directory=20 `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory=20 `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory=20 `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/j= ava' gmake: *** [all] Error 1 *** Error code 2 Stop in /usr/ports/java/jdk13. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message