Source: nut
Version: 2.4.2-3
Severity: important
Justification: fails to build from source (but built successfully in the past)

Builds of nut on systems with libltdl-dev installed fail:

  /bin/bash ../../libtool  --tag=CC   --mode=link gcc -I../../clients 
-I../../include  -I../../drivers -I/usr/include/nss -I/usr/include/nspr  
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -fstack-protector-strong 
-Wformat -Werror=format-security -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux 
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/lib/sparc64-linux-gnu/perl/5.22/CORE -Wdate-time -D_FORTIFY_SOURCE=2 
-I/usr/include -I/usr/include/neon   -g -O2 -fPIE -fstack-protector-strong 
-Wformat -Werror=format-security -Wall -Wsign-compare  -version-info 1:0:0 
-fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o 
libnutscan.la -rpath /lib/sparc64-linux-gnu libnutscan_la-scan_nut.lo 
libnutscan_la-scan_ipmi.lo libnutscan_la-nutscan-device.lo 
libnutscan_la-nutscan-ip.lo libnutscan_la-nutscan-display.lo 
libnutscan_la-nutscan-init.lo libnutscan_la-scan_usb.lo libnutscan_la-scan_snmp
 .lo libnutscan_la-scan_xml_http.lo libnutscan_la-scan_avahi.lo 
libnutscan_la-scan_eaton_serial.lo libnutscan_la-nutscan-serial.lo 
../../drivers/libnutscan_la-serial.lo ../../drivers/libnutscan_la-bcmxcp_ser.lo 
../../common/libnutscan_la-common.lo  -lltdl  -lnss3 -lnssutil3 -lsmime3 -lssl3 
-lplds4 -lplc4 -lnspr4 -lpthread 
  libtool: link: gcc -shared  -fPIC -DPIC  .libs/libnutscan_la-scan_nut.o 
.libs/libnutscan_la-scan_ipmi.o .libs/libnutscan_la-nutscan-device.o 
.libs/libnutscan_la-nutscan-ip.o .libs/libnutscan_la-nutscan-display.o 
.libs/libnutscan_la-nutscan-init.o .libs/libnutscan_la-scan_usb.o 
.libs/libnutscan_la-scan_snmp.o .libs/libnutscan_la-scan_xml_http.o 
.libs/libnutscan_la-scan_avahi.o .libs/libnutscan_la-scan_eaton_serial.o 
.libs/libnutscan_la-nutscan-serial.o ../../drivers/.libs/libnutscan_la-serial.o 
../../drivers/.libs/libnutscan_la-bcmxcp_ser.o 
../../common/.libs/libnutscan_la-common.o   -Wl,--as-needed 
/usr/lib/sparc64-linux-gnu/libltdl.so -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 
-lplc4 -lnspr4 -lpthread  -g -O2 -fstack-protector-strong -g -O2 
-fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs 
-Wl,-O1   -Wl,-soname -Wl,libnutscan.so.1 -o .libs/libnutscan.so.1.0.0
  .libs/libnutscan_la-scan_usb.o: In function `nutscan_scan_usb':
  /<<PKGBUILDDIR>>/tools/nut-scanner/scan_usb.c:207: undefined reference to 
`str_rtrim'
  /<<PKGBUILDDIR>>/tools/nut-scanner/scan_usb.c:197: undefined reference to 
`str_rtrim'
  /<<PKGBUILDDIR>>/tools/nut-scanner/scan_usb.c:188: undefined reference to 
`str_rtrim'
  collect2: error: ld returned 1 exit status
  Makefile:562: recipe for target 'libnutscan.la' failed

libltdl-dev is not (yet?) a build dependency of nut, so minimal build
chroots shouldn't have it, but many real-world development
environments do.  (So did the sparc64 autobuilder landau3.)

It looks like this error should be simple to fix by linking libcommon
into libnutscan, so you might want to consider pushing forward here by
not only accommodating but also actively requiring libltdl-dev.

Thanks!

Reply via email to