Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919838 - media-libs/libgphoto2-2.5.31-r1 - [clang] ld.lld: error: version script assignment of LIBGPHOTO2_INTERNAL to symbol gpi_gphoto_port_type_map failed: symbol no
Summary: media-libs/libgphoto2-2.5.31-r1 - [clang] ld.lld: error: version script assig...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
: 919848 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-13 20:46 UTC by Toralf Förster
Modified: 2024-11-25 05:58 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.94 KB, text/plain)
2023-12-13 20:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,251.79 KB, text/plain)
2023-12-13 20:46 UTC, Toralf Förster
Details
environment (environment,111.17 KB, text/plain)
2023-12-13 20:46 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-13 20:46 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,35.96 KB, application/x-xz)
2023-12-13 20:46 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,19.14 KB, application/x-xz)
2023-12-13 20:46 UTC, Toralf Förster
Details
media-libs:libgphoto2-2.5.31-r1:20231213-090652.log (media-libs:libgphoto2-2.5.31-r1:20231213-090652.log,51.45 KB, text/plain)
2023-12-13 20:46 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,58.77 KB, application/x-xz)
2023-12-13 20:47 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,48.75 KB, application/x-xz)
2023-12-13 20:47 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.95 KB, application/x-xz)
2023-12-13 20:47 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-12-13 20:46:50 UTC
too long lines were shrinked:

libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port/libgphoto2_port -I.. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/wor
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port/libgphoto2_port -I.. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/wor
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port/libgphoto2_port -I..  -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port -I/var/tmp/portage/media-l
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port/libgphoto2_port -I.. -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgphoto2-2.5.31/libgphoto2_port -I/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/wor
/bin/sh ../libtool  --tag=CC   --mode=link clang  -O3 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -Wall -Wmissing-declarations -Wmissing-prototypes -no-undefined -Wl,--version-script=/var/tmp/portage/media-libs/libgphoto2-2.5.31-r1/work/libgp
libtool: link: clang -shared  -fPIC -DPIC  .libs/libgphoto2_port_la-gphoto2-port-info-list.o .libs/libgphoto2_port_la-gphoto2-port-locking.o .libs/libgphoto2_port_la-gphoto2-port-log.o .libs/libgphoto2_port_la-gphoto2-port-version.o .libs/libgphoto2_port_la-gphoto2-port.o .libs/libgphoto2_port_la-gp
ld.lld: error: version script assignment of 'LIBGPHOTO2_INTERNAL' to symbol 'gpi_gphoto_port_type_map' failed: symbol not defined
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [Makefile:543: libgphoto2_port.la] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang-20231210-041514

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit bf58b1b3727133b310e98bc35ef7813221a15775
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 13 08:18:56 2023 +0000

    2023-12-13 08:18:55 UTC

emerge -qpvO media-libs/libgphoto2
[ebuild  N    ] media-libs/libgphoto2-2.5.31-r1  USE="jpeg nls serial -doc -examples -exif -gd" ABI_X86="(64) -32 (-x32)" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801"
Comment 1 Toralf Förster gentoo-dev 2023-12-13 20:46:51 UTC
Created attachment 879162 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-13 20:46:53 UTC
Created attachment 879163 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-13 20:46:54 UTC
Created attachment 879164 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-13 20:46:56 UTC
Created attachment 879165 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-13 20:46:57 UTC
Created attachment 879166 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-13 20:46:58 UTC
Created attachment 879167 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-13 20:46:59 UTC
Created attachment 879168 [details]
media-libs:libgphoto2-2.5.31-r1:20231213-090652.log
Comment 8 Toralf Förster gentoo-dev 2023-12-13 20:47:01 UTC
Created attachment 879169 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-13 20:47:02 UTC
Created attachment 879170 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-13 20:47:03 UTC
Created attachment 879171 [details]
var.tmp.clang.tar.xz
Comment 11 Mart Raudsepp gentoo-dev 2024-02-17 16:04:19 UTC
*** Bug 919848 has been marked as a duplicate of this bug. ***
Comment 12 NHO 2024-03-27 22:43:59 UTC
Upstream bug report: https://github.com/gphoto/libgphoto2/issues/970
Comment 14 Larry the Git Cow gentoo-dev 2024-11-25 05:58:42 UTC
The bug has been closed via the following commit(s):

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

commit 663bb096f946951a7f5f1c39fac2d27a6f2ef6ab
Author:     Matt Jolly <kangie@gentoo.org>
AuthorDate: 2024-11-25 05:55:53 +0000
Commit:     Matt Jolly <kangie@gentoo.org>
CommitDate: 2024-11-25 05:58:32 +0000

    media-libs/libgphoto2: finish removing `gpi_gphoto_port_type_map`
    
    `gpi_gphoto_port_type_map` was removed upstream however it was
    still in use in several locations within the codebase.
    
    This caused build failures with Clang, or GCC with
    `-Wl,--no-undefined-version`.
    
    Closes: https://bugs.gentoo.org/919838
    Signed-off-by: Matt Jolly <kangie@gentoo.org>

 ...o2-2.5.31-remove-gpi_gphoto_port_type_map.patch | 31 ++++++++++++++++++++++
 media-libs/libgphoto2/libgphoto2-2.5.31-r2.ebuild  |  3 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)