libxslt-1.1.29 failed to compile on Solaris Sparc / Inte
Fabrice Manfroi <[email protected]> Fri, 2 Dec 2016 10:42:44 +0100
| Newsgroups | gmane.comp.gnome.lib.xslt |
|---|---|
| Message-ID | <[email protected]> |
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. _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] https://mail.gnome.org/mailman/listinfo/xslt
fix-libxslt-1.1.29-build-solaris.patch
(text/x-patch, 1.8 KB)
From be3527803a1df31db2bfd78ffb40c5be60308aff Mon Sep 17 00:00:00 2001 From: Manfroi Fabrice <[email protected]> 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
signature.asc
(application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJYQUIYAAoJEN0L0qfi7nGTmawH/j2LnqqgQhk46cNOoyI2t1Yw /yd1owE88LY0VQURiNF1TPXa1GfCS/3FFvNc5v0Kkt8VKgfPC5ePjGJZFXKLcly5 zx3X6iSvYA2U05/wQ9N9nZxfcb/gCTfcC9NyoVLcXIqb/2VUrHb3luEIryP9bOdC ZySW/X0t+RDLkl50yNU/rNRxil/v/yhntV2Phl9QS9YDZBMwZSEI1WY9t3RjWclM uIoYKDX/osM6MbUsL4fFb7T9Vx+IJa5KpO1W4lHssgqvfPB0kvbJoPTp9ACF+0te 6k3KxDEgfJKaRqcPfMZwcwQ8s+omjMV1awTWlNo3cKdO98MAwMZZ1jPg6FMXDZQ= =Ajfg -----END PGP SIGNATURE-----