Re: [xml] Building on Solaris 8



xml thewrittenword com wrote at 27 Sep 2001 00:09:50 -0500:
Please post the relevant portion of config.log so I can take a look at
the error.

configure
------------------------------------------------------------
configure:5589: checking for zlib.h
configure:5599: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:5620: checking for gzread in -lz
configure:5639: gcc -o conftest -g -O2   conftest.c -lz   1>&5
Undefined                       first referenced
 symbol                             in file
gzread                              /var/tmp/ccfpldpp.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 5628 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gzread();

int main() {
gzread()
; return 0; }
------------------------------------------------------------

configure --with-zlib=/usr
------------------------------------------------------------
configure:5589: checking for zlib.h
configure:5599: gcc -E  -I/usr/include conftest.c >/dev/null 2>conftest.out
configure:5620: checking for gzread in -lz
configure:5639: gcc -o conftest -g -O2  -I/usr/include  -L/usr/lib conftest.c -lz   1>&5
------------------------------------------------------------

The problem isn't with zlib as such, it's with the inclusion of
-I/usr/include when compiling unrelated files.

Regards,


Tony Graham
------------------------------------------------------------------------
XML Technology Center - Dublin        mailto:tony graham ireland sun com
Sun Microsystems Ireland Ltd                       Phone: +353 1 8199708
Hamilton House, East Point Business Park, Dublin 3            x(70)19708




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