From nobody@FreeBSD.org  Sun Nov 24 02:43:39 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 64DDCC5
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Nov 2013 02:43:39 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 54E392860
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Nov 2013 02:43:39 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAO2hdDS032521
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Nov 2013 02:43:39 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAO2hcGD032481;
	Sun, 24 Nov 2013 02:43:38 GMT
	(envelope-from nobody)
Message-Id: <201311240243.rAO2hcGD032481@oldred.freebsd.org>
Date: Sun, 24 Nov 2013 02:43:38 GMT
From: Kevin Zheng <kevinz5000@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Undefined symbol "libiconv_open" on startup for java/netbeans
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184204
>Category:       ports
>Synopsis:       Undefined symbol "libiconv_open" on startup for java/netbeans
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 24 02:50:00 UTC 2013
>Closed-Date:    Wed Mar 05 22:01:03 CET 2014
>Last-Modified:  Wed Mar  5 21:10:00 UTC 2014
>Originator:     Kevin Zheng
>Release:        9.2-RELEASE
>Organization:
>Environment:
FreeBSD sigma.local 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
On startup, java/netbeans dies with the following message:

[kevinz@sigma ~]$ netbeans-7.4 
/usr/local/openjdk7/jre/lib/i386/libsplashscreen.so: Undefined symbol "libiconv_open"

So far I've been unable to reproduce similar splash screen bugs with other Java programs, which convinced me to file it under java/netbeans.

It seems that other people have had this problem as well:
http://lists.freebsd.org/pipermail/freebsd-ports/2013-November/087492.html

>How-To-Repeat:
Install Netbeans and try to start it.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gahr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Nov 24 02:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184204 
Responsible-Changed-From-To: gahr->java 
Responsible-Changed-By: gahr 
Responsible-Changed-When: Mon Nov 25 11:13:43 UTC 2013 
Responsible-Changed-Why:  
It looks like an OpenJDK 7 port problem to me; java@, do you ack? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184204 

From: Kevin Zheng <kevinz5000@gmail.com>
To: bug-followup@FreeBSD.org, kevinz5000@gmail.com
Cc:  
Subject: Re: ports/184204: Undefined symbol &quot;libiconv_open&quot; on startup
 for java/netbeans
Date: Fri, 29 Nov 2013 09:23:21 -0600

 Hi again,
 
 Until the problem is resolved, there is a fairly simple workaround.
 Simply disable the splash screen by invoking Netbeans from the command
 line with "--nosplash".
 
 To make this change system-wide, edit
 "/usr/local/netbeans-7.4/etc/netbeans.conf" and add "--nosplash" to
 netbeans_default_options.
 
 Thanks,
 Kevin Zheng
Responsible-Changed-From-To: java->freebsd-java 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Dec 11 17:08:04 UTC 2013 
Responsible-Changed-Why:  
Canonicalize assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184204 

From: Kevin Zheng <kevinz5000@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184204: Undefined symbol &quot;libiconv_open&quot; on startup
 for java/netbeans
Date: Tue, 24 Dec 2013 23:13:02 -0600

 Hi FreeBSD Java Team,
 
 I could not reliably reproduce this bug on similar systems (same
 architecture, OS, packages, JDK). This issue seemed to be isolated to
 one machine, and persisted even after package updates.
 
 Since the machine in question was reinstalled (due to other reasons), I
 can no longer reproduce the problem. The ports (both Java and Netbeans)
 seem to be fine. *Go ahead and close this bug report.*
 
 A big thanks goes out to the people who make FreeBSD an excellent system
 for the Java platform.
 
 Thanks,
 Kevin Zheng

From: Peter Looyenga <pl@catslair.org>
To: bug-followup@FreeBSD.org, kevinz5000@gmail.com
Cc:  
Subject: Re: ports/184204: Undefined symbol &quot;libiconv_open&quot; on startup
 for java/netbeans
