Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2008 00:23:05 +0000
From:      Philip Plant <freebsd-java@greenfinch.com>
To:        David DURIEUX <d.durieux@siprossii.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Eoror on compile jdk16 on FreeBSD 7.0 amd64
Message-ID:  <20080613002305.GA52922@skylark.greenfinch.com>
In-Reply-To: <20080612152426.4d551dac@portable>
References:  <20080612145134.5d09082e@portable> <52835.83.64.253.201.1213276515.squirrel@webmail.itac.at> <20080612152426.4d551dac@portable>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi David,

It's good to see someone with the exact same problem that I have!  I 
posted about it to freebsd-java recently but didn't have any luck 
getting it sorted.  I was wondering if it was some peculiar quirk of my 
machine but I'm running a pretty standard 7.0 STABLE install.

Lately I have been wondering if Java really doesn't work on FreeBSD 7.0 
;) but Robert Noland recently posted a comment in response to another 
post, that seemed to help this problem:

> java/jdk15 will compile correctly on -CURRENT if you add the following
> to /etc/libmap.conf.
> 
> libpthread.so.1 libthr.so.1
> libpthread.so.2 libthr.so.2
> libkse.so.3     libthr.so.3
> 
> diablo-jdk needs this to function on -CURRENT and so compile a native
> jdk15.  I'm not sure if you can build java/jdk16 with diablo, but I
> expect you can with a native jdk15...

I don't really understand all the implications of doing this I'm afraid, 
but it did change the error I was getting from:

$ java
/libexec/ld-elf.so.1: /usr/local/lib/compat/libpthread.so.2: Undefined
symbol "__malloc_lock"

to:

$ java
/libexec/ld-elf.so.1: /usr/local/diablo-jdk1.5.0/bin/java: Undefined
symbol "execve"

That kind of feels like an improvement (or maybe I'm being too hopeful), 
but I'd be really grateful if anyone could explain what I need to do 
next to get Java running - as a long-time advocate of FreeBSD it's a bit 
disappointing to find something like installing Java on 7.0 to be quite 
so painful.  I'd also love to know what the underlying problem is, and 
would appreciate anyone who could take a moment to assist.

Many thanks,

Philip.



On Thu, Jun 12, 2008 at 03:24:26PM +0000, David DURIEUX wrote:
> >> Hello, I have problem when I want to compile java/jdk16
> >>
> >> This is the last lines of my compilation
> >>
> >>
> >> WARNING: The directory HOTSPOT_DOCS_IMPORT_PATH=/NO_DOCS_DIR \n
> >> does not exist, check your value of ALT_HOTSPOT_DOCS_IMPORT_PATH. \n
> >> WARNING: The bsd compiler must be version  3.3 \n       Specifically
> >> the GCC  compiler. \n        You appear to be using compiler version:
> >> 4.2 \n       The compiler was obtained from the following location:
> >> \n           /usr/bin/ \n       Please change your compiler. \n
> >> WARNING: Importing CUPS from a system location \n Sanity check
> >> passed. mkdir
> >> -p /usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir
> >> mkdir
> >> -p /usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/import
> >> cd  ../../hotspot/make ; \ gmake ALT_SLASH_JAVA=/java
> >> ARCH_DATA_MODEL=64
> >> ALT_OUTPUTDIR=/usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir
> >> ALT_EXPORT_PATH=/usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/import
> >> PREVIOUS_JDK_VERSION=1.5.0 ALT_BOOTDIR=/usr/local/diablo-jdk1.5.0
> >> FULL_VERSION="1.6.0_03-p4-ddurieux_12_jun_2008_01_18-b00"
> >> JDK_VERSION=1.6.0_03 COOKED_JDK_UPDATE_VERSION=30
> >> COOKED_BUILD_NUMBER=0 JDK_MKTG_VERSION=6u3 JDK_MAJOR_VERSION=1
> >> JDK_MINOR_VERSION=6 JDK_MICRO_VERSION=0 all_product gmake[1]:
> >> Entering directory `/usr/ports/java/jdk16/work/hotspot/make' gmake
> >> VM_TARGET=product generic_build2 gmake[2]: Entering directory
> >> `/usr/ports/java/jdk16/work/hotspot/make' mkdir
> >> -p /usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir
> >> cd /usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir;
> >> \ gmake -f /usr/ports/java/jdk16/work/hotspot/build/bsd/Makefile \
> >> LP64=1
> >> HOTSPOT_BUILD_VERSION=1.6.0_03-p4-ddurieux_12_jun_2008_01_18-b00
> >> JAVA_HOME=/usr/local/diablo-jdk1.5.0
> >> GAMMADIR=/usr/ports/java/jdk16/work/hotspot MAKE_VERBOSE=y product
> >> gmake[3]: Entering directory
> >> `/usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir'
> >> gmake -f /usr/ports/java/jdk16/work/hotspot/build/bsd/Makefile
> >> checks gmake[4]: Entering directory
> >> `/usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir' /usr/local/diablo-jdk1.5.0/bin/javap
> >> javax.xml.transform.TransformerFactory > /dev/null 2>&1; \ if [ $?
> >> -ne 0 ]; then \ /usr/local/diablo-jdk1.5.0/bin/java -version; \ echo
> >> "*** An XSLT processor (J2SE 1.4.x or newer) is required" \ "to
> >> bootstrap this build" 1>&2; \ exit 1; \
> >> fi /libexec/ld-elf.so.1: /usr/local/lib/compat/libpthread.so.2:
> >> Undefined symbol "__malloc_lock" *** An XSLT processor (J2SE 1.4.x or
> >> newer) is required to bootstrap this build gmake[4]: ***
> >> [check_j2se_version] Error 1 gmake[4]: Leaving directory
> >> `/usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir'
> >> gmake[3]: *** [bsd_amd64_compiler2/debug] Error 2 gmake[3]: Leaving
> >> directory
> >> `/usr/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir'
> >> gmake[2]: *** [generic_build2] Error 2 gmake[2]: Leaving directory
> >> `/usr/ports/java/jdk16/work/hotspot/make' gmake[1]: *** [product]
> >> Error 2 gmake[1]: Leaving directory
> >> `/usr/ports/java/jdk16/work/hotspot/make' gmake: *** [hotspot-build]
> >> Error 2 *** Error code 2
> >>
> >> Stop in /usr/ports/java/jdk16.
> >> *** Error code 1
> >>
> >> Stop in /usr/ports/java/jdk16.
> >>
> >>
> >>
> >>
> >>
> >> I have the compat6x installed
> >> I think the problem is in '/usr/local/lib/compat/libpthread.so.2:
> >> Undefined symbol "__malloc_lock"'
> >>
> >> Can you hel me, I search since 2 week :/
> >>
> >> Thanks
> >
> >You need an JDK 1.5 to successfully compile java/jdk16. The easiest
> >way to get one is to use "java/diablo-jdk15". If you already use an
> >JDK 1.5 to bootstrap jdk16 then you likely hit an real problem and you
> >can ignore everything i've said.
> >
> >Good Luck.
> >
> >Bernhard Fr?hlich
> >
> 
> I have install "java/diablo-jdk15", it have just an error ignored but
> it install :  
> 
> /libexec/ld-elf.so.1: /usr/local/lib/compat/libpthread.so.2: Undefined
> symbol "__malloc_lock" *** Error code 1 (ignored)
> 
> 
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080613002305.GA52922>