GNOME Bugzilla – Bug 602728
Linker Error with SunStudio 12u1 on Solaris/Sparc64 and OpenSolaris/amd64
Last modified: 2021-07-05 13:24:33 UTC
A very strange linker flag for SunOS has been introduced (I've seen first on 2.7.3 - but I didn't do each update on Solaris): test "`uname`" == "SunOS" && \ VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," Having a look at the linker manpage of ld(1): User Commands ld(1) [...] -M mapfile Reads mapfile as a text file of directives to ld. This option can be specified multiple times. If mapfile is a directory, then all regular files, as defined by stat(2), within the directory are processed. See the Linker and Libraries Guide for a description of map- files. Example mapfiles are provided in /usr/lib/ld. See FILES. [...] SunOS 5.10 Last change: 13 Dec 2007 8 So I patched it out until I get an explanation what it really means: $NetBSD: patch-ai,v 1.3 2009/11/22 14:05:26 sno Exp $ --- configure.in.orig Mon Nov 16 17:18:38 2009 +++ configure.in Mon Nov 16 17:20:27 2009 @@ -74,8 +74,6 @@ VERSION_SCRIPT_FLAGS= $(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \ VERSION_SCRIPT_FLAGS=-Wl,--version-script= -test "`uname`" == "SunOS" && \ - VERSION_SCRIPT_FLAGS="-Wl,-M -Wl," AC_SUBST(VERSION_SCRIPT_FLAGS) AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"]) Please be aware, that shell comparison must use '=' instead of '==' - especially on SunOS ;)
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.