GNU bug report logs - #61988
error compiling emacs

Previous Next

Package: emacs;

Reported by: Ugo Tomei <utomei <at> tiscali.it>

Date: Sun, 5 Mar 2023 19:03:02 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61988 in the body.
You can then email your comments to 61988 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Sun, 05 Mar 2023 19:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ugo Tomei <utomei <at> tiscali.it>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 05 Mar 2023 19:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ugo Tomei <utomei <at> tiscali.it>
To: bug-gnu-emacs <at> gnu.org
Subject: error compiling emacs
Date: Sun, 5 Mar 2023 12:23:22 +0100
Hi guys,

i have a problem during compiling emacs, when i launch "make":

make[3]: uscita dalla directory «/app/emacs/doc/lispref»
  CC       lcms.o
  CC       inotify.o
  CC       profiler.o
  CC       decompress.o
  CC       thread.o
  CC       systhread.o
  CC       sqlite.o
  CC       treesit.o
  CC       itree.o
  CC       xfont.o
  CC       ftfont.o
  CC       ftcrfont.o
  CC       hbfont.o
  CC       fontset.o
  CC       fringe.o
  CC       image.o
  CC       textconv.o
  CC       xgselect.o
  CC       json.o
  CC       terminfo.o
  CC       lastfile.o
  CCLD     temacs
  GEN      ../etc/DOC
/usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: 
DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:705: temacs] Errore 1
make[3]: uscita dalla directory «/app/emacs/src»
make[2]: *** [Makefile:544: src] Errore 2
make[2]: uscita dalla directory «/app/emacs»
make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
make[1]: uscita dalla directory «/app/emacs»
make[1]: ingresso nella directory «/app/emacs»
***
*** "make bootstrap" failed with exit status 2.
***
*** You could try to:
*** - run "make extraclean" and run "make" again (or, equivalently, run
***   "make bootstrap configure=default"), to rebuild Emacs with the
***   default configuration options, which might fix the problem
*** - run "git clean -fdx" and run "make bootstrap" again, which might
***   fix the problem if "make bootstrap configure=default" did not
***   !BEWARE! "git clean -fdx" deletes all files that are not under
***   !BEWARE! version control, which means that all changes to such
***   !BEWARE! files will be lost and cannot be restored later
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
*** - report the problem and ask for help by sending an email to
***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
***   message, the platform, and the repository revision displayed by
***   "git rev-parse HEAD"
***
make[1]: *** [Makefile:414: advice-on-failure] Errore 2
make[1]: uscita dalla directory «/app/emacs»
make: *** [Makefile:1243: bootstrap] Errore 2

Can you help me?

i have reinstalled this package but i have always same error: 
libwebp7:amd64 libwebp7:i386

Best regards



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Sun, 05 Mar 2023 19:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ugo Tomei <utomei <at> tiscali.it>
Cc: 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Sun, 05 Mar 2023 21:41:13 +0200
> Date: Sun, 5 Mar 2023 12:23:22 +0100
> From: Ugo Tomei <utomei <at> tiscali.it>
> 
>    CCLD     temacs
>    GEN      ../etc/DOC
> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: 
> DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:705: temacs] Errore 1
> make[3]: uscita dalla directory «/app/emacs/src»
> make[2]: *** [Makefile:544: src] Errore 2
> make[2]: uscita dalla directory «/app/emacs»
> make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
> make[1]: uscita dalla directory «/app/emacs»
> make[1]: ingresso nella directory «/app/emacs»
> ***
> *** "make bootstrap" failed with exit status 2.
> ***
> *** You could try to:
> *** - run "make extraclean" and run "make" again (or, equivalently, run
> ***   "make bootstrap configure=default"), to rebuild Emacs with the
> ***   default configuration options, which might fix the problem
> *** - run "git clean -fdx" and run "make bootstrap" again, which might
> ***   fix the problem if "make bootstrap configure=default" did not
> ***   !BEWARE! "git clean -fdx" deletes all files that are not under
> ***   !BEWARE! version control, which means that all changes to such
> ***   !BEWARE! files will be lost and cannot be restored later
> *** - run "make V=1", which displays the full commands invoked by make,
> ***   to further investigate the problem
> *** - report the problem and ask for help by sending an email to
> ***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
> ***   message, the platform, and the repository revision displayed by
> ***   "git rev-parse HEAD"
> ***
> make[1]: *** [Makefile:414: advice-on-failure] Errore 2
> make[1]: uscita dalla directory «/app/emacs»
> make: *** [Makefile:1243: bootstrap] Errore 2
> 
> Can you help me?
> 
> i have reinstalled this package but i have always same error: 
> libwebp7:amd64 libwebp7:i386

Which version of libwebp do you have there?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Mon, 06 Mar 2023 00:21:02 GMT) Full text and rfc822 format available.

Message #11 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Ugo Tomei <utomei <at> tiscali.it>
Cc: 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 06 Mar 2023 08:20:08 +0800
Ugo Tomei <utomei <at> tiscali.it> writes:

> Hi guys,
>
> i have a problem during compiling emacs, when i launch "make":
>
> make[3]: uscita dalla directory «/app/emacs/doc/lispref»
>   CC       lcms.o
>   CC       inotify.o
>   CC       profiler.o
>   CC       decompress.o
>   CC       thread.o
>   CC       systhread.o
>   CC       sqlite.o
>   CC       treesit.o
>   CC       itree.o
>   CC       xfont.o
>   CC       ftfont.o
>   CC       ftcrfont.o
>   CC       hbfont.o
>   CC       fontset.o
>   CC       fringe.o
>   CC       image.o
>   CC       textconv.o
>   CC       xgselect.o
>   CC       json.o
>   CC       terminfo.o
>   CC       lastfile.o
>   CCLD     temacs
>   GEN      ../etc/DOC
> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols:
> DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:705: temacs] Errore 1
> make[3]: uscita dalla directory «/app/emacs/src»
> make[2]: *** [Makefile:544: src] Errore 2
> make[2]: uscita dalla directory «/app/emacs»
> make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
> make[1]: uscita dalla directory «/app/emacs»
> make[1]: ingresso nella directory «/app/emacs»
> ***
> *** "make bootstrap" failed with exit status 2.
> ***
> *** You could try to:
> *** - run "make extraclean" and run "make" again (or, equivalently, run
> ***   "make bootstrap configure=default"), to rebuild Emacs with the
> ***   default configuration options, which might fix the problem
> *** - run "git clean -fdx" and run "make bootstrap" again, which might
> ***   fix the problem if "make bootstrap configure=default" did not
> ***   !BEWARE! "git clean -fdx" deletes all files that are not under
> ***   !BEWARE! version control, which means that all changes to such
> ***   !BEWARE! files will be lost and cannot be restored later
> *** - run "make V=1", which displays the full commands invoked by make,
> ***   to further investigate the problem
> *** - report the problem and ask for help by sending an email to
> ***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
> ***   message, the platform, and the repository revision displayed by
> ***   "git rev-parse HEAD"
> ***
> make[1]: *** [Makefile:414: advice-on-failure] Errore 2
> make[1]: uscita dalla directory «/app/emacs»
> make: *** [Makefile:1243: bootstrap] Errore 2
>
> Can you help me?
>
> i have reinstalled this package but i have always same error:
> libwebp7:amd64 libwebp7:i386
>
> Best regards

