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

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Oct 10 2000 - 17:36:17 EDT


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.

  Note taht is you don't use socklen_t on DU you may end-up with serious
aligment problems since the POSIX system call expects a pointer to a
64bits area while you're passing a pointer to a 32bit area with int* ...

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
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:39 EDT