pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems to build libxml2 on OpenSolaris using sunpro



Hi all,

I encounter several problems compiling textproc/libxml2 on an amd64 machine
running OpenSolaris. The last remaining (where I don't know how to fix):

/usr/pkg/bin/pdksh ./libtool --tag=CC   --mode=link cc  -O -xarch=native
-xarch=sse3 -I/usr/include -I/usr/pkg/include -Wl,-M -Wl,./libxml2.syms
-version-info 9:6:7  -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -o libxml2.la -rpath /usr/pkg/lib SAX.lo entities.lo
encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo
xmlIO.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo
debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo
DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo xmlstring.lo
xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo
relaxng.lo dict.lo SAX2.lo xmlwriter.lo legacy.lo chvalid.lo pattern.lo
xmlsave.lo xmlmodule.lo schematron.lo -lz -L/usr/pkg/lib -liconv -lm
-lsocket -lnsl
ld -G -h libxml2.so.2 -o .libs/libxml2.so.2.7.6  .libs/SAX.o
.libs/entities.o .libs/encoding.o .libs/error.o .libs/parserInternals.o
.libs/parser.o .libs/tree.o .libs/hash.o .libs/list.o .libs/xmlIO.o
.libs/xmlmemory.o .libs/uri.o .libs/valid.o .libs/xlink.o .libs/HTMLparser.o
.libs/HTMLtree.o .libs/debugXML.o .libs/xpath.o .libs/xpointer.o
.libs/xinclude.o .libs/nanohttp.o .libs/nanoftp.o .libs/DOCBparser.o
.libs/catalog.o .libs/globals.o .libs/threads.o .libs/c14n.o
.libs/xmlstring.o .libs/xmlregexp.o .libs/xmlschemas.o
.libs/xmlschemastypes.o .libs/xmlunicode.o .libs/xmlreader.o .libs/relaxng.o
.libs/dict.o .libs/SAX2.o .libs/xmlwriter.o .libs/legacy.o .libs/chvalid.o
.libs/pattern.o .libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o
-R/usr/pkgsrc/textproc/libxml2/work/.buildlink/lib
-R/usr/pkgsrc/textproc/libxml2/work/.buildlink/lib
-L/usr/pkgsrc/textproc/libxml2/work/.buildlink/lib -lz
/usr/pkgsrc/textproc/libxml2/work/.buildlink/lib/libiconv.so -lm -lsocket
-lnsl -lc  -M ./libxml2.syms -R/usr/pkg/lib
Undefined                       first referenced
 symbol                             in file
__xmlErrEncoding                    .libs/parserInternals.o  (symbol has no
version assigned)
__xmlSubstituteEntitiesDefaultValue .libs/globals.o  (symbol has no version
assigned)
__xmlBufferAllocScheme              .libs/globals.o  (symbol has no version
assigned)
__xmlRegisterNodeDefaultValue       .libs/globals.o  (symbol has no version
assigned)
__xmlLoaderErr                      .libs/xmlIO.o  (symbol has no version
assigned)
xmlGenericErrorDefaultFunc          .libs/error.o  (symbol has no version
assigned)
__xmlDefaultSAXLocator              .libs/globals.o  (symbol has no version
assigned)
__xmlPedanticParserDefaultValue     .libs/globals.o  (symbol has no version
assigned)
[...]
ld: fatal: symbol referencing errors. No output written to
.libs/libxml2.so.2.7.6

I compared the output of file for an .o file from the list and another one:
root@bert:/usr/pkgsrc/textproc/libxml2# file work/libxml2-2.7.6/.libs/threads.o
work/libxml2-2.7.6/.libs/threads.o:     ELF 64-bit LSB relocatable AMD64 
Version 1
root@bert:/usr/pkgsrc/textproc/libxml2# file work/libxml2-2.7.6/.libs/xpointer.o
work/libxml2-2.7.6/.libs/xpointer.o:    ELF 64-bit LSB relocatable AMD64
Version 1 [SSE2 SSE CMOV]

The full build log resides at
http://www.hirschbeutel.de/pkgsrc/libxml2-build.log

Best regards,
Jens


Home | Main Index | Thread Index | Old Index