What happens if you apply this patch to configure.ac and reconfigure
Emacs?

diff --git a/configure.ac b/configure.ac
index b484ebdc8ba..f2083a53c17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2773,7 +2773,7 @@ AC_DEFUN
    || test "${HAVE_W32}" = "yes" || test "${HAVE_NS}" = "yes" \
    || test "${HAVE_BE_APP}" = "yes" || test "${HAVE_PGTK}" = "yes"; then
       WEBP_REQUIRED=0.6.0
-      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.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Mon, 06 Mar 2023 10:36:02 GMT) Full text and rfc822 format available.

Message #14 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Ugo Tomei <utomei <at> tiscali.it>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 06 Mar 2023 18:35:05 +0800
Ugo Tomei <utomei <at> tiscali.it> writes:

> YES!! works perfectly!
>
> lrwxrwxrwx 1 root root 13 mar  6 10:38 /usr/local/bin/emacs -> emacs-30.0.50
>
> Best regards
>
>
> Il 06/03/23 01:20, Po Lu ha scritto:
>> Ugo Tomei <utomei <at> tiscali.it> writes:
>>
>>> Hi guys,
>>>
>>> i have a problem during compiling emacs, when i launch "make":
>>>
>>> make[3]: uscita dalla directory «/app/emacs/doc/lispref»
>>>    CC       lcms.o
>>>    CC       inotify.o
>>>    CC       profiler.o
>>>    CC       decompress.o
>>>    CC       thread.o
>>>    CC       systhread.o
>>>    CC       sqlite.o
>>>    CC       treesit.o
>>>    CC       itree.o
>>>    CC       xfont.o
>>>    CC       ftfont.o
>>>    CC       ftcrfont.o
>>>    CC       hbfont.o
>>>    CC       fontset.o
>>>    CC       fringe.o
>>>    CC       image.o
>>>    CC       textconv.o
>>>    CC       xgselect.o
>>>    CC       json.o
>>>    CC       terminfo.o
>>>    CC       lastfile.o
>>>    CCLD     temacs
>>>    GEN      ../etc/DOC
>>> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
>>> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols:
>>> DSO missing from command line
>>> collect2: error: ld returned 1 exit status
>>> make[3]: *** [Makefile:705: temacs] Errore 1
>>> make[3]: uscita dalla directory «/app/emacs/src»
>>> make[2]: *** [Makefile:544: src] Errore 2
>>> make[2]: uscita dalla directory «/app/emacs»
>>> make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
>>> make[1]: uscita dalla directory «/app/emacs»
>>> make[1]: ingresso nella directory «/app/emacs»
>>> ***
>>> *** "make bootstrap" failed with exit status 2.
>>> ***
>>> *** You could try to:
>>> *** - run "make extraclean" and run "make" again (or, equivalently, run
>>> ***   "make bootstrap configure=default"), to rebuild Emacs with the
>>> ***   default configuration options, which might fix the problem
>>> *** - run "git clean -fdx" and run "make bootstrap" again, which might
>>> ***   fix the problem if "make bootstrap configure=default" did not
>>> ***   !BEWARE! "git clean -fdx" deletes all files that are not under
>>> ***   !BEWARE! version control, which means that all changes to such
>>> ***   !BEWARE! files will be lost and cannot be restored later
>>> *** - run "make V=1", which displays the full commands invoked by make,
>>> ***   to further investigate the problem
>>> *** - report the problem and ask for help by sending an email to
>>> ***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
>>> ***   message, the platform, and the repository revision displayed by
>>> ***   "git rev-parse HEAD"
>>> ***
>>> make[1]: *** [Makefile:414: advice-on-failure] Errore 2
>>> make[1]: uscita dalla directory «/app/emacs»
>>> make: *** [Makefile:1243: bootstrap] Errore 2
>>>
>>> Can you help me?
>>>
>>> i have reinstalled this package but i have always same error:
>>> libwebp7:amd64 libwebp7:i386
>>>
>>> Best regards
>> What happens if you apply this patch to configure.ac and reconfigure
>> Emacs?
>>
>> diff --git a/configure.ac b/configure.ac
>> index b484ebdc8ba..f2083a53c17 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -2773,7 +2773,7 @@ AC_DEFUN
>>      || test "${HAVE_W32}" = "yes" || test "${HAVE_NS}" = "yes" \
>>      || test "${HAVE_BE_APP}" = "yes" || test "${HAVE_PGTK}" = "yes"; then
>>         WEBP_REQUIRED=0.6.0
>> -      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?

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Mon, 06 Mar 2023 12:09:02 GMT) Full text and rfc822 format available.

Message #17 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 06 Mar 2023 14:08:18 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: 61988 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> 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.




Reply sent to Po Lu <luangruo <at> yahoo.com>:
You have taken responsibility. (Mon, 06 Mar 2023 13:44:02 GMT) Full text and rfc822 format available.

Notification sent to Ugo Tomei <utomei <at> tiscali.it>:
bug acknowledged by developer. (Mon, 06 Mar 2023 13:44:02 GMT) Full text and rfc822 format available.

Message #22 received at 61988-done <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: utomei <at> tiscali.it, 61988-done <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 06 Mar 2023 21:43:06 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Po Lu <luangruo <at> yahoo.com>
>> Cc: 61988 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
>> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Mon, 06 Mar 2023 15:39:02 GMT) Full text and rfc822 format available.

Message #25 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 06 Mar 2023 17:38:25 +0200
reopen 61988
thanks

> From: Po Lu <luangruo <at> yahoo.com>
> Cc: utomei <at> tiscali.it,  61988-done <at> debbugs.gnu.org
> Date: Mon, 06 Mar 2023 21:43:06 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Po Lu <luangruo <at> yahoo.com>
> >> Cc: 61988 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> >> 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?




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Mar 2023 15:39:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Mon, 06 Mar 2023 15:46:04 GMT) Full text and rfc822 format available.

Message #30 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Ugo Tomei <utomei <at> tiscali.it>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 6 Mar 2023 10:10:32 +0100
Hi

