Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913899 - dev-libs/libgpiod-1.6.3-r4[cxx] - [slibtool] /.../ld: ../.../libgpiodcxx.so: undefined reference to gpiod_line_get_value_bulk
Summary: dev-libs/libgpiod-1.6.3-r4[cxx] - [slibtool] /.../ld: ../.../libgpiodcxx.so: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL: https://github.com/brgl/libgpiod/pull/65
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2023-09-09 17:26 UTC by Toralf Förster
Modified: 2024-03-23 01:15 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.56 KB, text/plain)
2023-09-09 17:26 UTC, Toralf Förster
Details
dev-libs:libgpiod-1.6.3-r4:20230909-144310.log (dev-libs:libgpiod-1.6.3-r4:20230909-144310.log,54.10 KB, text/plain)
2023-09-09 17:26 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,65.56 KB, application/x-xz)
2023-09-09 17:26 UTC, Toralf Förster
Details
environment (environment,80.73 KB, text/plain)
2023-09-09 17:26 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,788 bytes, application/x-xz)
2023-09-09 17:26 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,34.87 KB, application/x-xz)
2023-09-09 17:27 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,8.39 KB, application/x-xz)
2023-09-09 17:27 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.39 KB, application/x-xz)
2023-09-09 17:27 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-09 17:26:53 UTC
too long lines were shrinked:

rdlibtool: lconf: openat(4,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 70, .st_ino = 4289774}.
rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = 4.
rdlibtool: lconf: found "/var/tmp/portage/dev-libs/libgpiod-1.6.3-r4/work/libgpiod-1.6.3/libtool".
rdlibtool: link: x86_64-pc-linux-gnu-g++ gpiodetectcxx.o -O2 -pipe -march=native -fno-diagnostics-color -lgpiodcxx -L../../../bindings/cxx/.libs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/gpiodetectcxx
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libgpiod.so.2, needed by ../../../bindings/cxx/.libs/libgpiodcxx.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ../../../bindings/cxx/.libs/libgpiodcxx.so: undefined reference to `gpiod_line_get_value_bulk'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ../../../bindings/cxx/.libs/libgpiodcxx.so: undefined reference to `gpiod_line_iter_free'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: ../../../bindings/cxx/.libs/libgpiodcxx.so: undefined reference to `gpiod_line_set_config_bulk'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20230903-190046

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.5
Available Rust versions:
  [1]   rust-bin-1.72.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.19_p7 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit 29dc521db6623af6ad90012910abf61bb3ecf03d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 9 13:32:06 2023 +0000

    2023-09-09 13:32:05 UTC

emerge -qpvO dev-libs/libgpiod
[ebuild  N    ] dev-libs/libgpiod-1.6.3-r4  USE="cxx tools -python -test"
Comment 1 Toralf Förster gentoo-dev 2023-09-09 17:26:54 UTC
Created attachment 870187 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-09 17:26:55 UTC
Created attachment 870188 [details]
dev-libs:libgpiod-1.6.3-r4:20230909-144310.log
Comment 3 Toralf Förster gentoo-dev 2023-09-09 17:26:57 UTC
Created attachment 870189 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-09-09 17:26:58 UTC
Created attachment 870190 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-09-09 17:26:59 UTC
Created attachment 870191 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-09 17:27:00 UTC
Created attachment 870192 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-09 17:27:01 UTC
Created attachment 870193 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-09-09 17:27:02 UTC
Created attachment 870194 [details]
temp.tar.xz
Comment 9 orbea 2024-03-06 00:28:43 UTC
Only reproducible if libgpiod is not installed.
Comment 10 Larry the Git Cow gentoo-dev 2024-03-23 01:15:31 UTC
The bug has been closed via the following commit(s):

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

commit 3b75d8e81ab8c79de75b24a93aa4498cca1d99a2
Author:     orbea <orbea@riseup.net>
AuthorDate: 2024-03-21 13:57:25 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2024-03-23 01:10:36 +0000

    dev-libs/libgpiod: link with libtool archives
    
    Prevents linking against the system version that might be already
    installed.
    
    Closes: https://bugs.gentoo.org/913899
    Upstream-PR: https://github.com/brgl/libgpiod/pull/65
    Upstream-Commit: https://github.com/brgl/libgpiod/commit/b10af6b0173e647b54834edff087a5811b6bcfe1
    Closes: https://github.com/gentoo/gentoo/pull/35854
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 dev-libs/libgpiod/files/libgpiod-2.1-libtool.patch | 66 ++++++++++++++++++++++
 dev-libs/libgpiod/libgpiod-2.1.ebuild              | 14 ++++-
 2 files changed, 78 insertions(+), 2 deletions(-)