Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Feb 2002 12:15:55 -0500 (EST)
From:      Mikhail Kruk <meshko@cs.brandeis.edu>
To:        Tong Ka Man <kmtong@pacificnet.com>
Cc:        Stacy Millions <stacy@millions.ca>, <gsemones@treenleaf.com>, <freebsd-java@FreeBSD.ORG>
Subject:   Re: Need info for compiling JDK1.3.1 on FreeBSD with Native Threads
Message-ID:  <Pine.LNX.4.44.0202161215180.22171-100000@daedalus.cs.brandeis.edu>
In-Reply-To: <A90138DA-22F8-11D6-94E7-00306598AE72@pacificnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
You must have the FreeBSD sources installed. 
Here is the correct location of that file:
/usr/src/lib/libc_r/uthread/pthread_private.h

> Sorry, I just can't build with native threads option turned on.
> It seems that the src is missing one file "pthread_private.h"
> Any ideas?
> 
> Thanks.
> KM
> ---------------------
> 
> su-2.05# make -DWITH_NATIVE_THREADS
> ===>  Building for jdk-1.3.1p6
> i386 Build started:   1.3.1-p6-kmtong-020217-00:09
> WARNING: Your MAKEFLAGS environment variable is set.
>           You should be very careful about the values set here.
> 
>           MAKEFLAGS is set to =>HPIS=green\ native<=
> 
> Sanity check passed
>  >>>Recursively making java all @ Sun Feb 17 00:09:35 HKT 2002 ...
> gmake[1]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java'
>  >>>Recursively making hpi all @ Sun Feb 17 00:09:35 HKT 2002 ...
> gmake[2]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi'
>  >>>Recursively making green all @ Sun Feb 17 00:09:35 HKT 2002 ...
> gmake[3]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/green'
> gmake ../../../../build/bsd-i386/lib/i386/green_threads/libhpi.so 
> VARIANT=OPT
> gmake[4]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/green'
> gmake[4]: Leaving directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/green'
> gmake ../../../../build/bsd-i386/lib/i386/green_threads/libhpi_g.so 
> VARIANT=DBG
> gmake[4]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/green'
> gmake[4]: Leaving directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/green'
> gmake[3]: Leaving directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/green'
> <<<Finished Recursively making green all @ Sun Feb 17 00:09:35 HKT 2002.
>  >>>Recursively making native all @ Sun Feb 17 00:09:35 HKT 2002 ...
> gmake[3]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> gmake ../../../../build/bsd-i386/lib/i386/native_threads/libhpi.so 
> VARIANT=OPT
> gmake[4]: Entering directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> /usr/bin/gcc  -O -pipe  -W -Wall  -Wno-unused -Wno-parentheses -pthread 
> -I/usr/src/lib/libc_r/uthread -I/usr/src/lib/libc/include  -Di386 
> -DARCH='"i386"' -DSOLARIS2 -DRELEASE='"1.3.1-p6"' 
> -DFULL_VERSION='"1.3.1-p6-kmtong-020217-00:09"' -D_LARGEFILE64_SOURCE 
> -D_GNU_SOURCE -D_REENTRANT -DLOGGING -D_LITTLE_ENDIAN -I. 
> -I../../../../build/bsd-i386/tmp/java/hpi/native_threads/CClassHeaders 
> -I../../../../src/solaris/javavm/export 
> -I../../../../src/share/javavm/export 
> -I../../../../src/solaris/hpi/native_threads/include 
> -I../../../../src/solaris/hpi/include 
> -I../../../../src/solaris/hpi/export -I../../../../src/share/hpi/include 
> -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE -DUSE_PTHREADS 
> -DMOOT_PRIORITIES -DNO_INTERRUPTIBLE_IO    -c -o 
> ../../../../build/bsd-i386/tmp/java/hpi/native_threads/obj/threads_bsd.o 
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:34: 
> pthread_private.h: No such file or directory
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In 
> function `np_stackinfo':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:115: 
> `_thread_initial' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:115: (Each 
> undeclared identifier is reported only once
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:115: for 
> each function it appears in.)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:116: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:117: 
> `PTHREAD_STACK_DEFAULT' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In 
> function `record_thread_regs':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:210: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: At top 
> level:
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: 
> warning: `enum pthread_susp' declared inside parameter list
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: 
> warning: its scope is only this definition or declaration, which is 
> probably not what you want.
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:288: 
> parameter `suspendState' has incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In 
> function `getSuspendStateString':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:293: 
> warning: control reaches end of non-void function
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: At top 
> level:
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: 
> warning: initializer-string for array of chars is too long
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: 
> warning: (near initialization for `SignalList[21]')
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: 
> warning: excess elements in array initializer
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: 
> warning: (near initialization for `SignalList')
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:325: 
> warning: `enum pthread_state' declared inside parameter list
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:326: 
> parameter `threadState' has incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In 
> function `getThreadStateString':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:331: 
> warning: control reaches end of non-void function
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In 
> function `record_gc_registers_of':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:515: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:515: 
> `PTHREAD_FLAGS_PRIVATE' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:518: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:527: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:527: 
> `PS_SUSPENDED' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:530: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: 
> `CTX_JB_NOSIG' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:533: 
> `CTX_JB' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:534: 
> `CTX_SJB' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:540: 
> `CTX_UC' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:542: 
> dereferencing pointer to incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:535: 
> warning: unreachable code at beginning of switch statement
> gmake[4]: *** [../../../../build/bsd-
> i386/tmp/java/hpi/native_threads/obj/threads_bsd.o] Error 1
> gmake[4]: Leaving directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> gmake[3]: *** [optimized] Error 2
> gmake[3]: Leaving directory 
> `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory 
> `/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/java'
> gmake: *** [all] Error 1
> *** Error code 2
> 
> Stop in /usr/ports/java/jdk13.
> *** Error code 1
> 
> Stop in /usr/ports/java/jdk13.
> *** Error code 1
> 
> Stop in /usr/ports/java/jdk13.
> su-2.05#
> 
> On Saturday, February 16, 2002, at 01:02  AM, Stacy Millions wrote:
> 
> >
> > Guerry Semones wrote:
> >
> >> ***Find out pointers on getting a native threads build of JDK1.3.1
> >> on FreeBSD.***
> >
> > Did you read the PR that Greg Lewis posted a refrence to after
> > he sent it? http://www.freebsd.org/cgi/query-pr.cgi?pr=34923
> > Did you look at the Makefile?
> >
> > make -DWITH_NATIVE_THREADS
> >
> > This, from the notes of the PR:
> > 	native threads requires the FreeBSD source code
> > 	to be present on the system
> >
> > -stacy
> >
> > --
> > You'll see it's all a show. Keep 'em laughing as you go.
> > Just remember that the last laugh is on you.
> >         - Monty Python _The Life Of Brian_
> >
> > Stacy Millions                                       stacy@millions.ca
> > Millions Consulting Limited
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-java" in the body of the message
> >
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0202161215180.22171-100000>