From owner-freebsd-java@FreeBSD.ORG Wed Sep 25 21:46:20 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5B264A87 for ; Wed, 25 Sep 2013 21:46:20 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D247326F7 for ; Wed, 25 Sep 2013 21:46:16 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id r8PLjnep026091 for ; Wed, 25 Sep 2013 15:45:51 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <5243598E.8010307@dreamchaser.org> Date: Wed, 25 Sep 2013 15:45:50 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: jre config problem, libiconv not in loaded libs when eclipse spawns a job Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Wed, 25 Sep 2013 15:45:51 -0600 (MDT) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 21:46:20 -0000 Backing up a bit and making sure my existing eclipse (from /usr/ports/java/eclipse) works, if I create a new project and build it, it builds ok, but when trying to run I get: /usr/local/openjdk7/jre/lib/amd64/libnpt.so: Undefined symbol "libiconv_open" accompanied by Exception in thread "Listening Connector" java.lang.NullPointerException at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:92) at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56) at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135) at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107) at java.lang.Thread.run(Thread.java:679) I get the same error whether using openjdk6 or openjdk7 $ ls -l /usr/local/lib/libiconv* -rw-r--r-- 1 root wheel 1116648 Sep 1 22:32 /usr/local/lib/libiconv.a -r--r--r-- 1 root wheel 916 Sep 1 22:32 /usr/local/lib/libiconv.la lrwxr-xr-x 1 root wheel 13 Sep 1 22:32 /usr/local/lib/libiconv.so -> libiconv.so.3 -r--r--r-- 1 root wheel 1084538 Sep 1 22:32 /usr/local/lib/libiconv.so.3 $ nm ./libnpt.so | grep libiconv_open U libiconv_open yet $ ldd /usr/local/openjdk7/jre/lib/amd64/libnpt.so /usr/local/openjdk7/jre/lib/amd64/libnpt.so: libc.so.7 => /lib/libc.so.7 (0x80081a000) $ nm ./libnpt.so | grep libiconv_open U libiconv_open Is there something wrong with the install for openjdk* that libiconv.so is not in the set of libraries linked? What's the "proper" way to fix this? IRRC, the last time I was using eclipse heavily I was using the diablo jvm and not openjdk*, and didn't have this problem. Gary