bug-texinfo
[Top][All Lists]
Advanced

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

Link failure


From: Ken Brown
Subject: Link failure
Date: Wed, 24 Nov 2021 09:56:00 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

Building the current git HEAD on Cygwin (and probably some other platforms) fails with link errors:

libtool: link: gcc -shared .libs/MiscXS.o .libs/misc.o -L/usr/lib/perl5/5.32/x86_64-cygwin-threads/CORE -lperl -ggdb -O2 -fstack-protector-strong -O3 -o .libs/MiscXS.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/MiscXS.dll.a /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: .libs/misc.o: in function `xs_abort_empty_line':
/home/kbrown/src/texinfo/tp/Texinfo/XS/misc.c:74: undefined reference to 
`rpl_free'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: .libs/misc.o: in function `xs_merge_text':
/home/kbrown/src/texinfo/tp/Texinfo/XS/misc.c:261: undefined reference to 
`rpl_free'

The following patch fixes it:

diff --git a/tp/Texinfo/XS/Makefile.am b/tp/Texinfo/XS/Makefile.am
index 999fda1ff5..624983939c 100644
--- a/tp/Texinfo/XS/Makefile.am
+++ b/tp/Texinfo/XS/Makefile.am
@@ -53,6 +53,7 @@ TestXS_la_SOURCES = TestXS.c ppport.h

 xs_LTLIBRARIES += MiscXS.la
 MiscXS_la_SOURCES = MiscXS.c misc.c miscxs.h ppport.h
+MiscXS_la_LIBADD = $(builddir)/gnulib/lib/libgnu.la


 # TestXS.la has to be included in xs_LIBRARIES, and not noinst_LIBRARIES,

Ken



reply via email to

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