my version is 1.3.0

Thanks


Il 05/03/23 20:41, Eli Zaretskii ha scritto:
>> Date: Sun, 5 Mar 2023 12:23:22 +0100
>> From: Ugo Tomei <utomei <at> tiscali.it>
>>
>>     CCLD     temacs
>>     GEN      ../etc/DOC
>> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
>> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols:
>> DSO missing from command line
>> collect2: error: ld returned 1 exit status
>> make[3]: *** [Makefile:705: temacs] Errore 1
>> make[3]: uscita dalla directory «/app/emacs/src»
>> make[2]: *** [Makefile:544: src] Errore 2
>> make[2]: uscita dalla directory «/app/emacs»
>> make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
>> make[1]: uscita dalla directory «/app/emacs»
>> make[1]: ingresso nella directory «/app/emacs»
>> ***
>> *** "make bootstrap" failed with exit status 2.
>> ***
>> *** You could try to:
>> *** - run "make extraclean" and run "make" again (or, equivalently, run
>> ***   "make bootstrap configure=default"), to rebuild Emacs with the
>> ***   default configuration options, which might fix the problem
>> *** - run "git clean -fdx" and run "make bootstrap" again, which might
>> ***   fix the problem if "make bootstrap configure=default" did not
>> ***   !BEWARE! "git clean -fdx" deletes all files that are not under
>> ***   !BEWARE! version control, which means that all changes to such
>> ***   !BEWARE! files will be lost and cannot be restored later
>> *** - run "make V=1", which displays the full commands invoked by make,
>> ***   to further investigate the problem
>> *** - report the problem and ask for help by sending an email to
>> ***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
>> ***   message, the platform, and the repository revision displayed by
>> ***   "git rev-parse HEAD"
>> ***
>> make[1]: *** [Makefile:414: advice-on-failure] Errore 2
>> make[1]: uscita dalla directory «/app/emacs»
>> make: *** [Makefile:1243: bootstrap] Errore 2
>>
>> Can you help me?
>>
>> i have reinstalled this package but i have always same error:
>> libwebp7:amd64 libwebp7:i386
> Which version of libwebp do you have there?

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Mon, 06 Mar 2023 15:46:05 GMT) Full text and rfc822 format available.

Message #33 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Ugo Tomei <utomei <at> tiscali.it>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Mon, 6 Mar 2023 10:38:47 +0100
YES!! works perfectly!

lrwxrwxrwx 1 root root 13 mar  6 10:38 /usr/local/bin/emacs -> emacs-30.0.50

Best regards


Il 06/03/23 01:20, Po Lu ha scritto:
> Ugo Tomei <utomei <at> tiscali.it> writes:
>
>> Hi guys,
>>
>> i have a problem during compiling emacs, when i launch "make":
>>
>> make[3]: uscita dalla directory «/app/emacs/doc/lispref»
>>    CC       lcms.o
>>    CC       inotify.o
>>    CC       profiler.o
>>    CC       decompress.o
>>    CC       thread.o
>>    CC       systhread.o
>>    CC       sqlite.o
>>    CC       treesit.o
>>    CC       itree.o
>>    CC       xfont.o
>>    CC       ftfont.o
>>    CC       ftcrfont.o
>>    CC       hbfont.o
>>    CC       fontset.o
>>    CC       fringe.o
>>    CC       image.o
>>    CC       textconv.o
>>    CC       xgselect.o
>>    CC       json.o
>>    CC       terminfo.o
>>    CC       lastfile.o
>>    CCLD     temacs
>>    GEN      ../etc/DOC
>> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
>> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols:
>> DSO missing from command line
>> collect2: error: ld returned 1 exit status
>> make[3]: *** [Makefile:705: temacs] Errore 1
>> make[3]: uscita dalla directory «/app/emacs/src»
>> make[2]: *** [Makefile:544: src] Errore 2
>> make[2]: uscita dalla directory «/app/emacs»
>> make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
>> make[1]: uscita dalla directory «/app/emacs»
>> make[1]: ingresso nella directory «/app/emacs»
>> ***
>> *** "make bootstrap" failed with exit status 2.
>> ***
>> *** You could try to:
>> *** - run "make extraclean" and run "make" again (or, equivalently, run
>> ***   "make bootstrap configure=default"), to rebuild Emacs with the
>> ***   default configuration options, which might fix the problem
>> *** - run "git clean -fdx" and run "make bootstrap" again, which might
>> ***   fix the problem if "make bootstrap configure=default" did not
>> ***   !BEWARE! "git clean -fdx" deletes all files that are not under
>> ***   !BEWARE! version control, which means that all changes to such
>> ***   !BEWARE! files will be lost and cannot be restored later
>> *** - run "make V=1", which displays the full commands invoked by make,
>> ***   to further investigate the problem
>> *** - report the problem and ask for help by sending an email to
>> ***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
>> ***   message, the platform, and the repository revision displayed by
>> ***   "git rev-parse HEAD"
>> ***
>> make[1]: *** [Makefile:414: advice-on-failure] Errore 2
>> make[1]: uscita dalla directory «/app/emacs»
>> make: *** [Makefile:1243: bootstrap] Errore 2
>>
>> Can you help me?
>>
>> i have reinstalled this package but i have always same error:
>> libwebp7:amd64 libwebp7:i386
>>
>> Best regards
> What happens if you apply this patch to configure.ac and reconfigure
> Emacs?
>
> diff --git a/configure.ac b/configure.ac
> index b484ebdc8ba..f2083a53c17 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2773,7 +2773,7 @@ AC_DEFUN
>      || test "${HAVE_W32}" = "yes" || test "${HAVE_NS}" = "yes" \
>      || test "${HAVE_BE_APP}" = "yes" || test "${HAVE_PGTK}" = "yes"; then
>         WEBP_REQUIRED=0.6.0
> -      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.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 00:35:01 GMT) Full text and rfc822 format available.

Message #36 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 08:34:18 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> reopen 61988
> thanks
>
>> From: Po Lu <luangruo <at> yahoo.com>
>> Cc: utomei <at> tiscali.it,  61988-done <at> debbugs.gnu.org
>> Date: Mon, 06 Mar 2023 21:43:06 +0800
>> 
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>> 
>> >> From: Po Lu <luangruo <at> yahoo.com>
>> >> Cc: 61988 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
>> >> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 03:39:01 GMT) Full text and rfc822 format available.

Message #39 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 05:38:07 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: utomei <at> tiscali.it,  61988 <at> debbugs.gnu.org
> Date: Tue, 07 Mar 2023 08:34:18 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 05:05:01 GMT) Full text and rfc822 format available.

