Re: [xml] Compile error libxml2-2.1.1/Solaris

Date view Thread view Subject view Author view

From: Steffen Zahn (Steffen.Zahn@icn.siemens.de)
Date: Wed Jul 05 2000 - 10:53:01 EDT


> <sys/socket.h> makes available a type, socklen_t, which is an
> unsigned opaque integral type of length of at least 32 bits. To
> forestall portability problems, it is recommended that applications
> should not use values larger than 232 - 1.

> So I have switched back to use a simple int. All this is commited
>in libxml W3C CVS base, and will propagate to future versions.

Hello,

I just inspected how other packages do this and I found the following
configure.in entry in ORBit-0.5.2 :

AC_MSG_CHECKING([for socklen_t])
AC_TRY_COMPILE(
  [#include <sys/types.h>
#include <sys/socket.h>],
  [socklen_t len;],
  [AC_MSG_RESULT(yes)],
  [AC_DEFINE(socklen_t, size_t)
   AC_MSG_RESULT(no)])

Maybe you want to try this.

Best regards
  Steffen

-- 
business email:user@domain where domain=icn.siemens.de,user=Steffen.Zahn
Any opinions expressed  herein are not necessarily  those of my employer.
Use of my address for  unsolicited  commercial  advertising is forbidden.
      2^6972593 - 1     |     "Where do you want to crash today?"
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:19 EDT