From nobody@FreeBSD.org  Fri Jan 11 10:08:41 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 88E7C37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Jan 2002 10:08:41 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0BI8f518411;
	Fri, 11 Jan 2002 10:08:41 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201111808.g0BI8f518411@freefall.freebsd.org>
Date: Fri, 11 Jan 2002 10:08:41 -0800 (PST)
From: "George W. Dinolt" <gdinolt@pacbell.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port wxgtk-devel depends on libiconv, -liconv not included in wxgtk-config
X-Send-Pr-Version: www-1.0

>Number:         33786
>Category:       ports
>Synopsis:       port wxgtk-devel depends on libiconv, -liconv not included in wxgtk-config
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 11 10:10:00 PST 2002
>Closed-Date:    Thu Jan 31 05:02:07 PST 2002
>Last-Modified:  Thu Jan 31 05:02:31 PST 2002
>Originator:     George W. Dinolt
>Release:        4.5-PRERELEASE #2
>Organization:
>Environment:
FreeBSD dinolt1.bingdrive.org 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #2: 
Sat Jan  5 09:01:47 PST 2002     
root@dinolt1.bingdrive.org:/tmp/usr-4/usr/src/sys/DINOLT1  i386      
>Description:
libwx_gtk built from the x11-toolkits/wxgtk-devel port
references iconv, iconv_open and iconv_close. One can 
resolve these symbols using -liconv from the libiconv port. Currently
wxgtk-devel does not seem to depend on libiconv (from converters) nor does
wxgtk-config include -liconv, which would help build programs
know of the dependency.
>How-To-Repeat:
Build the the port x11-toolkits/wxgtk-devel (do not clean), cd to 
/usr/ports/x11-toolkits/wxgtk-devel/work/wxGTK-2.3.1/samples/dialogs (or wherever)
try gmake in that directory. The undefined references are given.
This works on a 4.5-PRERELEASE system. I don't know what happens on a
-CURRENT system. 
>Fix:
The "easy" fix is to add converters/libiconv to the BUILD_DEPENDS in the 
wxgtk-devel Makefile (to make the dependency explicit in the build 
process) and to add -liconv to the EXTRA_LIBS in configure.  There is 
probably a much better way to fix the configure script which would
make it depend on whether iconv is found automagically or not. 

One could update the patch-configure file by adding the following lines
in the appropriate place to ensure that -liconv is added.

 @@ -15783,7 +15763,7 @@
 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
 OPENGL_LIBS="$OPENGL_LINK"
 
-EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
+EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -liconv -lm"
 if test "$USE_MAC" = 1 ; then
     EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
 fi


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->sobomax 
Responsible-Changed-By: pat 
Responsible-Changed-When: Wed Jan 16 21:52:27 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33786 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Thu Jan 31 05:02:07 PST 2002 
State-Changed-Why:  
Resolved in version 2.3.2 of wxgtk-devel port. Thank you for reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33786 
>Unformatted:
