Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 2004 15:02:25 -0400 (EDT)
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gnome@FreeBSD.org
Subject:   ports/68118: deve/glib20 needs to link against -liconv
Message-ID:  <200406191902.i5JJ2PiH025661@h00609772adf0.ne.client2.attbi.com>
Resent-Message-ID: <200406191910.i5JJAIPk015739@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68118
>Category:       ports
>Synopsis:       deve/glib20 needs to link against -liconv
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 19 19:10:17 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Craig Rodrigues
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Wed Jun 16 22:07:16 EDT 2004 rodrigc@dibbler.crodrigues.org:/usr/obj/usr/src/sys/MYKERNEL1 i386


	
>Description:

When trying to compile glib 2.4.2, I got this error:


configure:2642: cc -O -pipe  -I/usr/local/include -L/usr/local/lib -lintl conftest.c  >&5
/usr/bin/ld: warning: libiconv.so.3, needed by /usr/local/lib/libintl.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libintl.so: undefined reference to `libiconv_set_relocation_prefix'
/usr/local/lib/libintl.so: undefined reference to `libiconv_open'
/usr/local/lib/libintl.so: undefined reference to `libiconv_close'
/usr/local/lib/libintl.so: undefined reference to `libiconv'
configure:2645: $? = 1


>How-To-Repeat:
	
>Fix:

	


--- /usr/ports/devel/glib20/Makefile.orig	Sat Jun 19 14:37:17 2004
+++ /usr/ports/devel/glib20/Makefile	Sat Jun 19 14:42:33 2004
@@ -30,12 +30,15 @@
 USE_GNOME=	gnomehack gnometarget pkgconfig
 USE_GMAKE=	yes
 USE_PERL5=	yes
+USE_ICONV=	yes
+USE_GETTEXT=	yes
 CONFIGURE_ARGS=	--enable-static --with-libiconv=gnu \
 		--disable-gtk-doc --with-html-dir=${PREFIX}/share/doc \
 		--disable-man --without-xml-catalog
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib -lintl" \
+		LDFLAGS="-L${LOCALBASE}/lib -lintl -liconv" \
 		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}"
+
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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