[xml] Building on Solaris 8



Bill Moseley wrote at 24 Sep 2001 16:03:37 -0700:
SunOS 5.6 Generic_105181-17 sun4u sparc SUNW,Ultra-Enterprise

Dies due to libz.

68) ~/libxml/libxml2-2.4.5 %ll /usr/local/lib/libz*
-rw-r--r--   1 root     other      70488 Jan 20  1999 /usr/local/lib/libz.a

No libz.so.  Is that the issue?

I have a libz/zlib-related problem with Solaris 8.

To compile with zlib, I need to do "./configure --with-zlib=/usr" but
that creates a problem when compiling testDocbook.c and other files
that use fprintf, etc. because the addition of "-I/usr/include" on the
gcc command line causes the inclusion of some Solaris-specific header
files that gcc can't use.

The temporary workaround is to remove "-I/usr/include" from the echoed
command line and recompile using the modified command line:

------------------------------------------------------------
tenso% make testDocbook
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -I/usr/include   -I/include  -g -O2 -Wall -c 
testDocbook.c
testDocbook.c: In function `warningDebug':
testDocbook.c:539: `__builtin_va_alist' undeclared (first use in this function)
testDocbook.c:539: (Each undeclared identifier is reported only once
testDocbook.c:539: for each function it appears in.)
testDocbook.c:537: warning: `args' might be used uninitialized in this function
testDocbook.c: In function `errorDebug':
testDocbook.c:559: `__builtin_va_alist' undeclared (first use in this function)
testDocbook.c:557: warning: `args' might be used uninitialized in this function
testDocbook.c: In function `fatalErrorDebug':
testDocbook.c:579: `__builtin_va_alist' undeclared (first use in this function)
testDocbook.c:577: warning: `args' might be used uninitialized in this function
make: *** [testDocbook.o] Error 1
tenso% gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include   -I/include  -g -O2 -Wall -c testDocbook.c
tenso%
------------------------------------------------------------

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]