From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 15:12:21 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C48361065678; Fri, 4 Jun 2010 15:12:21 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7F5338FC19; Fri, 4 Jun 2010 15:12:21 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.4/8.14.4/NETPLEX) with ESMTP id o54EudUL000431; Fri, 4 Jun 2010 10:56:39 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.2.2 (mail.netplex.net [204.213.176.10]); Fri, 04 Jun 2010 10:56:40 -0400 (EDT) Date: Fri, 4 Jun 2010 10:56:39 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Gabor Kovesdan In-Reply-To: <4C08DC5A.4020409@FreeBSD.org> Message-ID: References: <4C08DC5A.4020409@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Edwin Groothuis , FreeBSD Hackers , d@delphij.net Subject: Re: libc symbol versioning difficulties with iconv integration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2010 15:12:21 -0000 On Fri, 4 Jun 2010, Gabor Kovesdan wrote: > Hello folks, > > I'm trying to integrate the result of my last SoC work to the base system but > I'm facing some difficulties with libc symbol versioning. I placed the iconv > code into an iconv subdirectory inside src/lib/libc and I added a Makefile > and a symbol map, just like another parts of libc do but when I try to > compile this stuff, I get this error in the linking phase: > > building shared library libc.so.7 > /usr/bin/ld: libc.so.7: undefined versioned symbol namefts_open@FBSD_1.0 > /usr/bin/ld: failed to set dynamic section sizes: Bad value > *** Error code 1 > > I have no idea what's going wrong because I did everything exactly in the > same way as another components do. I don't know why does it break at > fts_open(), which is unrelated to iconv, not even used in the iconv code. If > I just unhook the iconv part fromt he build, everything goes fine. Any ideas? > > Patch is here: http://kovesdan.org/patches/iconv-libc.diff I don't really see anything wrong with your Makefile or Symbol.map. Do you have any other local changes that could be causing problems? -- DE