From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 43D921F46C for ; Wed, 5 Feb 2020 14:49:15 +0000 (UTC) Received: from localhost ([::1]:48550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izLzO-0005Y6-Ay for normalperson@yhbt.net; Wed, 05 Feb 2020 09:49:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36077) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izLyQ-0004Qh-3O for bug-gnulib@gnu.org; Wed, 05 Feb 2020 09:48:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izLyO-0002ac-VA for bug-gnulib@gnu.org; Wed, 05 Feb 2020 09:48:13 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::2]:17798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izLyN-0002H8-F7 for bug-gnulib@gnu.org; Wed, 05 Feb 2020 09:48:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1580914085; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Tr1bGUWA7kL9w1cT+WVMAZqkxeulZZZXYpz/IBs4c58=; b=E4UoMCEUptYCnRqSjKQmQ4JixLiATT1qmupoq4Ojox61oF+Hf0+E/qC7diReZLx3ov wukYzhEdaZG9KAwEPfNi1J1xjS+R1DtVhnvGKMGZqwY/cfex/ox97TsA28taN0ho3+0p 5GQTIWKxgjS9rp2GYEeUjf+WcS2YQuxasqSlCJTQKhAhSKpTTpNT17MsGl1HJLSoPOtt JFLOSKTH0eSuZ73JQQ+cLL79P/LIIVtP5CqKEjWKxqJZPSovgvklqYlXmM61thd5/Jqq KjgmVHDS2tkSL+pTZ3AmNTyXbjgbwuuortlxsP992eFVu1kz1OR63uFn+CiUlEprju0L A9IQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id g00701w15Em4Tg8 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 5 Feb 2020 15:48:04 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org, noloader@gmail.com Subject: Re: GetText 1.20.1 and libgettextlib.so: undefined reference to `libiconv' (and friends) Date: Wed, 05 Feb 2020 15:48:03 +0100 Message-ID: <1604162.LAKOxzsfSg@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-171-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::2 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Jeffrey, > Attached is the full patch for this problem. It is pointless to patch Makefile.in files, since these are generated from Makefile.am files. > First, LTLIBICONV was empty in the makefiles. I had to manually: > > -LTLIBICONV = @LTLIBICONV@ > +LTLIBICONV = -liconv On NetBSD, which has iconv() in libc, it is normal that LIBICONV and LTLIBICONV are set to empty. However, if you are using GNU libiconv's , LIBICONV and LTLIBICONV need to contain "-L -liconv -Wl,-rpath,-". If not, you need to take a look in config.log, to determine why not. > Second, the recipes with the undefined references needed $(LTLIBICONV) > added to *_LDADD. So there were a lot of these: > > -test_localcharset_LDADD = $(LDADD) > +test_localcharset_LDADD = $(LTLIBICONV) $(LDADD) gnulib/modules/localcharset-tests does not reference $(LIBICONV), because the test code test-localcharset.c does not make use of iconv(). How come that you get a link error for test-localcharset? Bruno