From owner-svn-ports-all@FreeBSD.ORG Fri Jan 10 16:25:37 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4859859F; Fri, 10 Jan 2014 16:25:37 +0000 (UTC) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D22CC1933; Fri, 10 Jan 2014 16:25:36 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id va2so3023684obc.19 for ; Fri, 10 Jan 2014 08:25:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=1OE2fm/33+Lat+eHyIJYUEFSACL9AmpMfsEuW5NqSWg=; b=BgWc7RdU9Vn4qDo+3mMQ+C1C1tT2bMUEmDZ8KfiDvk5EeOvT7tZ17xUf+l8r5hg13m b30ZsDmA6BisFaCOj67z2NyAwf/XdbFfrbiBMxkxg9z1MpNkLXLdk9g7czdIWAoq8YAa 8vQtLBv+ITkMrH1E2AH8F1gc+VrWhFs/PkidocaUYXkPxDtMK1AKwn4uAxP3uYI7ITsE hwidoG+gC1HpxEc0uEJk+cdn2Ta+sgFpdU/M60sEdsoIGL5uJXi5T6QLyWItHZZxpDu9 YG4dCcXPje9vIXACswloxmw7Udu7Xzd9gxijq/Neva45DjjkTj2zyMLfwS3U6hjPbTJK 57nw== MIME-Version: 1.0 X-Received: by 10.182.247.68 with SMTP id yc4mr3109246obc.67.1389371135955; Fri, 10 Jan 2014 08:25:35 -0800 (PST) Sender: pali.gabor@gmail.com Received: by 10.182.22.44 with HTTP; Fri, 10 Jan 2014 08:25:35 -0800 (PST) In-Reply-To: <20140110094639.57ca7c6d@kalimero.tijl.coosemans.org> References: <201401092129.s09LTeOt038573@svn.freebsd.org> <20140110094639.57ca7c6d@kalimero.tijl.coosemans.org> Date: Fri, 10 Jan 2014 17:25:35 +0100 X-Google-Sender-Auth: o4utW4bJtFkL55kSqVp7TIGlvkk Message-ID: Subject: Re: svn commit: r339285 - in head: archivers/hs-tar archivers/hs-zip-archive archivers/hs-zlib archivers/hs-zlib-bindings archivers/hs-zlib-conduit archivers/hs-zlib-enum audio/hs-ALUT audio/hs-OpenAL ... From: Gabor Pali To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 16:25:37 -0000 On Fri, Jan 10, 2014 at 9:46 AM, Tijl Coosemans wrote: > Out of curiosity, how does using __bsd_iconv_open instead of iconv_open > fix the problem? It is detailed in the referenced PR [1]: "I have chatted with kib about the nature of the change, and tried to teach the GHC libraries how to pick up the iconv_*() symbols. This works as it should for the dynamically linked files (.so) without any changes, but it will not work for the plain .o files that GHCi uses as GHC has its own run-time linker in the RTS. Therefore I had to hack this around to make sure that the GHC linker will find the right symbols, too. For what it is worth, Kostik suggested to do $ ld -r -o foo_with_iconv.o foo.o /usr/lib/libc_nonshared.a to avoid the problem, but I could not shoehorn this another round of symbol resolution into GHC's build system. Thus I simply felt it easier to just add them directly to the C file, as the result is basically the same." [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/184806