Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778584 - sys-power/nut-2.7.4-r6 - /.../ld: .libs/libnutscan.so: undefined reference to str_rtrim
Summary: sys-power/nut-2.7.4-r6 - /.../ld: .libs/libnutscan.so: undefined reference to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH, PullRequest, UPSTREAM
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-27 08:48 UTC by Toralf Förster
Modified: 2021-08-05 00:05 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.09 KB, text/plain)
2021-03-27 08:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,323.72 KB, text/plain)
2021-03-27 08:48 UTC, Toralf Förster
Details
environment (environment,132.22 KB, text/plain)
2021-03-27 08:48 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,41.23 KB, application/x-bzip)
2021-03-27 08:49 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,17.53 KB, application/x-bzip)
2021-03-27 08:49 UTC, Toralf Förster
Details
sys-power:nut-2.7.4-r6:20210327-074809.log (sys-power:nut-2.7.4-r6:20210327-074809.log,117.46 KB, text/plain)
2021-03-27 08:49 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,42.87 KB, application/x-bzip)
2021-03-27 08:49 UTC, Toralf Förster
Details
https://github.com/networkupstools/nut/pull/1001 (0001-drivers-Fix-undefined-references-with-slibtool.patch,7.88 KB, patch)
2021-03-27 19:50 UTC, orbea
Details | Diff
https://github.com/networkupstools/nut/pull/1001 (0001-drivers-Fix-undefined-references-with-slibtool.patch,2.42 KB, patch)
2021-03-27 23:06 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-27 08:48:54 UTC
rdlibtool: lconf: found "/var/tmp/portage/sys-power/nut-2.7.4-r6/work/nut-2.7.4/libtool".
rdlibtool: link: x86_64-pc-linux-gnu-gcc nut_scanner-nut-scanner.o ../../common/.libs/libcommon.a -I../../clients -I../../include -O2 -pipe -march=native -fno-diagnostics-color -fno-lto -Wall -Wsign-compare -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -L.libs -lnutscan -lltdl -lssl -lcrypto -lpthread -o .libs/nut-scanner
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libnutscan.so: undefined reference to `str_rtrim'
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1614: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 1934.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20210320-151517

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Mar 27 06:50:41 UTC 2021

emerge -qpvO sys-power/nut
[ebuild  N    ] sys-power/nut-2.7.4-r6  USE="(split-usr) ssl tcpd ups_drivers_al175 ups_drivers_apcsmart ups_drivers_apcsmart-old ups_drivers_apcupsd-ups ups_drivers_bcmxcp ups_drivers_bcmxcp_usb ups_drivers_belkin ups_drivers_belkinunv ups_drivers_bestfcom ups_drivers_bestfortress ups_drivers_bestuferrups ups_drivers_bestups ups_drivers_blazer_ser ups_drivers_blazer_usb ups_drivers_clone ups_drivers_clone-outlet ups_drivers_dummy-ups ups_drivers_etapro ups_drivers_everups ups_drivers_gamatronic ups_drivers_genericups ups_drivers_isbmex ups_drivers_ivtscd ups_drivers_liebert ups_drivers_liebert-esp2 ups_drivers_masterguard ups_drivers_metasys ups_drivers_mge-shut ups_drivers_mge-utalk ups_drivers_microdowell ups_drivers_nutdrv_qx ups_drivers_oldmge-shut ups_drivers_oneac ups_drivers_optiups ups_drivers_powercom ups_drivers_powerpanel ups_drivers_rhino ups_drivers_richcomm_usb ups_drivers_riello_ser ups_drivers_riello_usb ups_drivers_safenet ups_drivers_solis ups_drivers_tripplite ups_drivers_tripplite_usb ups_drivers_tripplitesu ups_drivers_upscode2 ups_drivers_usbhid-ups ups_drivers_victronups usb -cgi -ipmi (-selinux) -snmp -ups_drivers_netxml-ups -ups_drivers_nut-ipmipsu -ups_drivers_snmp-ups -xml -zeroconf"
Comment 1 Toralf Förster gentoo-dev 2021-03-27 08:48:55 UTC
Created attachment 694815 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-27 08:48:57 UTC
Created attachment 694818 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-27 08:48:58 UTC
Created attachment 694821 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-27 08:49:00 UTC
Created attachment 694824 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-27 08:49:01 UTC
Created attachment 694827 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-27 08:49:02 UTC
Created attachment 694830 [details]
sys-power:nut-2.7.4-r6:20210327-074809.log
Comment 7 Toralf Förster gentoo-dev 2021-03-27 08:49:04 UTC
Created attachment 694833 [details]
temp.tar.bz2
Comment 8 orbea 2021-03-27 19:50:29 UTC
Created attachment 695100 [details, diff]
https://github.com/networkupstools/nut/pull/1001

Patch applied against the upstream git, they have several instances undefined references in their drivers.
Comment 9 orbea 2021-03-27 23:06:23 UTC
Created attachment 695199 [details, diff]
https://github.com/networkupstools/nut/pull/1001

Updated more correct and cleaner patch against the upstream git that fixes the undefined references and passes upstream's travis CI.
Comment 10 orbea 2021-03-28 15:11:49 UTC
The undefined reference to str_rtrim seems to be an issue only in the old stable, not the current git repo.
Comment 11 orbea 2021-03-30 01:48:05 UTC
The PR was merged upstream. :)

https://github.com/networkupstools/nut/commit/a0328e384ad3fb230c2276c8b6dd9f2c47ac07fb
Comment 12 Larry the Git Cow gentoo-dev 2021-08-04 23:17:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a56c59f4e9869ff686227c848b4402a281974fb9

commit a56c59f4e9869ff686227c848b4402a281974fb9
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-05-04 14:16:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-04 23:17:48 +0000

    sys-power/nut: Fix for slibtool
    
    Thanks-to: orbea <orbea@riseup.net>
    Upstream: https://github.com/networkupstools/nut/commit/5d98d55
    Upstream: https://github.com/networkupstools/nut/commit/a0328e3
    Closes: https://bugs.gentoo.org/778584
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/20689
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-power/nut/files/nut-2.7.2-no-libdummy.patch | 13 ------
 sys-power/nut/files/nut-2.7.4-nut-scanner.patch | 35 ++++++++++++++
 sys-power/nut/files/nut-2.7.4-slibtool.patch    | 61 +++++++++++++++++++++++++
 sys-power/nut/nut-2.7.4-r7.ebuild               |  3 +-
 4 files changed, 98 insertions(+), 14 deletions(-)