After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 602728 - Linker Error with SunStudio 12u1 on Solaris/Sparc64 and OpenSolaris/amd64
Linker Error with SunStudio 12u1 on Solaris/Sparc64 and OpenSolaris/amd64
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.7.3
Other opensolaris
: Normal critical
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-23 13:57 UTC by rehsack
Modified: 2021-07-05 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rehsack 2009-11-23 13:57:49 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 ;)
Comment 1 GNOME Infrastructure Team 2021-07-05 13:24:33 UTC
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.