Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2013 15:45:50 -0600
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        freebsd-java@freebsd.org
Subject:   jre config problem, libiconv not in loaded libs when eclipse spawns a job
Message-ID:  <5243598E.8010307@dreamchaser.org>

index | next in thread | raw e-mail

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


help

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