Closed NHOrus closed 1 month ago
diff with fix:
--- a/libgphoto2_port/libgphoto2_port/libgphoto2_port.ver 2024-03-28 06:27:36.576508646 +0000
+++ b/libgphoto2_port/libgphoto2_port/libgphoto2_port.ver 2024-03-28 06:28:09.394166837 +0000
@@ -71,7 +71,6 @@
# These are only supposed to be used by libgphoto2 internally.
LIBGPHOTO2_INTERNAL {
- gpi_gphoto_port_type_map;
gpi_enum_to_string;
gpi_string_to_enum;
gpi_string_to_flag;
--- a/libgphoto2_port/gphoto2/gphoto2-port-info-list.h 2024-03-28 06:27:36.577508636 +0000
+++ b/libgphoto2_port/gphoto2/gphoto2-port-info-list.h 2024-03-28 06:28:38.914859366 +0000
@@ -62,7 +62,6 @@
#ifdef _GPHOTO2_INTERNAL_CODE
#include <gphoto2/gphoto2-port-log.h>
-extern const StringFlagItem gpi_gphoto_port_type_map[];
#endif
int gp_port_info_new (GPPortInfo *info);
It can be triggered with GCC/binutils as well by putting -Wl,--no-undefined-version
on CFLAGS
. Yes, it would be nice to have this fixed.
Attempts to build libgphoto2 with clang fails with error:
libgphoto2-2.5.30, but persists in libgphoto2-2.5.31
NEWS said that gpi_gphoto_port_type_map was removed, but it apparently still exists in files https://github.com/gphoto/libgphoto2/blob/5f9f6c87189d3223fb26d2db9a6a1a825bda9cf2/libgphoto2_port/libgphoto2_port/libgphoto2_port.ver#L76 https://github.com/gphoto/libgphoto2/blob/5f9f6c87189d3223fb26d2db9a6a1a825bda9cf2/libgphoto2_port/gphoto2/gphoto2-port-info-list.h#L65
News of removal: https://github.com/gphoto/libgphoto2/blob/5f9f6c87189d3223fb26d2db9a6a1a825bda9cf2/NEWS#L1894