unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Ugo Tomei <utomei@tiscali.it>
Cc: 61988@debbugs.gnu.org
Subject: bug#61988: error compiling emacs
Date: Mon, 06 Mar 2023 08:20:08 +0800	[thread overview]
Message-ID: <874jqyspc7.fsf@yahoo.com> (raw)
In-Reply-To: <e62c1119-7a5c-bcba-d417-494462b82cf7@tiscali.it> (Ugo Tomei's message of "Sun, 5 Mar 2023 12:23:22 +0100")

Ugo Tomei <utomei@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@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.

  parent reply	other threads:[~2023-03-06  0:20 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-05 11:23 bug#61988: error compiling emacs Ugo Tomei
2023-03-05 19:41 ` Eli Zaretskii
2023-03-06  9:10   ` Ugo Tomei
2023-03-06  0:20 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-03-06  9:38   ` Ugo Tomei
2023-03-06 10:35     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-06 12:08       ` Eli Zaretskii
2023-03-06 13:43         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-06 15:38           ` Eli Zaretskii
2023-03-07  0:34             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-07  3:38               ` Eli Zaretskii
2023-03-07  5:03                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-07 13:00                   ` Eli Zaretskii
2023-03-07 13:36                     ` bug#61988: R: " Ugo Tomei
2023-03-07 14:11                       ` Eli Zaretskii
2023-03-07 14:34                         ` bug#61988: R: " Ugo Tomei
2023-03-07 15:27                           ` Eli Zaretskii
2023-03-07 16:21                             ` Eli Zaretskii
2023-03-07 16:44                         ` bug#61988: R: " Ugo Tomei
2023-03-07 16:59                           ` Eli Zaretskii
2023-03-08  0:09                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-08  8:32                               ` Ugo Tomei
2023-03-08  9:02                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-08  9:44                                   ` Ugo Tomei
2023-03-08 10:42                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-08 12:26                                       ` Ugo Tomei
2023-03-08 12:55                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-08 14:24                                           ` Eli Zaretskii
2023-09-06  0:01                                             ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jqyspc7.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=61988@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=utomei@tiscali.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).