Re: [xml] Building libxml2 on solaris
- From: Roland Mainz <roland mainz nrubsig org>
- To: Rachael Churchill <rachael churchill linguamatics com>
- Cc: xml gnome org
- Subject: Re: [xml] Building libxml2 on solaris
- Date: Tue, 08 Jul 2008 22:05:22 +0200
Rachael Churchill wrote:
Please could you help me build libxml2 on Solaris 2.10 (x86)? I get the
Uhm... doesn't Solaris 10 ship with libxml2 by default (Solaris 11 does
ship libxml2 and I thought we backported that to Solaris 10 long ago) ?
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libxml2.la'
make: Fatal error: Command failed for target `all-recursive'
1. Try using -KPIC
2. Which compiler do you use ? If you use Sun Studio/Workshop/Fote make
sure you use /opt/SUNWspro/bin/cc for linking and not "ld" directly.
The lines before the error message all refer to /usr/local/lib/libz.a.
A Google search suggests ld wants to link against shared libraries but
libz.a is a static library. Is there a switch I can give to the
configure script to make it look for static libraries? Some other
configure scripts seem to have a -static switch, but this one doesn't.
Try "-B dynamic". Solaris tries to avoid shipping static libraries since
some releases and even /sbin/sh is no longer statically linked.
__ . . __
(o.\ \/ /.o) roland mainz nrubsig org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL <currently fluctuating>
(;O/ \/ \O;)
] [Thread Prev