Date: Wed, 12 Nov 2003 06:46:00 -0500 From: Jason Harmening <gte990t@mail.gatech.edu> To: freebsd-java@freebsd.org Subject: jdk 1.4.2p5 build error Message-ID: <1068637560.3fb21d7843785@webmail.mail.gatech.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1068637560.3fb21d7843785>