emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failed to compile the emacs latest git master version on Ubuntu 20.1


From: Hongyi Zhao
Subject: Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
Date: Fri, 11 Dec 2020 05:36:41 -0500

On Fri, Dec 11, 2020 at 5:10 AM Gregory Heytings <ghe@sdf.org> wrote:
>
>
> >
> > On Ubuntu 20.10, I try to compile the emacs latest git master version
> > but meet the following error:
> >
> > /usr/bin/ld: 
> > /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
> > undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
> > /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
> > DSO missing from command line
> > collect2: error: ld returned 1 exit status
> > make[1]: *** [Makefile:655: temacs] Error 1
> > make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
> > make: *** [Makefile:424: src] Error 2
> >
> > Any hints for fixing this problem?
> >
>
> Your libthai library is apparently not recent enough for your libm17n
> library.  "apt update && apt install libthai0" should fix this.

I've installed the latest version of the above package as shown below
but still meet the same error message:

$ dpkg -l libthai0 | grep ^ii
ii  libthai0:amd64 0.1.28-3     amd64        Thai language support library

Furthermore, I compiled and installed the latest git master version of
libthai. See following for more info.

$ git clone https://github.com/tlwg/libthai.git tlwg/libthai.git
$ sudo apt-get build-dep libthai
$ cd tlwg/libthai.git
$ ./autogen.sh
$ ./configure
$ make -j44
$ sudo make install

Then rebuild emacs from scratch but still will meet the same error as
shown below:

/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
/usr/bin/ld: /usr/local/lib/libthai.so.0: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:655: temacs] Error 1
make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
make: *** [Makefile:424: src] Error 2

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

[Prev in Thread] Current Thread [Next in Thread]