Message #42 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 13:03:55 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Po Lu <luangruo <at> yahoo.com>
>> Cc: utomei <at> tiscali.it,  61988 <at> debbugs.gnu.org
>> Date: Tue, 07 Mar 2023 08:34:18 +0800
>> 
>> Eli Zaretskii <eliz <at> gnu.org> 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.

OK, would both you and utomei <at> tiscali.it please try this?

diff --git a/configure.ac b/configure.ac
index bc7e61048c3..1477e04b7d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2806,6 +2806,22 @@ AC_DEFUN
       WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
 
       EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
+
+      # WebPGetInfo is sometimes not present inside libwebpdemux, so
+      # if it does not link, also check for libwebpdecoder.
+
+      OLD_CFLAGS=$CFLAGS
+      OLD_LIBS=$LIBS
+      CFLAGS="$CFLAGS $WEBP_CFLAGS"
+      LIBS="$LIBS $WEBP_LIBS"
+
+      AC_CHECK_FUNC([WebPGetInfo], [],
+        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
+	 EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
+
+      CFLAGS=$OLD_CFLAGS
+      LIBS=$OLD_LIBS
+
       AC_SUBST([WEBP_CFLAGS])
       AC_SUBST([WEBP_LIBS])
    fi




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 13:01:02 GMT) Full text and rfc822 format available.

Message #45 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 15:00:37 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: utomei <at> tiscali.it,  61988 <at> debbugs.gnu.org
> Date: Tue, 07 Mar 2023 13:03:55 +0800
> 
> > 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.
> 
> OK, would both you and utomei <at> tiscali.it please try this?

Works for me, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 13:37:01 GMT) Full text and rfc822 format available.

Message #48 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: "Ugo Tomei" <utomei <at> tiscali.it>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>, "'Po Lu'" <luangruo <at> yahoo.com>,
 <61988 <at> debbugs.gnu.org>
Subject: R: bug#61988: error compiling emacs
Date: Tue, 7 Mar 2023 14:36:19 +0100
If i remove libwebpdecoder3 on my ubuntu 22.04 emacs compile well.
If I install libwebpdecoder3 not compile (/usr/bin/ld:
/lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO missing from
command line):

  CC       textconv.o
  CC       xgselect.o
  CC       json.o
  CC       terminfo.o
  CC       lastfile.o
  CCLD     temacs
  GEN      ../etc/DOC
/usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:705: temacs] Errore 1
make[3]: uscita dalla directory «/app/emacs/src»
make[2]: *** [Makefile:544: src] Errore 2
make[2]: uscita dalla directory «/app/emacs»
make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
make[1]: uscita dalla directory «/app/emacs»
make[1]: ingresso nella directory «/app/emacs»
***
*** "make bootstrap" failed with exit status 2.
***
*** You could try to:
*** - run "make extraclean" and run "make" again (or, equivalently, run
***   "make bootstrap configure=default"), to rebuild Emacs with the
***   default configuration options, which might fix the problem
*** - run "git clean -fdx" and run "make bootstrap" again, which might
***   fix the problem if "make bootstrap configure=default" did not
***   !BEWARE! "git clean -fdx" deletes all files that are not under
***   !BEWARE! version control, which means that all changes to such
***   !BEWARE! files will be lost and cannot be restored later
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
*** - report the problem and ask for help by sending an email to
***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
***   message, the platform, and the repository revision displayed by
***   "git rev-parse HEAD"
***
make[1]: *** [Makefile:414: advice-on-failure] Errore 2
make[1]: uscita dalla directory «/app/emacs»
make: *** [Makefile:1243: bootstrap] Errore 2
make -C lib all
make[1]: ingresso nella directory «/app/emacs/lib»
make[1]: Nessuna operazione da eseguire per «all».
make[1]: uscita dalla directory «/app/emacs/lib»
make -C lib-src all
make[1]: ingresso nella directory «/app/emacs/lib-src»
make[1]: Nessuna operazione da eseguire per «all».
make[1]: uscita dalla directory «/app/emacs/lib-src»
make -C src BIN_DESTDIR=''/usr/local/bin/'' \
         ELN_DESTDIR='/usr/local/lib/emacs/30.0.50/' all
make[1]: ingresso nella directory «/app/emacs/src»
make -C ../admin/charsets all
make[2]: ingresso nella directory «/app/emacs/admin/charsets»
make[2]: Nessuna operazione da eseguire per «all».
make[2]: uscita dalla directory «/app/emacs/admin/charsets»
make -C ../admin/unidata charscript.el
make[2]: ingresso nella directory «/app/emacs/admin/unidata»
make[2]: Nessuna operazione da eseguire per «charscript.el».
make[2]: uscita dalla directory «/app/emacs/admin/unidata»
make -C ../admin/unidata emoji-zwj.el
make[2]: ingresso nella directory «/app/emacs/admin/unidata»
make[2]: Nessuna operazione da eseguire per «emoji-zwj.el».
make[2]: uscita dalla directory «/app/emacs/admin/unidata»
  CCLD     temacs
/usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:705: temacs] Errore 1
make[1]: uscita dalla directory «/app/emacs/src»
make: *** [Makefile:544: src] Errore 2

-----Messaggio originale-----
Da: Eli Zaretskii <eliz <at> gnu.org> 
Inviato: martedì 7 marzo 2023 14:01
A: Po Lu <luangruo <at> yahoo.com>
Cc: utomei <at> tiscali.it; 61988 <at> debbugs.gnu.org
Oggetto: Re: bug#61988: error compiling emacs

> From: Po Lu <luangruo <at> yahoo.com>
> Cc: utomei <at> tiscali.it,  61988 <at> debbugs.gnu.org
> Date: Tue, 07 Mar 2023 13:03:55 +0800
> 
> > 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.
> 
> OK, would both you and utomei <at> tiscali.it please try this?

Works for me, thanks.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 14:12:02 GMT) Full text and rfc822 format available.

Message #51 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Ugo Tomei" <utomei <at> tiscali.it>
Cc: luangruo <at> yahoo.com, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 16:11:14 +0200
> From: "Ugo Tomei" <utomei <at> tiscali.it>
> Date: Tue, 7 Mar 2023 14:36:19 +0100
> 
> If i remove libwebpdecoder3 on my ubuntu 22.04 emacs compile well.

Compiles and supports display of WebP images?  Or compiles without
WebP support?  What does the "configure" script say when it ends? does
it say

  Does Emacs use -lwebp?                                  yes

or does not say

  Does Emacs use -lwebp?                                  no

> If I install libwebpdecoder3 not compile (/usr/bin/ld:
> /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO missing from
> command line):
> 
>   CC       textconv.o
>   CC       xgselect.o
>   CC       json.o
>   CC       terminfo.o
>   CC       lastfile.o
>   CCLD     temacs
>   GEN      ../etc/DOC
> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO
> missing from command line

