[xml] Solaris gcc build issue



Hi, I'm trying to build the latest version of libxml2 on a Solaris 9 system (Solaris comes with libxml2 but I am building PHP 5 and it requires a later version than comes with Solaris). I'm using gcc 3.1 which we installed as a package from sunfreeware.com. The problem is I'm getting relocation errors. Using this configure command:

        ./configure --with-zlib=/usr/local

I get this error:

gcc -shared -Wl,-h -Wl,libxml2.so.2 -o .libs/libxml2.so.2.6.30
.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/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/local/lib
-ldl -lpthread -L/usr/local/lib -lz -lm -lsocket -lnsl -lc
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x1750
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1754
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1758
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x175c
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1760
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1764
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1768
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1768
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x176c
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1770
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1774
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1778
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x177c
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1780
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1784
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1788
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1788
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x178c
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1790
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1794
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x1798
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x179c
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17a0
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17a4
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17a8
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17ac
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17ac
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17b0
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17b4
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17b8
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17bc
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17c0
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x17c4
/usr/local/lib/libz.a(inflate.o)
<unknown>                           0x40
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x4c
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x4c
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x58
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x64
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x70
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x7c
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x88
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x94
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0xa0
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0xac
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x98
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x98
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0x9c
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xa0
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xa4
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xa8
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xac
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xb0
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xb4
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xb8
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xb8
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0xbc
/usr/local/lib/libz.a(zutil.o)
<unknown>                           0x5b0
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x5b4
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x5f8
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x5fc
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x7b8
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x7c4
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x1144
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x1154
/usr/local/lib/libz.a(deflate.o)
<unknown>                           0x1154
/usr/local/lib/libz.a(deflate.o)
zcfree                              0x84
/usr/local/lib/libz.a(deflate.o)
zcfree                              0x88
/usr/local/lib/libz.a(deflate.o)
zcfree                              0x7c
/usr/local/lib/libz.a(inflate.o)
zcfree                              0x80
/usr/local/lib/libz.a(inflate.o)


And several dozen similar lines. I get similar errors on the build when I do the configure command without the
--with-zlib parameter.  Thanks for any suggestions or advice.

Jim McCullars
University of Alabama in Huntsville




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]