Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2013 12:03:36 +0200
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        Boris Samorodov <bsam@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, Peter Wemm <peter@wemm.org>, ports-committers@freebsd.org
Subject:   Re: svn commit: r325668 - head/x11-toolkits/open-motif
Message-ID:  <52206DF8.1000401@FreeBSD.org>
In-Reply-To: <201308300952.r7U9qKsF026518@svn.freebsd.org>
References:  <201308300952.r7U9qKsF026518@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/30/13 11:52, Boris Samorodov wrote:
> Author: bsam
> Date: Fri Aug 30 09:52:20 2013
> New Revision: 325668
> URL: http://svnweb.freebsd.org/changeset/ports/325668
>
> Log:
>    Fix build at 10.x after recent changes at /usr/bin/ld. Error log:
>    ----
>    ./../lib/Xm/.libs/libXm.so: undefined reference to `libiconv'
>    ./../lib/Xm/.libs/libXm.so: undefined reference to `libiconv_close'
>    ./../lib/Xm/.libs/libXm.so: undefined reference to `libiconv_open'
>    -----
>
>    PR:		ports/181579
>    Submitted by:	bsam (me)
>    Approved by:	Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer)
>
> Modified:
>    head/x11-toolkits/open-motif/Makefile
>
> Modified: head/x11-toolkits/open-motif/Makefile
> ==============================================================================
> --- head/x11-toolkits/open-motif/Makefile	Fri Aug 30 08:19:28 2013	(r325667)
> +++ head/x11-toolkits/open-motif/Makefile	Fri Aug 30 09:52:20 2013	(r325668)
> @@ -30,6 +30,7 @@ GNU_CONFIGURE=	yes
>   USE_LDCONFIG=	yes
>   MAKE_ENV=	LANG=C
>   CPPFLAGS+=	-DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI -I${PREFIX}/include
> +LDFLAGS+=	-L${PREFIX}/lib -liconv
>   USE_CSTD=	gnu89
>
>   DEMOS_SRC=	${WRKSRC}/demos/programs
>

Hi,

I'm having a lot of failures too related to libiconv symbols. These seem 
related by enabling iconv in libc on latest current.

I'm not sure that forcing them to link against gnu libiconv is a good 
long term solution. I think that making them work with just the libc 
iconv implementation is a better solution, even if a little harder. It 
would allow us to not depend anymore on the libiconv port too.

I'm experimenting with making Uses/iconv.mk a noop for current where 
libc includes iconv functions and making other ports compile using 
system provided iconv. It looks doable, most ports need just trivial fixes.

I was planning to ask an exp-run for this as soon as I am happy with my 
findings.

If anyone is interested or has better insight regarding  this please 
contact me.

(Also CCing peter, who made the commit to head, and could be interested)

-- 
Guido Falsi <madpilot@FreeBSD.org>



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