Please show the parts of config.log where the configure script makes
the WebP related tests.  Here's what I see on my system:

  configure:14271: checking for libwebpdemux >= 0.6.0
  configure:14278: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
  configure:14281: $? = 0
  configure:14295: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
  configure:14298: $? = 0
  configure:14336: result: yes
  configure:14350: checking for WebPGetInfo
  configure:14350: gcc -I ./nt/inc -o conftest.exe -O0 -gdwarf-4 -g3 -mms-bitfields -isystem d:/usr/include/librsvg-2.0 -isystem d:/usr/include/gdk-pixbuf-2.0 -isystem d:/usr/include/libpng16 -isystem d:/usr/include/cairo -isystem d:/usr/include/glib-2.0 -isystem d:/usr/lib/glib-2.0/include -isystem d:/usr/include/pixman-1 -isystem d:/usr/include/libpng16   -mtune=pentium4    conftest.c   -lwebpdemux -lwebp  >&5 
  configure:14350: $? = 0
  configure:14350: result: yes




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 14:35:02 GMT) Full text and rfc822 format available.

Message #54 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: "Ugo Tomei" <utomei <at> tiscali.it>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: luangruo <at> yahoo.com, 61988 <at> debbugs.gnu.org
Subject: R: bug#61988: error compiling emacs
Date: Tue, 7 Mar 2023 15:34:26 +0100
Ok excuse me i try to explain better now:

I have installed libwebpdecoder3 and in the log I see:

checking for libwebpdemux >= 0.6.0... yes
Does Emacs use -lwebp?                                  Yes

And at the end I see the error:

  CCLD     temacs
/usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:705: temacs] Errore 1
make[1]: uscita dalla directory «/app/emacs/src»
make: *** [Makefile:544: src] Errore 2


-----Messaggio originale-----
Da: Eli Zaretskii <eliz <at> gnu.org> 
Inviato: martedì 7 marzo 2023 15:11
A: Ugo Tomei <utomei <at> tiscali.it>
Cc: luangruo <at> yahoo.com; 61988 <at> debbugs.gnu.org
Oggetto: Re: bug#61988: error compiling emacs

> From: "Ugo Tomei" <utomei <at> tiscali.it>
> Date: Tue, 7 Mar 2023 14:36:19 +0100
> 
> If i remove libwebpdecoder3 on my ubuntu 22.04 emacs compile well.

Compiles and supports display of WebP images?  Or compiles without WebP
support?  What does the "configure" script say when it ends? does it say

  Does Emacs use -lwebp?                                  yes

or does not say

  Does Emacs use -lwebp?                                  no

> If I install libwebpdecoder3 not compile (/usr/bin/ld:
> /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO missing 
> from command line):
> 
>   CC       textconv.o
>   CC       xgselect.o
>   CC       json.o
>   CC       terminfo.o
>   CC       lastfile.o
>   CCLD     temacs
>   GEN      ../etc/DOC
> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: 
> DSO missing from command line

Please show the parts of config.log where the configure script makes the
WebP related tests.  Here's what I see on my system:

  configure:14271: checking for libwebpdemux >= 0.6.0
  configure:14278: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
  configure:14281: $? = 0
  configure:14295: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
  configure:14298: $? = 0
  configure:14336: result: yes
  configure:14350: checking for WebPGetInfo
  configure:14350: gcc -I ./nt/inc -o conftest.exe -O0 -gdwarf-4 -g3
-mms-bitfields -isystem d:/usr/include/librsvg-2.0 -isystem
d:/usr/include/gdk-pixbuf-2.0 -isystem d:/usr/include/libpng16 -isystem
d:/usr/include/cairo -isystem d:/usr/include/glib-2.0 -isystem
d:/usr/lib/glib-2.0/include -isystem d:/usr/include/pixman-1 -isystem
d:/usr/include/libpng16   -mtune=pentium4    conftest.c   -lwebpdemux -lwebp
>&5 
  configure:14350: $? = 0
  configure:14350: result: yes





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 15:29:01 GMT) Full text and rfc822 format available.

Message #57 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Ugo Tomei" <utomei <at> tiscali.it>
Cc: luangruo <at> yahoo.com, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 17:27:59 +0200
> From: "Ugo Tomei" <utomei <at> tiscali.it>
> Cc: <luangruo <at> yahoo.com>,
> 	<61988 <at> debbugs.gnu.org>
> Date: Tue, 7 Mar 2023 15:34:26 +0100
> 
> Ok excuse me i try to explain better now:
> 
> I have installed libwebpdecoder3 and in the log I see:
> 
> checking for libwebpdemux >= 0.6.0... yes

That's on the screen.  I asked you to look in the file config.log,
there should be more details there which hopefully will allow us to
figure out what went wrong in your case.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 16:22:01 GMT) Full text and rfc822 format available.

Message #60 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: utomei <at> tiscali.it, luangruo <at> yahoo.com
Cc: 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 18:21:27 +0200
> Cc: luangruo <at> yahoo.com, 61988 <at> debbugs.gnu.org
> Date: Tue, 07 Mar 2023 17:27:59 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: "Ugo Tomei" <utomei <at> tiscali.it>
> > Cc: <luangruo <at> yahoo.com>,
> > 	<61988 <at> debbugs.gnu.org>
> > Date: Tue, 7 Mar 2023 15:34:26 +0100
> > 
> > Ok excuse me i try to explain better now:
> > 
> > I have installed libwebpdecoder3 and in the log I see:
> > 
> > checking for libwebpdemux >= 0.6.0... yes
> 
> That's on the screen.  I asked you to look in the file config.log,
> there should be more details there which hopefully will allow us to
> figure out what went wrong in your case.

Btw, I think I understand what's special about that system: the
libwebpdecoder library is installed if libwebp is built with the
special --enable-libwebpdecoder option.  Maybe we should detect that
separately, and adapt the Makefile to such an installation, because I
think in that case Emacs should be linked _only_ with libwebpdecoder,
not with libwebp itself.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 16:45:01 GMT) Full text and rfc822 format available.

Message #63 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: "Ugo Tomei" <utomei <at> tiscali.it>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: luangruo <at> yahoo.com, 61988 <at> debbugs.gnu.org
Subject: R: bug#61988: error compiling emacs
Date: Tue, 7 Mar 2023 17:44:26 +0100
[Message part 1 (text/plain, inline)]
In the emacs dir I see config.log:

