Hello,

I'm trying to build the last libxslt 1.1.2 on Solaris 10 Sparc with
solaris studio 12.3 but it fails with the following link errors:

----------

Undefined               first referenced

 symbol                     in file

_fini                               /opt/SUNWspro/prod/lib/crti.o
(symbol has no version assigned)

_init                               /opt/SUNWspro/prod/lib/crti.o
(symbol has no version assigned)

xsltPointerListFree                 ./libxslt.syms

xsltCopyTree                        .libs/transform.o  (symbol has no
version assigned)

xsltTransStorageAdd                 ./libxslt.syms

xsltPointerListCreate               ./libxslt.syms

xsltPointerListAddSize              ./libxslt.syms

xsltParseSequenceConstructor        ./libxslt.syms

xsltComputingGlobalVarMarker        .libs/variables.o  (symbol has no
version assigned)

xsltPointerListClear                ./libxslt.syms

xsltParseAnyXSLTElem                ./libxslt.syms

xsltRestoreDocumentNamespaces       ./libxslt.syms

xsltXSLTAttrMarker                  ./libxslt.syms

xsltTransStorageRemove              ./libxslt.syms

_lib_version                        /opt/SUNWspro/prod/lib/values-xa.o
(symbol has no version assigned)

xsltDefaultTrace                    .libs/transform.o  (symbol has no
version assigned)

xsltStyleStylesheetLevelGetExtData  ./libxslt.syms

xsltConstNamespaceNameXSLT          ./libxslt.syms

xsltMatchPattern                    ./libxslt.syms

----------

It seems there is a problem with the ./libxslt.syms and the Sun linker.

I made a small patch (in attachement) in order to temporary fix the
problem for my needs, but I hope that someone can point me to a better
way to adress this issue.

Best Regards.
From be3527803a1df31db2bfd78ffb40c5be60308aff Mon Sep 17 00:00:00 2001
From: Manfroi Fabrice <f...@4js.com>
Date: Fri, 2 Dec 2016 09:17:58 +0100
Subject: [PATCH] fix libxslt 1.1.29 build solaris

  * Fix libxslt build on Solaris platforms
---
 lib-xmlsoft-libxslt/src/configure    | 9 ++++++++-
 lib-xmlsoft-libxslt/src/configure.in | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/lib-xmlsoft-libxslt/src/configure b/lib-xmlsoft-libxslt/src/configure
index c190661..2980e9e 100755
--- a/lib-xmlsoft-libxslt/src/configure
+++ b/lib-xmlsoft-libxslt/src/configure
@@ -13585,7 +13585,14 @@ VERSION_SCRIPT_FLAGS=none
 if $LD --help 2>&1 | grep "version-script" >/dev/null 2>/dev/null; then
     VERSION_SCRIPT_FLAGS=-Wl,--version-script=
 elif $LD --help 2>&1 | grep "M mapfile" >/dev/null 2>/dev/null; then
-    VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
+    case $host_os in
+      solaris* )
+        VERSION_SCRIPT_FLAGS=""
+    ;;
+    * )
+        VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
+    ;;
+    esac
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_SCRIPT_FLAGS" >&5
 $as_echo "$VERSION_SCRIPT_FLAGS" >&6; }
diff --git a/lib-xmlsoft-libxslt/src/configure.in b/lib-xmlsoft-libxslt/src/configure.in
index 8bdf45a..c5a4a0f 100755
--- a/lib-xmlsoft-libxslt/src/configure.in
+++ b/lib-xmlsoft-libxslt/src/configure.in
@@ -135,7 +135,14 @@ VERSION_SCRIPT_FLAGS=none
 if $LD --help 2>&1 | grep "version-script" >/dev/null 2>/dev/null; then
     VERSION_SCRIPT_FLAGS=-Wl,--version-script=
 elif $LD --help 2>&1 | grep "M mapfile" >/dev/null 2>/dev/null; then
-    VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
+    case $host_os in
+      solaris* )
+        VERSION_SCRIPT_FLAGS=""
+    ;;
+    * )
+        VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
+    ;;
+    esac
 fi
 AC_MSG_RESULT([$VERSION_SCRIPT_FLAGS])
 AC_SUBST(VERSION_SCRIPT_FLAGS)
-- 
2.1.4

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
https://mail.gnome.org/mailman/listinfo/xslt

Reply via email to