[MacPorts] #61598: nut @2.7.4: Undefined symbols

MacPorts noreply at macports.org
Fri Oct 15 19:50:13 UTC 2021


#61598: nut @2.7.4: Undefined symbols
---------------------+--------------------
  Reporter:  AP1010  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.6.4
Resolution:          |   Keywords:  bigsur
      Port:  nut     |
---------------------+--------------------

Comment (by cooljeanius):

 A bit more context showing the compile command:
 {{{
 /bin/sh ../../libtool  --tag=CC   --mode=link /usr/bin/clang
 -I../../clients -I../../include  -I../../drivers -I/opt/local/include/nss
 -I/opt/local/include/nspr -I/opt/local/include/libusb-1.0
 -I/opt/local/include/neon -D_REENTRANT  -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch
 x86_64 -Wall -Wsign-compare  -version-info 1:0:0 -L/opt/local/lib
 -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -arch x86_64 -o libnutscan.la -rpath /opt/local/lib 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
 -L/opt/local/lib/nss -L/opt/local/lib/nspr -L/opt/local/lib -lssl3
 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4
 libtool: link: /usr/bin/clang -dynamiclib  -o .libs/libnutscan.1.dylib
 .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
 -L/opt/local/lib -lltdl -L/opt/local/lib/nss -L/opt/local/lib/nspr -lssl3
 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4  -Os -arch x86_64
 -Wl,-headerpad_max_install_names -Wl,-syslibroot
 -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64
 -install_name  /opt/local/lib/libnutscan.1.dylib -compatibility_version 2
 -current_version 2.0 -Wl,-single_module
 Undefined symbols for architecture x86_64:
   "_str_rtrim", referenced from:
       _nutscan_scan_usb in libnutscan_la-scan_usb.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make[3]: *** [libnutscan.la] Error 1
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nut/nut/work/nut-2.7.4/tools
 /nut-scanner'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nut/nut/work/nut-2.7.4/tools
 /nut-scanner'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nut/nut/work/nut-2.7.4/tools'
 make: *** [all-recursive] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nut/nut/work/nut-2.7.4'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_nut/nut/work/nut-2.7.4"
 && /usr/bin/make -j16 -w all
 Exit code: 2
 Error: Failed to build nut: command execution failed
 DEBUG: Error code: CHILDSTATUS 55526 2
 }}}
 So, yes, libtool.

-- 
Ticket URL: <https://trac.macports.org/ticket/61598#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list