On Thu, Apr 28, 2011 at 11:51:09AM +0200, Ermete Gaudenzi wrote:
> On Thu, Apr 28, 2011 at 11:03 AM, Dejan Muhamedagic <deja...@fastmail.fm> 
> wrote:
> > I can't recall seeing this before. There should be more details
> > in config.log.
> 
> Yes, reading the config.log it looks like the "__u32" type is not defined.
> It is defined in "asm/types.h" and the configure script correctly detect it.
> See the attached zipped config.log file.

OK, found a similar occurence in other projects. Can you try the
attached patch.

Thanks,

Dejan

> The content of /usr/include/linux/errqueue.h is:
> 
> ----------------------------------------------------------------------------------------
> #ifndef _LINUX_ERRQUEUE_H
> #define _LINUX_ERRQUEUE_H 1
> 
> struct sock_extended_err
> {
>         __u32   ee_errno;
>         __u8    ee_origin;
>         __u8    ee_type;
>         __u8    ee_code;
>         __u8    ee_pad;
>         __u32   ee_info;
>         __u32   ee_data;
> };
> 
> #define SO_EE_ORIGIN_NONE       0
> #define SO_EE_ORIGIN_LOCAL      1
> #define SO_EE_ORIGIN_ICMP       2
> #define SO_EE_ORIGIN_ICMP6      3
> 
> #define SO_EE_OFFENDER(ee)      ((struct sockaddr*)((ee)+1))
> 
> 
> #endif
> ----------------------------------------------------------------------------------------
> 
> Output of: gcc --version
> 
> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> Ermete Gaudenzi


> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

# HG changeset patch
# User Dejan Muhamedagic <de...@hello-penguin.com>
# Date 1303991608 -7200
# Node ID b3ab6686445b5267a18a37d1a1404170693306db
# Parent  edf8c65b4acdd239d44ddb00628f5a6104e358b5
Low: build: fix test for linux/errqueue.h

diff -r edf8c65b4acd -r b3ab6686445b configure.ac
--- a/configure.ac	Wed Apr 27 12:51:39 2011 +0200
+++ b/configure.ac	Thu Apr 28 13:53:28 2011 +0200
@@ -643,7 +643,11 @@ AC_CHECK_HEADERS(getopt.h)
 AC_CHECK_HEADERS(glib.h)
 AC_CHECK_HEADERS(grp.h)
 AC_CHECK_HEADERS(limits.h)
-AC_CHECK_HEADERS(linux/errqueue.h)
+AC_CHECK_HEADERS(linux/errqueue.h,,,
+	[#ifdef HAVE_LINUX_TYPES_H
+	 # include <linux/types.h>
+	 #endif
+	])
 AC_CHECK_HEADERS(malloc.h)
 AC_CHECK_HEADERS(netdb.h)
 AC_CHECK_HEADERS(netinet/in.h)
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to