unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55022: error compiling emacs 28.1
@ 2022-04-19  7:03 robin hankin
  2022-04-19 12:47 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: robin hankin @ 2022-04-19  7:03 UTC (permalink / raw)
  To: 55022

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

Ubuntu 20.04. I downloaded emacs-28.1.tar.gz and untarred it and changed
to the correct directory.  Then:

./configure
./make

configure finished without error.  But make failed:

[snip]
e[2]: Leaving directory '/home/rhankin/Downloads/emacs-28.1/admin/unidata'
make -C ../admin/unidata emoji-zwj.el
make[2]: Entering directory
'/home/rhankin/Downloads/emacs-28.1/admin/unidata'
make[2]: Nothing to be done for 'emoji-zwj.el'.
make[2]: Leaving directory
'/home/rhankin/Downloads/emacs-28.1/admin/unidata'
  CCLD     temacs
/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined
reference to `hb_ot_layout_script_select_language'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined
reference to `hb_blob_create_from_file'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined
reference to `hb_ot_var_named_instance_get_design_coords'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined
reference to `hb_ot_tags_from_script_and_language'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined
reference to `hb_ot_var_get_axis_infos'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined reference
to `hb_buffer_set_invisible_glyph'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined
reference to `hb_ot_metrics_get_position'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:647: temacs] Error 1
make[1]: Leaving directory '/home/rhankin/Downloads/emacs-28.1/src'
make: *** [Makefile:449: src] Error 2
rhankin@limpet:~/Downloads/emacs-28.1$

I would expect a successful ./configure to result in compilation, not an
error.



<hankin.robin@gmail.com>

[-- Attachment #2: Type: text/html, Size: 2353 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55022: error compiling emacs 28.1
  2022-04-19  7:03 bug#55022: error compiling emacs 28.1 robin hankin
@ 2022-04-19 12:47 ` Eli Zaretskii
       [not found]   ` <CAHHjBM4szURTD8+gfXGwAzevXKeCVsSd7AnNZOcP-qTibNy_-w@mail.gmail.com>
  2022-04-20 10:59 ` Lars Ingebrigtsen
  2022-05-18 18:04 ` Lars Ingebrigtsen
  2 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2022-04-19 12:47 UTC (permalink / raw)
  To: robin hankin; +Cc: 55022

> From: robin hankin <hankin.robin@gmail.com>
> Date: Tue, 19 Apr 2022 19:03:07 +1200
> 
> Ubuntu 20.04. I downloaded emacs-28.1.tar.gz and untarred it and changed
> to the correct directory.  Then:
> 
> ./configure
> ./make
> 
> configure finished without error.  But make failed:
> 
> [snip]
> e[2]: Leaving directory '/home/rhankin/Downloads/emacs-28.1/admin/unidata'
> make -C ../admin/unidata emoji-zwj.el
> make[2]: Entering directory '/home/rhankin/Downloads/emacs-28.1/admin/unidata'
> make[2]: Nothing to be done for 'emoji-zwj.el'.
> make[2]: Leaving directory '/home/rhankin/Downloads/emacs-28.1/admin/unidata'
>   CCLD     temacs
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_ot_layout_script_select_language'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_blob_create_from_file'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_ot_var_named_instance_get_design_coords'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_ot_tags_from_script_and_language'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_var_get_axis_infos'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined reference to `hb_buffer_set_invisible_glyph'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `hb_ot_metrics_get_position'
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:647: temacs] Error 1
> make[1]: Leaving directory '/home/rhankin/Downloads/emacs-28.1/src'
> make: *** [Makefile:449: src] Error 2
> rhankin@limpet:~/Downloads/emacs-28.1$ 

Emacs 28.1 doesn't call any of these functions.  Since the error
messages are triggered by libpangoft2-1.0.so, my guess would be that
your system has a misconfigured installation of Pango and HarfBuzz:
the former requires a (probably later?) version of HarfBuzz than the
HarfBuzz version actually installed.

