Re: Re: [xml] Compile error on Solaris 2.6

I'm not on the mailing list, so please CC me with any

I found this message in the archives:

which is the exact problem I've been having, but I've found a
workaround which someone else might work into an actual patch.

The following statement fails, but I do have libz installed
(in /usr/local/lib), and I
tried to put '-L/usr/local/lib' in all the appropriate places in
the Makefile, but it still failed, because the '-L..' appeared
after the '-lz', but I found that if I put '-L/usr/local/lib'
before the '-lz' in the compile, then it would compile ok.
So I just put '-L/usr/local/lib' before every '-lz' in the makefile,
and it compiled ok.

/usr/ccs/bin/ld -G -h -o .libs/  SAX.lo
 encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo
.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo
xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo DOCBparser.lo
  -lz -L/lib -lm -lsocket -lnsl -lc 
ld: fatal: library -lz: not found
ld: fatal: File processing errors. No output written to

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