Source: checkinstall
Version: 1.6.2+git20170426.d24a630-4
Severity: normal
Tags: ftbfs patch

Dear Maintainer,

Build fails here:
./test-installwatch: symbol lookup error: 
/<<PKGBUILDDIR>>/debian/testtmp/lib/installwatch.so: undefined symbol: $$dyncall

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=checkinstall&arch=hppa&ver=1.6.2%2Bgit20170426.d24a630-4&stamp=1698618502&raw=0

The attached patch fixes the build on hppa.  Don't know if it's okay
to link against libgcc.a everywhere.

Regards,
Dave Anglin

-- System Information:
Debian Release: trixie/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 6.1.60+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
--- ./installwatch/Makefile.save        2023-10-30 20:38:12.966959364 +0000
+++ ./installwatch/Makefile     2023-10-30 20:52:24.243251043 +0000
@@ -13,10 +13,12 @@
 BINDIR=$(PREFIX)/bin
 LIBDIR=$(PREFIX)/lib
 
+LIBGCC=`gcc -print-libgcc-file-name`
+
 all: installwatch.so
 
 installwatch.so: installwatch.o
-       ld -znow -shared -o installwatch.so installwatch.o -ldl -lc
+       ld -znow -shared -o installwatch.so installwatch.o -ldl -lc $(LIBGCC)
 
 installwatch.o: installwatch.c localdecls.h
        gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -c -g -D_GNU_SOURCE -DPIC 
-fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c

Reply via email to