configure:14159: checking for libwebpdemux >= 0.6.0
configure:14323: gcc -o conftest  -g3 -O2 -pthread -isystem
/usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem
/usr/include/x86_64-linux-gnu -isystem /usr/include/libmount -isystem
/usr/include/blkid -isystem /usr/include/cairo -isystem
/usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include
-isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16 -isystem
/usr/include/webp       conftest.c -lsqlite3  -lsqlite3 -lX11   >&5
| #define HAVE_WEBP 1
pkg_cv_WEBP_CFLAGS=-I/usr/include/webp
WEBP_CFLAGS='-isystem /usr/include/webp'
WEBP_LIBS='-lwebpdemux'

I attached the log.

Best regards

-----Messaggio originale-----
Da: Eli Zaretskii <eliz <at> gnu.org> 
Inviato: martedì 7 marzo 2023 15:11
A: Ugo Tomei <utomei <at> tiscali.it>
Cc: luangruo <at> yahoo.com; 61988 <at> debbugs.gnu.org
Oggetto: Re: bug#61988: error compiling emacs

> From: "Ugo Tomei" <utomei <at> tiscali.it>
> Date: Tue, 7 Mar 2023 14:36:19 +0100
> 
> If i remove libwebpdecoder3 on my ubuntu 22.04 emacs compile well.

Compiles and supports display of WebP images?  Or compiles without WebP
support?  What does the "configure" script say when it ends? does it say

  Does Emacs use -lwebp?                                  yes

or does not say

  Does Emacs use -lwebp?                                  no

> If I install libwebpdecoder3 not compile (/usr/bin/ld:
> /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: DSO missing 
> from command line):
> 
>   CC       textconv.o
>   CC       xgselect.o
>   CC       json.o
>   CC       terminfo.o
>   CC       lastfile.o
>   CCLD     temacs
>   GEN      ../etc/DOC
> /usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: 
> DSO missing from command line

Please show the parts of config.log where the configure script makes the
WebP related tests.  Here's what I see on my system:

  configure:14271: checking for libwebpdemux >= 0.6.0
  configure:14278: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
  configure:14281: $? = 0
  configure:14295: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
  configure:14298: $? = 0
  configure:14336: result: yes
  configure:14350: checking for WebPGetInfo
  configure:14350: gcc -I ./nt/inc -o conftest.exe -O0 -gdwarf-4 -g3
-mms-bitfields -isystem d:/usr/include/librsvg-2.0 -isystem
d:/usr/include/gdk-pixbuf-2.0 -isystem d:/usr/include/libpng16 -isystem
d:/usr/include/cairo -isystem d:/usr/include/glib-2.0 -isystem
d:/usr/lib/glib-2.0/include -isystem d:/usr/include/pixman-1 -isystem
d:/usr/include/libpng16   -mtune=pentium4    conftest.c   -lwebpdemux -lwebp
>&5 
  configure:14350: $? = 0
  configure:14350: result: yes
[config.log (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Tue, 07 Mar 2023 17:01:02 GMT) Full text and rfc822 format available.

Message #66 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Ugo Tomei" <utomei <at> tiscali.it>
Cc: luangruo <at> yahoo.com, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 07 Mar 2023 18:59:58 +0200
> From: "Ugo Tomei" <utomei <at> tiscali.it>
> Cc: <luangruo <at> yahoo.com>,
> 	<61988 <at> debbugs.gnu.org>
> Date: Tue, 7 Mar 2023 17:44:26 +0100
> 
> In the emacs dir I see config.log:
> 
> configure:14159: checking for libwebpdemux >= 0.6.0
> configure:14323: gcc -o conftest  -g3 -O2 -pthread -isystem
> /usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem
> /usr/include/x86_64-linux-gnu -isystem /usr/include/libmount -isystem
> /usr/include/blkid -isystem /usr/include/cairo -isystem
> /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include
> -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem
> /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem
> /usr/include/webp       conftest.c -lsqlite3  -lsqlite3 -lX11   >&5
> | #define HAVE_WEBP 1
> pkg_cv_WEBP_CFLAGS=-I/usr/include/webp
> WEBP_CFLAGS='-isystem /usr/include/webp'
> WEBP_LIBS='-lwebpdemux'
> 
> I attached the log.
> [...]
> configure:14159: checking for libwebpdemux >= 0.6.0
> configure:14166: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
> configure:14169: $? = 0
> configure:14183: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
> configure:14186: $? = 0
> configure:14224: result: yes

I'm stumped: why doesn't it test WebPGetInfo?  Po Lu, do you
understand what happened here?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 00:10:01 GMT) Full text and rfc822 format available.

Message #69 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Ugo Tomei <utomei <at> tiscali.it>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 08 Mar 2023 08:09:13 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: "Ugo Tomei" <utomei <at> tiscali.it>
>> Cc: <luangruo <at> yahoo.com>,
>> 	<61988 <at> debbugs.gnu.org>
>> Date: Tue, 7 Mar 2023 17:44:26 +0100
>> 
>> In the emacs dir I see config.log:
>> 
>> configure:14159: checking for libwebpdemux >= 0.6.0
>> configure:14323: gcc -o conftest  -g3 -O2 -pthread -isystem
>> /usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem
>> /usr/include/x86_64-linux-gnu -isystem /usr/include/libmount -isystem
>> /usr/include/blkid -isystem /usr/include/cairo -isystem
>> /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include
>> -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem
>> /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem
>> /usr/include/webp       conftest.c -lsqlite3  -lsqlite3 -lX11   >&5
>> | #define HAVE_WEBP 1
>> pkg_cv_WEBP_CFLAGS=-I/usr/include/webp
>> WEBP_CFLAGS='-isystem /usr/include/webp'
>> WEBP_LIBS='-lwebpdemux'
>> 
>> I attached the log.
>> [...]
>> configure:14159: checking for libwebpdemux >= 0.6.0
>> configure:14166: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
>> configure:14169: $? = 0
>> configure:14183: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
>> configure:14186: $? = 0
>> configure:14224: result: yes
>
> I'm stumped: why doesn't it test WebPGetInfo?  Po Lu, do you
> understand what happened here?

utomei <at> tiscali.it, did you forget to run:

  ./autogen.sh

after applying the change?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 08:34:01 GMT) Full text and rfc822 format available.

Message #72 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Ugo Tomei <utomei <at> tiscali.it>
To: Po Lu <luangruo <at> yahoo.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 8 Mar 2023 09:32:57 +0100
[Message part 1 (text/plain, inline)]
Hi all,

this is the log with patch applied, libwebpdecoder3 installed, and 
compiled with this commands:

cd /app
git clone https://github.com/emacs-mirror/emacs.git
cd /app/emacs
git checkout master
git pull
./autogen.sh
./configure
make bootstrap -j 32
sudo make install
ls -la /usr/local/bin/emacs

compiled well:

