From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61988: error compiling emacs Date: Tue, 07 Mar 2023 08:34:18 +0800 Message-ID: <87wn3tpfg5.fsf@yahoo.com> 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> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2719"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: utomei@tiscali.it, 61988@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 07 01:35:16 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 1pZLIR-0000WB-Gr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Mar 2023 01:35:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZLIE-0007zU-Vg; Mon, 06 Mar 2023 19:35:03 -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 1pZLIE-0007wc-4C for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 19:35:02 -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 1pZLID-0008FP-Ox for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 19:35:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZLID-0005hP-LJ for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 19:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2023 00:35: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.167814927721874 (code B ref 61988); Tue, 07 Mar 2023 00:35:01 +0000 Original-Received: (at 61988) by debbugs.gnu.org; 7 Mar 2023 00:34:37 +0000 Original-Received: from localhost ([127.0.0.1]:44011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZLHp-0005gj-2R for submit@debbugs.gnu.org; Mon, 06 Mar 2023 19:34:37 -0500 Original-Received: from sonic305-22.consmr.mail.ne1.yahoo.com ([66.163.185.148]:35904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZLHm-0005gV-KB for 61988@debbugs.gnu.org; Mon, 06 Mar 2023 19:34:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678149268; bh=L+GW1kOy9z6DZHPLF3fu/GcsurRJqdPYfewyOwVx0CA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=SUYbGpg9+0ankfo72GDAWb4wYnRcIELjSIBsladzSNLARBEZhe0gJVkMSsXeCHsSr7EkLSUvzLP3D4TTJk505mOMOcBjSGpXVvihRmp3U/vi2qQcB+fBZBNXy5Ya+g/AxQvZy/A0nrz0I4HfJ7k7PhcS2l5wKeBhtKt8KNXoNERyeyCGxzDehLP4CIql7OQrr5dHxDDC7tr63/AwCndWAfB5Ho9d1g+BowsYV0FZ8723Kec+csFGXYeIZG0Cd9OrF0UckSWwaImkd3xUk2zYAHerI5cfs5NDQbg2xQCErghucFXhv/k2B9B/045+ffsCzIuHZOsK1WbVL2s2HptENA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678149268; bh=uLXsNooN36CatCgSafI6cq28mljE7mWdkJjJDhTe8iu=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=OYRKTTpKFA+AUKh7JtCRxcGjUJLmCx+9KaPcUi+u+i3UzM947ehbJWLmFQA3AqLzpqva/rEnWr6PMnqdegC5q0UqD1M0FYB07kiolz8uZPOZEwaAtBIlm9G+jp27y2zHO728/oB9nu095HlwhcB6ZqoepXZ4JcdyujACjZN1opjFg70NLb0ZDbCm3GGwTbE4o+ksM7grBy6kS/BCZjPnj7VPd3reCM188+kecjQEQp0FfwdmSVTWJq+2epey1JQeBrhE6B7E7ugAiSqsPIlrIlPGGpwC8YQQ3IJg8Raco1+IOcPDmswFrttasLmOmdCuVz/wgnexR9nAjSfzXalv8Q== X-YMail-OSG: uigPpCsVM1mCKWDYGACDqeUy4cxZmOZYBJpirkgigGm8PDGVjkMG7W6mG9LAoDz JxSb4PT4lz4bpNfCdIFZjkS8HMCamApYkA4FEBA__58xzljekhbW2VOdBTNylHvUtz.tW5RrbR_G 0sDSF81y1V8t_yYmITvfWR3Q9QLo_cHEb.Qpx3upxQDj6wjDO0JvYB9iaqV99nH4CFzlzvMaOhjY QD.3pvyVVInQQIzOtr20VVjGg2hzFCYfC_aL3.iJILcjqc.GYcwuE.fgXmel_43h4g5g_NOcfbT8 D_uEC6V.F7Xnqsfl_5gOsTZyaWe0tjlYSBmosLouAElJhSM_0k3N9o6w4TkoJwQLOp650WyAkkAE caPRYGUxYsLYbqJg3biwedyz6r3DAw2fgpNcssezVG0DJzLgbqJ.b_6r.XUTUfWy0XvEcdBquztU .TdHJ17JIOnbqKgxRSr87HJ0M3Sn3vXW2SFZPh8AHVjslR.A4NbBqaQzwoP6epo3tsC_Y46uoAG1 jmgtqAUyDdlHBHzqMdEGLvKA_qN0CU3nOeVxoLR2PcOB6aNFSBKeO7GEtKW0Y0ynB0YChQhmFWKe mVTWPZacQ580a7pTjTflrSA4hA9nxW.hTvqc3OK8K215OLSiY4cuVFsMzkTrvFazQIEi3p1F4iPv oxQB5rc._CArxkh1EqN7ehtjaLFqL.qNQrpgXFiq.9kxJBjL5Ecn3nGhKRB216mrFGJ6.gK7_Zdw sPdXamJWgkKIHbJZ58NMqXQr53x8Q4xxEJTBqQKOaoHNqsWaF5RI_EyPnZGi_TnZKJfPP3YqZOw6 Q1jvY4Ju8ejWy2n.M8SUuGpbgkevOO1OyeyBLGpIsx X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Tue, 7 Mar 2023 00:34:28 +0000 Original-Received: by hermes--production-sg3-67c57bccff-9pwhc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ff58863e6383cd50b1152e0efd91abc5; Tue, 07 Mar 2023 00:34:23 +0000 (UTC) In-Reply-To: <83v8jd7uvi.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 Mar 2023 17:38:25 +0200") X-Mailer: WebService/1.1.21284 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:257426 Archived-At: Eli Zaretskii writes: > reopen 61988 > thanks > >> From: Po Lu >> Cc: utomei@tiscali.it, 61988-done@debbugs.gnu.org >> Date: Mon, 06 Mar 2023 21:43:06 +0800 >> >> Eli Zaretskii writes: >> >> >> From: Po Lu >> >> Cc: 61988@debbugs.gnu.org, Eli Zaretskii >> >> Date: Mon, 06 Mar 2023 18:35:05 +0800 >> >> >> >> >> - WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED" >> >> >> + WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED libwebpdecoder >= $WEBP_REQUIRED" >> >> >> EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE]) >> >> >> AC_SUBST([WEBP_CFLAGS]) >> >> >> >> >> >> Everyone else, make sure to link to *EVERYTHING* that you depend on, not >> >> >> just one library that happens to link to everything you depend on. >> >> >> Thanks. >> >> >> >> Thanks. Eli, is this safe for Emacs 29? >> > >> > Yes, thanks. >> >> Thanks, I installed the patch and am closing this bug. > > Sorry, I wasn't paying close attention, and though that you are adding > libwebpdemux. With linwebpdecoder, the test fails on my system, since > libwebpdecoder is not installed and neither is its pkg-config file. > And is not needed: we don't use any API from that library, AFAICT. > > So I've reverted that change for now, and I'm reopening the bug. > > 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: libwebpdecoder.so.3.1.5: file format elf64-x86-64 [...] 000000000000a160 g DF .text 00000000000000a1 Base WebPGetInfo and here, I have a pkg-config file named libwebpdecoder.pc prefix=/usr exec_prefix=${prefix} libdir=${prefix}/lib64 includedir=${prefix}/include Name: libwebpdecoder Description: Library for the WebP graphics format (decode only) Version: 1.2.4 Cflags: -I${prefix}/include Libs: -L${prefix}/lib64 -lwebpdecoder Libs.private: -lm while the pkg-config file for libwebpdemux only links to -lwebpdemux, not -lwebpdecoder. 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.