Re: [xml] libxml v2.2.4 and Digital UNIX

Date view Thread view Subject view Author view

From: Albert Chin-A-Young (china@thewrittenword.com)
Date: Wed Oct 11 2000 - 10:12:24 EDT


On Tue, Oct 10, 2000 at 11:36:17PM +0200, Daniel Veillard wrote:
>
> On Mon, Oct 09, 2000 at 05:52:06PM -0500, Albert Chin-A-Young wrote:
> >
> > What's the purpose of:
> > (xmlversion.h)
> > #ifndef HAVE_SOCKLEN_T
> > #if defined(__osf__) || defined(__Linux__)
> > #define HAVE_SOCKLEN_T
> > #endif
> > #endif
> >
> > This causes the build of libxml 2.2.4 to fail under Digital UNIX 4.0D
> > and 5.0A. There is no socklen_t defined in /usr/include/*/*.h under
> > 4.0D and 5.0A has the following in /usr/include/sys/socket.h:
> >
> > /*
> > * This data type is needed for both UNIX98 and POSIX support.
> > */
> > #if (defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE>=500)) || \
> > defined(_POSIX_PII_SOCKET)
> > typedef unsigned long socklen_t; /* 64-bits */
> > #endif
> >
> > Here's the failure:
> > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/opt/TWWfsw/zlib11/include
> > -I/opt/TWWfsw/readline4/include -I/opt/TWWfsw/readline4/include -O2
> > -std1 -c nanohttp.c -DPIC -o .libs/nanohttp.lo
> > cc: Error: nanohttp.c, line 648: In this declaration, "socklen_t" must
> > specify a type.
> > socklen_t len;
> > --------^
> > cc: Error: nanohttp.c, line 652: In this statement, "len" is not
> > declared.
> > len = sizeof(status);
> > --------^
> > gmake[2]: *** [nanohttp.lo] Error 1
>
> Well I have access to one DU machine and I tested this code there
> and it worked. I'm pretty sure I used the native C compiler and not gcc.

What version of DU? I'm going to write up an autoconf test to
determing what the fifth argument should be.

-- 
albert chin (china@thewrittenword.com)
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Oct 11 2000 - 10:43:46 EDT