lrwxrwxrwx 1 root root 13 mar  8 09:28 /usr/local/bin/emacs -> emacs-30.0.50


Il 08/03/23 01:09, Po Lu ha scritto:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: "Ugo Tomei" <utomei <at> tiscali.it>
>>> Cc: <luangruo <at> yahoo.com>,
>>> 	<61988 <at> debbugs.gnu.org>
>>> Date: Tue, 7 Mar 2023 17:44:26 +0100
>>>
>>> In the emacs dir I see config.log:
>>>
>>> configure:14159: checking for libwebpdemux >= 0.6.0
>>> configure:14323: gcc -o conftest  -g3 -O2 -pthread -isystem
>>> /usr/include/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem
>>> /usr/include/x86_64-linux-gnu -isystem /usr/include/libmount -isystem
>>> /usr/include/blkid -isystem /usr/include/cairo -isystem
>>> /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include
>>> -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem
>>> /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem
>>> /usr/include/webp       conftest.c -lsqlite3  -lsqlite3 -lX11   >&5
>>> | #define HAVE_WEBP 1
>>> pkg_cv_WEBP_CFLAGS=-I/usr/include/webp
>>> WEBP_CFLAGS='-isystem /usr/include/webp'
>>> WEBP_LIBS='-lwebpdemux'
>>>
>>> I attached the log.
>>> [...]
>>> configure:14159: checking for libwebpdemux >= 0.6.0
>>> configure:14166: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
>>> configure:14169: $? = 0
>>> configure:14183: $PKG_CONFIG --exists --print-errors "$WEBP_MODULE"
>>> configure:14186: $? = 0
>>> configure:14224: result: yes
>> I'm stumped: why doesn't it test WebPGetInfo?  Po Lu, do you
>> understand what happened here?
> utomei <at> tiscali.it, did you forget to run:
>
>    ./autogen.sh
>
> after applying the change?
[config.log (text/x-log, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 09:03:01 GMT) Full text and rfc822 format available.

Message #75 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Ugo Tomei <utomei <at> tiscali.it>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 08 Mar 2023 17:02:31 +0800
Your config.log shows you applied the old patch.  I'm talking about this
new one:

diff --git a/configure.ac b/configure.ac
index bc7e61048c3..1477e04b7d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2806,6 +2806,22 @@ AC_DEFUN
       WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
 
       EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
+
+      # WebPGetInfo is sometimes not present inside libwebpdemux, so
+      # if it does not link, also check for libwebpdecoder.
+
+      OLD_CFLAGS=$CFLAGS
+      OLD_LIBS=$LIBS
+      CFLAGS="$CFLAGS $WEBP_CFLAGS"
+      LIBS="$LIBS $WEBP_LIBS"
+
+      AC_CHECK_FUNC([WebPGetInfo], [],
+        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
+	 EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
+
+      CFLAGS=$OLD_CFLAGS
+      LIBS=$OLD_LIBS
+
       AC_SUBST([WEBP_CFLAGS])
       AC_SUBST([WEBP_LIBS])
    fi

with this patch applied, and after you run autogen.sh, does Emacs
configure and build normally?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 09:45:02 GMT) Full text and rfc822 format available.

Message #78 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Ugo Tomei <utomei <at> tiscali.it>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 8 Mar 2023 10:44:07 +0100
[Message part 1 (text/plain, inline)]
not works:

/usr/bin/ld: image.o: undefined reference to symbol 'WebPGetInfo'
/usr/bin/ld: /lib/x86_64-linux-gnu/libwebp.so.7: error adding symbols: 
DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:705: temacs] Errore 1
make[3]: uscita dalla directory «/app/emacs/src»
make[2]: *** [Makefile:544: src] Errore 2
make[2]: uscita dalla directory «/app/emacs»
make[1]: *** [Makefile:1260: actual-bootstrap] Errore 2
make[1]: uscita dalla directory «/app/emacs»
make[1]: ingresso nella directory «/app/emacs»
***
*** "make bootstrap" failed with exit status 2.
***
*** You could try to:
*** - run "make extraclean" and run "make" again (or, equivalently, run
***   "make bootstrap configure=default"), to rebuild Emacs with the
***   default configuration options, which might fix the problem
*** - run "git clean -fdx" and run "make bootstrap" again, which might
***   fix the problem if "make bootstrap configure=default" did not
***   !BEWARE! "git clean -fdx" deletes all files that are not under
***   !BEWARE! version control, which means that all changes to such
***   !BEWARE! files will be lost and cannot be restored later
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
*** - report the problem and ask for help by sending an email to
***   bug-gnu-emacs <at> gnu.org, mentioning at least the build error
***   message, the platform, and the repository revision displayed by
***   "git rev-parse HEAD"
***
make[1]: *** [Makefile:414: advice-on-failure] Errore 2
make[1]: uscita dalla directory «/app/emacs»
make: *** [Makefile:1243: bootstrap] Errore 2

attached configure.ac and log

first patch works

last patch not works

best regards



