Bug 254172 - sysutils/nut-devel 2021.03.02 build failure during linking on FreeBSD 12.2S
Summary: sysutils/nut-devel 2021.03.02 build failure during linking on FreeBSD 12.2S
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-09 21:26 UTC by dewayne
Modified: 2021-03-09 22:12 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2021-03-09 21:26:43 UTC
On # uname -aKU
FreeBSD b2.hs 12.2-STABLE FreeBSD 12.2-STABLE #0 r368820M: Wed Jan  6 00:20:53 AEDT 2021     root@hathor:/usr/obj/prod/120203/D/K8/smallblocks/src/amd64.amd64/sys/hqdev-amd64-smp-vga amd64 1202504 1202504

Build failure as follows:

/usr/bin/ld: cppunittest-cpputest.o: in function `main':
cpputest.cpp:(.text+0xac): undefined reference to `CppUnit::TestFactoryRegistry::getRegistry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
/usr/bin/ld: cpputest.cpp:(.text+0x209): undefined reference to `CppUnit::CompilerOutputter::CompilerOutputter(CppUnit::TestResultCollector*, std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
/usr/bin/ld: cpputest.cpp:(.text+0x2bd): undefined reference to `CppUnit::TextTestRunner::run(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, bool, bool)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:715: cppunittest] Error 1
gmake[2]: Leaving directory '/var/ports/usr/ports/sysutils/nut-devel/work/nut-8ba451ec/tests'
gmake[1]: *** [Makefile:551: all-recursive] Error 1
gmake[1]: Leaving directory '/var/ports/usr/ports/sysutils/nut-devel/work/nut-8ba451ec'

# make -C /usr/ports/sysutils/nut-devel showconfig |grep =on
     DOCS=on: Build and/or install documentation
     USB=on: USB support
     IPMI_OFF=on: No IPMI support
     SSL_OFF=on: No SSL support

I attempted to build with all default options using:
# make __MAKE_CONF=/devl/null -C /usr/ports/sysutils/nut-devel -DBATCH clean package

resulting in:
configure: error: Net-SNMP libraries not found, required for SNMP drivers
===>  Script "configure" failed unexpectedly.
Please report the problem to cy@FreeBSD.org [maintainer] and attach the


No change to build environment from 2021.01.28, which I've reverted to and builds cleanly.
Comment 1 dewayne 2021-03-09 22:12:21 UTC
(In reply to dewayne from comment #0)
Unfortunately this problem occurs with reverts back to 2021.01.08. My last successful build was 
-rw-r-----  1 root  wheel   653K 11 Feb 06:21 /packages/K8/All/nut-devel-2021.01.28.txz

Clearly something has changed and requires more investigation.  Rather than perhaps waste anyone's time, I'm closing this.