From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roberto Nibali Subject: Re: git-core-0.99.9g: mailinfo.c:448: undefined reference to `libiconv_open' Date: Sat, 12 Nov 2005 11:30:51 +0100 Message-ID: <4375C45B.8000103@drugphish.ch> References: <4375C37E.6030509@drugphish.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-From: git-owner@vger.kernel.org Sat Nov 12 11:31:52 2005 Return-path: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Easey-0006Av-63 for gcvg-git@gmane.org; Sat, 12 Nov 2005 11:31:00 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932294AbVKLKaz (ORCPT ); Sat, 12 Nov 2005 05:30:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932295AbVKLKay (ORCPT ); Sat, 12 Nov 2005 05:30:54 -0500 Received: from drugphish.ch ([69.55.226.176]:61068 "EHLO www.drugphish.ch") by vger.kernel.org with ESMTP id S932294AbVKLKay (ORCPT ); Sat, 12 Nov 2005 05:30:54 -0500 Received: from [172.23.2.3] (unknown [83.173.211.133]) by www.drugphish.ch (Postfix) with ESMTP id 4C3D4406C005 for ; Sat, 12 Nov 2005 11:30:53 +0100 (CET) User-Agent: Thunderbird 1.4.1 (X11/20051006) To: git@vger.kernel.org In-Reply-To: <4375C37E.6030509@drugphish.ch> X-Enigmail-Version: 0.93.0.0 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: As always, once you send the damn thing, the solution is obvious: > gcc -o mailinfo.o -c -g -O2 -Wall -DSHA1_HEADER='' mailinfo.c > gcc -g -O2 -Wall -DSHA1_HEADER='' -o git-mailinfo > mailinfo.o libgit.a > mailinfo.o(.text+0x799): In function `convert_to_utf8': > /data/down/git-core-0.99.9g/mailinfo.c:448: undefined reference to > `libiconv_open' > mailinfo.o(.text+0x7f6):/data/down/git-core-0.99.9g/mailinfo.c:460: > undefined reference to `libiconv' > mailinfo.o(.text+0x801):/data/down/git-core-0.99.9g/mailinfo.c:461: > undefined reference to `libiconv_close' > collect2: ld returned 1 exit status > make: *** [git-mailinfo] Error 1 > > # nm /usr/local/lib/libiconv.so | grep -E "libiconv_open|libiconv_close" > 0000f550 T libiconv_close > 0000f580 T libiconv_open # nm mailinfo.o | grep -i iconv U libiconv U libiconv_close U libiconv_open The solution is simple: make CFLAGS="-liconv" Sorry for wasting your time, Roberto Nibali, ratz -- echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc