Date: Wed, 12 Nov 2003 14:28:56 +0200 From: Alexey Zelkin <phantom@freebsd.org> To: Jason Harmening <gte990t@mail.gatech.edu> Cc: freebsd-java@freebsd.org Subject: Re: jdk 1.4.2p5 build error Message-ID: <20031112142856.A66655@phantom.cris.net> In-Reply-To: <1068637560.3fb21d7843785@webmail.mail.gatech.edu>; from gte990t@mail.gatech.edu on Wed, Nov 12, 2003 at 06:46:00AM -0500 References: <1068637560.3fb21d7843785@webmail.mail.gatech.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
hi, I have added patch to fix this build problem to jdk14 port. Please recvsup. PS: Sorry guys, it was last minute change and I did tested it on -STABLE only On Wed, Nov 12, 2003 at 06:46:00AM -0500, Jason Harmening wrote: > Hi all, > > I ran into the following linker error when trying to build java/jdk14 on my > 5.1-RELEASE system: > > >>>Recursively making unpack all @ Wed Nov 12 06:15:18 EST 2003 ... > gmake[3]: Entering directory `/usr/ports/java/jdk14/work/j2se/make/tools/ > pack-unpack/unpack' > /usr/bin/gcc -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -o /usr/ports/java/jdk14/ > work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/unpack /usr/ports/java/ > jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/bytes.o /usr/ > ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > bands.o /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/ > sun.tools.unpack/obj/coding.o /usr/ports/java/jdk14/work/control/build/ > bsd-i586/tmp/sun.tools.unpack/obj/unpack.o /usr/ports/java/jdk14/work/ > control/build/bsd-i586/tmp/sun.tools.unpack/obj/utils.o /usr/ports/java/ > jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/zip.o > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > utils.o: In function `redirect_stdio(char*)': > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > utils.o(.text+0x30a): warning: tempnam() possibly used unsafely; consider > using mkstemp() > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > bytes.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > bands.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > coding.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > unpack.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > utils.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' > /usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/ > zip.o(.eh_frame+0x11): more undefined references to `__gxx_personality_v0' > follow > gmake[3]: *** [/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/ > sun.tools.unpack/obj/unpack] Error 1 > gmake[3]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/tools/ > pack-unpack/unpack' > gmake[2]: *** [all] Error 1 > gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/tools/ > pack-unpack' > gmake[1]: *** [all] Error 1 > gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make' > gmake: *** [j2se-build] Error 2 > *** Error code 2 > > As far as I can tell, the error stems from this part of /usr/ports/java/jdk14/ > work/j2se/make/common/Defs-bsd.gmk: > > ifeq ($(STATIC_CXX),true) > # g++ always dynamically links libstdc++, even we use "-Wl,-Bstatic -lstdc++" > # We need to use gcc to statically link the C++ runtime. gcc and g++ use > # the same subprocess to compile C++ files, so it is OK to build using gcc. > CXX = $(COMPILER_PATH)gcc > else > CXX = $(COMPILER_PATH)g++ > endif > > In other words, it seems like gcc (at least version 3.2.2) DOES have a problem > linking with libstdc++. Any way to fix on 5.1-RELEASE? > > Thanks, > Jason Harmening > > _______________________________________________ > 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?20031112142856.A66655>