Date: Wed, 26 Feb 2014 06:29:06 +0100

 Hi Gang!,
 
 I just finished up on an installation of FreeBSD 10 (i386) within a 
 VirtualBox environment and guess what? I can reproduce the problem.
 
 However, apart from disabling the splash screen I discovered something 
 else which might shed some new light on this issue. I started doing some 
 tests and traces and eventually discovered that this problem evolves 
 around ~/.cache/netbeans/7.4.
 
 This is the so called cache directory (see netbeans_default_cachedir in 
 /usr/local/netbeans-7.4/etc/netbeans.conf) which only contains ('large') 
 files which are always safe to delete.
 
 If you delete this directory after you've finished a NetBeans session 
 then you won't experience this iconv problem. If you do experience the 
 "iconv problem" then simply remove the cache dir (rm -rf 
 ~/.cache/netbeans/7.4) and the problems are over once more.
 
 You can run into some weird behaviour though; like starting NetBeans, 
 getting notifications that you have "21 updates" and when you go to the 
 plugin screen it quickly says that there are no updates available. Only 
 after you did a new search will you see these again.
 
 Even so; bottom line is that I'm convinced that this problem is fully 
 related to the usage of cache.
 
 Hope this can help or shed some more information on all this.
 
 Kind regards, Peter

From: Tijl Coosemans <tijl@FreeBSD.org>
To: bug-followup@FreeBSD.org, kevinz5000@gmail.com,
        Peter Looyenga
 <pl@catslair.org>
Cc:  
Subject: Re: ports/184204: Undefined symbol "libiconv_open" on startup for
 java/netbeans
Date: Tue, 4 Mar 2014 09:58:48 +0100

 Hi,
 
 Please try the patch at http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/186956
State-Changed-From-To: open->closed 
State-Changed-By: tijl 
State-Changed-When: Wed Mar 5 22:00:30 CET 2014 
State-Changed-Why:  
Fixed in r347142. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184204 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184204: commit references a PR
Date: Wed,  5 Mar 2014 20:59:58 +0000 (UTC)

 Author: tijl
 Date: Wed Mar  5 20:59:50 2014
 New Revision: 347142
 URL: http://svnweb.freebsd.org/changeset/ports/347142
 QAT: https://qat.redports.org/buildarchive/r347142/
 
 Log:
   - Include bsd.port.pre.mk before testing if ICONV_LIB is empty.  It is
     always empty without this. [1]
   - Add -DLIBICONV_PLUG to CFLAGS to enforce the use of libc iconv even when
     libiconv is installed. [2]
   
   PR:		ports/184204 [1], ports/184782 [1], ports/186956 [2]
   Approved by:	glewis (maintainer)
 
 Modified:
   head/java/openjdk7/Makefile
 
 Modified: head/java/openjdk7/Makefile
 ==============================================================================
 --- head/java/openjdk7/Makefile	Wed Mar  5 20:31:02 2014	(r347141)
 +++ head/java/openjdk7/Makefile	Wed Mar  5 20:59:50 2014	(r347142)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	openjdk
  PORTVERSION=	${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER}
 -PORTREVISION=	1
 +PORTREVISION=	2
  PORTEPOCH=	1
  CATEGORIES=	java devel
  MASTER_SITES=	http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \
 @@ -138,6 +138,12 @@ PATCH_DEPENDS+=	gpatch:${PORTSDIR}/devel
  PATCH=		gpatch
  .endif
  
 +.include <bsd.port.pre.mk>
 +
 +.if empty(ICONV_LIB)
 +MAKE_ENV+=	EXTRA_CFLAGS=-DLIBICONV_PLUG
 +.endif
 +
  post-patch:
  	@${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" \
  		${WRKSRC}/hotspot/src/os/bsd/vm/os_bsd.cpp
 @@ -180,4 +186,4 @@ post-install:
  	# Register the VM
  	"${LOCALBASE}/bin/registervm" "${INSTALLDIR}/bin/java # OpenJDK${JDK_MAJOR_VERSION}"
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