Il 08/03/23 10:02, Po Lu ha scritto:
> Your config.log shows you applied the old patch.  I'm talking about this
> new one:
>
> diff --git a/configure.ac b/configure.ac
> index bc7e61048c3..1477e04b7d8 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2806,6 +2806,22 @@ AC_DEFUN
>         WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
>   
>         EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
> +
> +      # WebPGetInfo is sometimes not present inside libwebpdemux, so
> +      # if it does not link, also check for libwebpdecoder.
> +
> +      OLD_CFLAGS=$CFLAGS
> +      OLD_LIBS=$LIBS
> +      CFLAGS="$CFLAGS $WEBP_CFLAGS"
> +      LIBS="$LIBS $WEBP_LIBS"
> +
> +      AC_CHECK_FUNC([WebPGetInfo], [],
> +        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
> +	 EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
> +
> +      CFLAGS=$OLD_CFLAGS
> +      LIBS=$OLD_LIBS
> +
>         AC_SUBST([WEBP_CFLAGS])
>         AC_SUBST([WEBP_LIBS])
>      fi
>
> with this patch applied, and after you run autogen.sh, does Emacs
> configure and build normally?
[config.log (text/x-log, attachment)]
[configure.ac (application/pkix-attr-cert, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 10:43:01 GMT) Full text and rfc822 format available.

Message #81 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Ugo Tomei <utomei <at> tiscali.it>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 08 Mar 2023 18:42:13 +0800
What if you try this instead?

diff --git a/configure.ac b/configure.ac
index bc7e61048c3..ac93d003b70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2806,6 +2806,25 @@ AC_DEFUN
       WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
 
       EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
+
+      # WebPGetInfo is sometimes not present inside libwebpdemux, so
+      # if it does not link, also check for libwebpdecoder.
+
+      OLD_CFLAGS=$CFLAGS
+      OLD_LIBS=$LIBS
+      CFLAGS="$CFLAGS $WEBP_CFLAGS"
+      LIBS="$LIBS $WEBP_LIBS"
+
+      AC_CHECK_FUNC([WebPGetInfo], [],
+        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
+	 HAVE_WEBP=no
+	 AS_UNSET([WEBP_LIBS])
+	 AS_UNSET([WEBP_CFLAGS])
+	 EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
+
+      CFLAGS=$OLD_CFLAGS
+      LIBS=$OLD_LIBS
+
       AC_SUBST([WEBP_CFLAGS])
       AC_SUBST([WEBP_LIBS])
    fi

I'm not sure what pkg-config is doing here TBH, but it isn't very
intuitive.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 12:27:01 GMT) Full text and rfc822 format available.

Message #84 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Ugo Tomei <utomei <at> tiscali.it>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 8 Mar 2023 13:26:28 +0100
[Message part 1 (text/plain, inline)]
hi,

pkg-config/kinetic,now 0.29.2-1ubuntu3 amd64 [installato]

with this patch compile well:

lrwxrwxrwx 1 root root 13 mar  8 13:25 /usr/local/bin/emacs -> emacs-30.0.50

attached log and configure.ac

thanks, best regards


Il 08/03/23 11:42, Po Lu ha scritto:
> What if you try this instead?
>
> diff --git a/configure.ac b/configure.ac
> index bc7e61048c3..ac93d003b70 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2806,6 +2806,25 @@ AC_DEFUN
>         WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
>   
>         EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
> +
> +      # WebPGetInfo is sometimes not present inside libwebpdemux, so
> +      # if it does not link, also check for libwebpdecoder.
> +
> +      OLD_CFLAGS=$CFLAGS
> +      OLD_LIBS=$LIBS
> +      CFLAGS="$CFLAGS $WEBP_CFLAGS"
> +      LIBS="$LIBS $WEBP_LIBS"
> +
> +      AC_CHECK_FUNC([WebPGetInfo], [],
> +        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
> +	 HAVE_WEBP=no
> +	 AS_UNSET([WEBP_LIBS])
> +	 AS_UNSET([WEBP_CFLAGS])
> +	 EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
> +
> +      CFLAGS=$OLD_CFLAGS
> +      LIBS=$OLD_LIBS
> +
>         AC_SUBST([WEBP_CFLAGS])
>         AC_SUBST([WEBP_LIBS])
>      fi
>
> I'm not sure what pkg-config is doing here TBH, but it isn't very
> intuitive.
[configure.ac (application/pkix-attr-cert, attachment)]
[config.log (text/x-log, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 12:57:02 GMT) Full text and rfc822 format available.

Message #87 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Ugo Tomei <utomei <at> tiscali.it>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 08 Mar 2023 20:55:51 +0800
Ugo Tomei <utomei <at> tiscali.it> writes:

> hi,
>
> pkg-config/kinetic,now 0.29.2-1ubuntu3 amd64 [installato]
>
> with this patch compile well:
>
> lrwxrwxrwx 1 root root 13 mar  8 13:25 /usr/local/bin/emacs -> emacs-30.0.50
>
> attached log and configure.ac
>
> thanks, best regards
>
>
> Il 08/03/23 11:42, Po Lu ha scritto:
>> What if you try this instead?
>>
>> diff --git a/configure.ac b/configure.ac
>> index bc7e61048c3..ac93d003b70 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -2806,6 +2806,25 @@ AC_DEFUN
>>         WEBP_MODULE="libwebpdemux >= $WEBP_REQUIRED"
>>           EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])
>> +
>> +      # WebPGetInfo is sometimes not present inside libwebpdemux, so
>> +      # if it does not link, also check for libwebpdecoder.
>> +
>> +      OLD_CFLAGS=$CFLAGS
>> +      OLD_LIBS=$LIBS
>> +      CFLAGS="$CFLAGS $WEBP_CFLAGS"
>> +      LIBS="$LIBS $WEBP_LIBS"
>> +
>> +      AC_CHECK_FUNC([WebPGetInfo], [],
>> +        [WEBP_MODULE="$WEBP_MODULE libwebpdecoder >= $WEBP_REQUIRED"
>> +	 HAVE_WEBP=no
>> +	 AS_UNSET([WEBP_LIBS])
>> +	 AS_UNSET([WEBP_CFLAGS])
>> +	 EMACS_CHECK_MODULES([WEBP], [$WEBP_MODULE])])
>> +
>> +      CFLAGS=$OLD_CFLAGS
>> +      LIBS=$OLD_LIBS
>> +
>>         AC_SUBST([WEBP_CFLAGS])
>>         AC_SUBST([WEBP_LIBS])
>>      fi
>>
>> I'm not sure what pkg-config is doing here TBH, but it isn't very
>> intuitive.

Thanks.  Eli, if this works for you as well, I will install this on
Emacs 29 now.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61988; Package emacs. (Wed, 08 Mar 2023 14:25:02 GMT) Full text and rfc822 format available.

Message #90 received at 61988 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: utomei <at> tiscali.it, 61988 <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Wed, 08 Mar 2023 16:24:42 +0200
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  61988 <at> debbugs.gnu.org
> Date: Wed, 08 Mar 2023 20:55:51 +0800
> 
> Ugo Tomei <utomei <at> tiscali.it> writes:
> 
> > hi,
> >
> > pkg-config/kinetic,now 0.29.2-1ubuntu3 amd64 [installato]
> >
> > with this patch compile well:
> >
> > lrwxrwxrwx 1 root root 13 mar  8 13:25 /usr/local/bin/emacs -> emacs-30.0.50
> >
> > attached log and configure.ac
> >
> > thanks, best regards
> >
> 
> Thanks.  Eli, if this works for you as well, I will install this on
> Emacs 29 now.

Works.




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Wed, 06 Sep 2023 00:03:02 GMT) Full text and rfc822 format available.

Notification sent to Ugo Tomei <utomei <at> tiscali.it>:
bug acknowledged by developer. (Wed, 06 Sep 2023 00:03:02 GMT) Full text and rfc822 format available.

Message #95 received at 61988-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Po Lu <luangruo <at> yahoo.com>, utomei <at> tiscali.it, 61988-done <at> debbugs.gnu.org
Subject: Re: bug#61988: error compiling emacs
Date: Tue, 5 Sep 2023 17:01:56 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Thanks.  Eli, if this works for you as well, I will install this on
>> Emacs 29 now.
>
> Works.

It seems like this was fixed, so I'm closing this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 04 Oct 2023 11:24:43 GMT) Full text and rfc822 format available.

This bug report was last modified 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.