Re: Fwd: libxslt-1.1.26 compile error on Solaris SPARC

Owais Khan <[email protected]>
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
Thank you Thomas.

With the help of your article and patch I have compiled following 

libxml2-2.7.8
libxslt-1.1.26
On 
SunOS unknown 5.10 Generic_137138-09 i86pc i386 i86pc
Using 
Sun Studio 12.2

Following are steps for anyone looking for exact help.

Reference taken from

http://old.nabble.com/libxslt-1.1.26-compile-error-on-Solaris-SPARC-td31700709.html

Applied patch in configure, configure.in and libxml2.sym
./configure CC="cc -m64 -KPIC" LDFLAGS=-L/opt/libxml2-2.7.8/inst/lib
--prefix=/opt/libxslt-1.1.26/inst
Applied patch in configure,configure.in and libxslt2.sym
./configure CC="cc -m64 -KPIC" --prefix=/opt/libxml2-2.7.8/inst 
--exec-prefix=/opt/libxml2-2.7.8/inst

Thanks & Regards,
Owais


Floodeenjr, Thomas wrote:
> 
> Hello,
> 
> I fixed this in my Solaris builds by removing the VERSION_SCRIPT_FLAGS
> from the configure script for Solaris in both the libxml2 and the libxslt
> builds:
> 
> libxml2:
> 
> VERSION_SCRIPT_FLAGS=
> # lt_cv_prog_gnu_ld is from libtool 2.+
> if test "$lt_cv_prog_gnu_ld" = yes; then
>   VERSION_SCRIPT_FLAGS=-Wl,--version-script=
> else
>   case $host in
> #  *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
>   *-*-sunos*) VERSION_SCRIPT_FLAGS="";;
>   esac
> fi
> 
> 
> libxslt:
> 
> 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=""
> #    VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
> 
> 
> In addition, I modifed the libxml2.syms & libxslt.syms files. (Diff the
> attachments with the files from the dictribution.)
> 
> -Tom
> 
> Thomas Floodeen, Jr.
> Mentor Graphics BSD
> 720.494.1133
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of
> Mauricio Gonzalez
> Sent: Thursday, May 26, 2011 8:31 AM
> To: [email protected]
> Cc: [email protected]
> Subject: [xslt] Fwd: libxslt-1.1.26 compile error on Solaris SPARC
> 
> Hello,
> 
> I'm trying to compile libxslt-1.1.26 on a SPARC station
> (sparc-sun-solaris2.9).  I have already read the FAQ, the mail archives
> and the registered bugs.
> 
> command "make" produces the following error:
> 
> libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libxslt.so.1 -o
> .libs/libxslt.so.1.1.26  .libs/attrvt.o .libs/xslt.o .libs/xsltlocale.o
> .libs/xsltutils.o .libs/pattern.o .libs/templates.o .libs/variables.o
> .libs/keys.o .libs/numbers.o .libs/extensions.o .libs/extra.o
> .libs/functions.o .libs/namespaces.o .libs/imports.o .libs/attributes.o
> .libs/documents.o .libs/preproc.o .libs/transform.o .libs/security.o  
> -R/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib
> /usr/lib/libxml2.so -L/usr/local/lib -L/usr/openwin/lib
> -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -ldl -lz -lpthread
> /usr/local/lib/libiconv.so -lsocket -lnsl -lm -lc  -Wl,-M
> -Wl,./libxslt.syms Undefined                       first referenced
>  symbol                             in file _fini
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/crti.o  (symbol has no
> version assigned) _init
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/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) __dso_handle
> /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/crtbegin.o  (symbol has no
> version assigned) xsltPointerListClear                ./libxslt.syms
> xsltParseAnyXSLTElem                ./libxslt.syms
> xsltRestoreDocumentNamespaces       ./libxslt.syms xsltXSLTAttrMarker    
>              ./libxslt.syms xsltTransStorageRemove            
>  ./libxslt.syms _lib_version                      
>  /usr/ccs/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
> ld: fatal: Symbol referencing errors. No output written to
> .libs/libxslt.so.1.1.26
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `libxslt.la'
> Current working directory
> /home/pproc/ZOE_SERVICE_ACTIVATOR/lib/libxslt-1.1.26/libxslt
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory
> /home/pproc/ZOE_SERVICE_ACTIVATOR/lib/libxslt-1.1.26
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected]
> http://mail.gnome.org/mailman/listinfo/xslt
> 
>  
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> [email protected]
> http://mail.gnome.org/mailman/listinfo/xslt
> 
> 

-- 
View this message in context: http://old.nabble.com/libxslt-1.1.26-compile-error-on-Solaris-SPARC-tp31700709p32059524.html
Sent from the Gnome - Lib - Xslt mailing list archive at Nabble.com.

_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.