Netatalk / netatalk

Netatalk is a Free and Open Source AFP fileserver. A *NIX or BSD system running Netatalk is capable of serving many Macintosh clients simultaneously as an AppleShare file server.
https://netatalk.io
GNU General Public License v2.0
335 stars 86 forks source link

Conflicting library warnings on NetBSD #960

Open rdmark opened 4 months ago

rdmark commented 4 months ago

With the latest main when building on NetBSD with either build system. Raising a ticket to confirm that it's an existing non-critical issue and not introduced with recent changes.

localhost$ ninja -C build
ninja: Entering directory `build'
[161/232] Linking target etc/afpd/afpd
ld: warning: libintl.so.1, needed by /usr/pkg/lib/libglib-2.0.so, may conflict with libintl.so.8
[232/232] Generating distrib/initscripts/netbsd with a custom command (wrapped by meson to capture output)
rdmark commented 2 months ago

It's not wrong. My NetBSD 9.3 VM has both shared libraries...

localhost$ find / -name libintl.so.1 2> /dev/null
/usr/lib/libintl.so.1
localhost$ find / -name libintl.so.8 2> /dev/null
/usr/pkg/lib/libintl.so.8
rdmark commented 2 months ago

Akin to https://community.ibm.com/community/user/power/discussion/libintlalibintlso8-conflict

It seems the NetBSD OS has one stock gettext library, and then pkg installs another one as a dependency for dbus-glib, and the linker finds both... :/

I tried to test afpstats end to end, but pkg_add doesn't set up dbus properly on NetBSD 10.0. I'll try to manually configure debus at a later time.