[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: Mon Oct 09 2000 - 18:52:06 EDT


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

-- 
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 : Tue Oct 10 2000 - 17:44:38 EDT