From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61988: error compiling emacs Date: Tue, 07 Mar 2023 05:38:07 +0200 Message-ID: <83fsah6xk0.fsf@gnu.org> References: <874jqyspc7.fsf@yahoo.com> <6db27b89-699b-f956-4205-6cd8144f6dea@tiscali.it> <87v8jeqiau.fsf@yahoo.com> <83bkl684lp.fsf@gnu.org> <871qm2q9lh.fsf@yahoo.com> <83v8jd7uvi.fsf@gnu.org> <87wn3tpfg5.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: utomei@tiscali.it, 61988@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 07 04:39:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZOAb-0001Jp-DB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Mar 2023 04:39:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZOAK-00067p-Ve; Mon, 06 Mar 2023 22:39:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZOAI-00067H-AI for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 22:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZOAH-0004M3-W9 for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 22:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZOAH-00023j-Lx for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 22:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2023 03:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61988 X-GNU-PR-Package: emacs Original-Received: via spool by 61988-submit@debbugs.gnu.org id=B61988.16781603037866 (code B ref 61988); Tue, 07 Mar 2023 03:39:01 +0000 Original-Received: (at 61988) by debbugs.gnu.org; 7 Mar 2023 03:38:23 +0000 Original-Received: from localhost ([127.0.0.1]:44167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZO9f-00022o-Bn for submit@debbugs.gnu.org; Mon, 06 Mar 2023 22:38:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZO9d-00022a-LZ for 61988@debbugs.gnu.org; Mon, 06 Mar 2023 22:38:22 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZO9W-0004Kv-25; Mon, 06 Mar 2023 22:38:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l7si+H/p0imQh4dUcu7grgeUTxR29C9P74DnydYUCP4=; b=WykmdRNtvUSH 3+4WjA/sel79HJ2rWcR185OYnyE5STUlQVmgeu6UTvbL5YBqp+rqqMKCGUzd4Oy/ZUeg16uNbX+Q8 cpwPiIqMgc71ZfdD3HzhN/rwCXWK/LV1Dn3qhzr6652sI9SUPiGW0WAxOAPUW63xH+UIc2qkxVOl/ n/E7j/CH37OnOWbWZi3h8gQkteIXJ6sXwtAiYwiqaJROQfzMvfAzyGrg3xXVRgVZWuf1jz74zI74V CpRFdbGu3XOdah+5+vjwqMhaDF5YmiiO0De670s0jRdo5mJ8+UPs9V6sFYzwZdYgNt/88okYnDeBs WS6KTS7ypEgQa6doBIzdqw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZO9V-00044E-6T; Mon, 06 Mar 2023 22:38:13 -0500 In-Reply-To: <87wn3tpfg5.fsf@yahoo.com> (message from Po Lu on Tue, 07 Mar 2023 08:34:18 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257429 Archived-At: > From: Po Lu > Cc: utomei@tiscali.it, 61988@debbugs.gnu.org > Date: Tue, 07 Mar 2023 08:34:18 +0800 > > Eli Zaretskii writes: > > > I'd like to know why requiring libwebpdecoder is essential for the > > build to work on the OP's system. It isn't on mine, and if you look > > at init_webp_functions, you will see that on Windows we load functions > > only from libwebp and libwebpdemux. Why is the third library needed? > > It is here, because Emacs needs the function ``WebPGetInfo'', and on > GNU/Linux systems that function is in libwebpdecoder.so: Then the unconditional test for libwebpdecoder being installed is not TRT. We should instead do that only if that library is required, for example by trying to link a program that calls WebPGetInfo without libwebpdecoder first. > and here, I have a pkg-config file named libwebpdecoder.pc I see that file in the source directory, but it is not installed by "make install", and neither is libwebpdecoder library itself. Evidently, the way I configured and built libwebp doesn't require that library to be installed. And once again, in my case the offending function is in libwebpdemux, not in libwebpdecoder. So the test needs to be rewritten to be safe and correct. > GNU ld does not allow you to link to symbols in dependencies of shared > libraries, so asking for libwebpdemux while using symbols in > libwebpdecoder does not work. I know, and that's not what I suggested. It looks like at least on some systems (or maybe with some versions of libwebp) the libwebpdecoder library is not installed and not needed. We must support such installations; we did until now.