HomeFreeBSD

graphics/libgphoto2: fix build with lld 17

Description

graphics/libgphoto2: fix build with lld 17

Building graphics/libgphoto2 with lld 17 results in the following link
error:

libtool: link: cc -shared  -fPIC -DPIC  .libs/libgphoto2_port_la-gphoto2-port-info-list.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-gphoto2-port-portability.o .libs/libgphoto2_port_la-gphoto2-port-result.o   -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libltdl.so -lintl -lpthread -lregex  -O2 -fstack-protector-strong -Wl,--version-script=./libgphoto2_port.ver -fstack-protector-strong -Wl,-rpath -Wl,/usr/local/lib   -Wl,-soname -Wl,libgphoto2_port.so.12 -o .libs/libgphoto2_port.so.12.0.0
ld: error: version script assignment of 'LIBGPHOTO2_INTERNAL' to symbol 'gpi_gphoto_port_type_map' failed: symbol not defined
cc: error: linker command failed with exit code 1 (use -v to see invocation)

The mentioned symbol has been removed from libgphoto2 a long time ago,
so remove it from the linker version script.

PR: 274334
Approved by: maintainer timeout (2 weeks)
MFH: 2023Q4

Details

Provenance
dimAuthored on Oct 7 2023, 2:54 PM
Parents
R11:c15b222f749d: mail/nextcloud-mail: Update to 3.4.3
Branches
Unknown
Tags
Unknown