From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 10:57:59 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 307941065670 for ; Fri, 4 Jun 2010 10:57:59 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id DFA0C8FC13 for ; Fri, 4 Jun 2010 10:57:58 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 8658114DB824; Fri, 4 Jun 2010 12:57:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O+I2PhaLHs6H; Fri, 4 Jun 2010 12:57:54 +0200 (CEST) Received: from [192.168.1.105] (catv-80-99-92-167.catv.broadband.hu [80.99.92.167]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 5B75314DB7A7; Fri, 4 Jun 2010 12:57:54 +0200 (CEST) Message-ID: <4C08DC5A.4020409@FreeBSD.org> Date: Fri, 04 Jun 2010 12:58:34 +0200 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Edwin Groothuis , d@delphij.net Subject: libc symbol versioning difficulties with iconv integration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 10:57:59 -0000 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 Thanks, -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org