So I think you should review the relevant libraries installed on your
system, and perhaps upgrade some of them.  Then try reconfiguring and
rebuilding Emacs.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55022: error compiling emacs 28.1
       [not found]   ` <CAHHjBM4szURTD8+gfXGwAzevXKeCVsSd7AnNZOcP-qTibNy_-w@mail.gmail.com>
@ 2022-04-20  5:44     ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2022-04-20  5:44 UTC (permalink / raw)
  To: robin hankin; +Cc: 55022

> From: robin hankin <hankin.robin@gmail.com>
> Date: Wed, 20 Apr 2022 07:29:53 +1200
> 
> OK, thanks for this.  But surely it is reasonable to expect ./configure  to detect such problems?

Not really: configure script usually tests for a library by calling
the pkg-config command, and even if it tries to build a test program
with the library, that test program definitely cannot call all of the
functions that Emacs does, and thus cannot find such problems with
100% probability.

> But, my
> main concern is to allow others who will encounter exactly the same problem [I use an unmodified ubuntu
> 20.04]  to see that they are not alone.

I'd suggest to report this to the Ubuntu package maintainers: it
sounds like their packaging has some problem.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55022: error compiling emacs 28.1
  2022-04-19  7:03 bug#55022: error compiling emacs 28.1 robin hankin
  2022-04-19 12:47 ` Eli Zaretskii
@ 2022-04-20 10:59 ` Lars Ingebrigtsen
  2022-04-20 12:29   ` Eli Zaretskii
  2022-05-18 18:04 ` Lars Ingebrigtsen
  2 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-20 10:59 UTC (permalink / raw)
  To: robin hankin; +Cc: 55022

robin hankin <hankin.robin@gmail.com> writes:

> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_ot_layout_script_select_language'

Like Eli says, this sounds like it could be a bug in Ubuntu 20.04, but
perhaps we could work around it anyway.  I don't have system with that
OS available here -- do you know what library defines
hb_ot_layout_script_select_language?  And if so, does altering the
configure script to include that library (with -lthat-library) fix the
build issue?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55022: error compiling emacs 28.1
  2022-04-20 10:59 ` Lars Ingebrigtsen
@ 2022-04-20 12:29   ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2022-04-20 12:29 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: hankin.robin, 55022

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Wed, 20 Apr 2022 12:59:31 +0200
> Cc: 55022@debbugs.gnu.org
> 
> do you know what library defines
> hb_ot_layout_script_select_language?

All the hb_* functions are from HarfBuzz.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#55022: error compiling emacs 28.1
  2022-04-19  7:03 bug#55022: error compiling emacs 28.1 robin hankin
  2022-04-19 12:47 ` Eli Zaretskii
  2022-04-20 10:59 ` Lars Ingebrigtsen
@ 2022-05-18 18:04 ` Lars Ingebrigtsen
  2 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-18 18:04 UTC (permalink / raw)
  To: robin hankin; +Cc: 55022

robin hankin <hankin.robin@gmail.com> writes:

> /usr/bin/ld: /lib/x86_64-linux-gnu/libpango-1.0.so.0: undefined reference to
> `hb_buffer_set_invisible_glyph'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_ot_metrics_get_position'

I found an Ubuntu 20.04 system here, and Emacs built fine by default.

I tried removing libharfbuzz-dev manually, and I then got this warning:

configure: WARNING: This configuration uses the Cairo graphics library,
    but not the HarfBuzz font shaping library (minimum version 0.9.42).
    We recommend the use of HarfBuzz when using Cairo, please install
    appropriate HarfBuzz development packages.

But Emacs still built fine.

So I think it sounds likely that your system is somewhat broken in one
way or another, and there's not much that can be done on the Emacs side
here, so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-18 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19  7:03 bug#55022: error compiling emacs 28.1 robin hankin
2022-04-19 12:47 ` Eli Zaretskii
     [not found]   ` <CAHHjBM4szURTD8+gfXGwAzevXKeCVsSd7AnNZOcP-qTibNy_-w@mail.gmail.com>
2022-04-20  5:44     ` Eli Zaretskii
2022-04-20 10:59 ` Lars Ingebrigtsen
2022-04-20 12:29   ` Eli Zaretskii
2022-05-18 18:04 ` Lars Ingebrigtsen

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).