Re: [Linux-ha-dev] cluster-glue-1.0.7: WARNING: linux/errqueue.h: present but cannot be compiled

2011-05-04 Thread Dejan Muhamedagic
On Thu, Apr 28, 2011 at 04:52:21PM +0200, Ermete Gaudenzi wrote:
 Ok with the patch the warning message disappears and the program works.
 In config.log the checks for errqueue.h have the same results (present
 but not usable).

OK. Thanks for testing.

 The same problem is found on pacemaker-1.0.10
 downloaded from:
 http://hg.clusterlabs.org/pacemaker/stable-1.0/archive/da7075976b5f.tar.bz2
 
 Will this be fixed in next release?

Yes.

Thanks,

Dejan

 Thanks for your help ;-)
 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/
___
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/


[Linux-ha-dev] cluster-glue-1.0.7: WARNING: linux/errqueue.h: present but cannot be compiled

2011-04-28 Thread Ermete Gaudenzi
Hi guys,

I have a warning in the configure script of cluster-glue-1.0.7
downloaded from: http://hg.linux-ha.org/glue/archive/5e06b2ddd24b.tar.bz2
The log says to report to this mailing list :-)

The project configures and compiles correctly and I built a working
cluster with 2 machines.
Can i just ignore the warning or it's better to take some action?

Here some additional info:

commandline:
./configure --with-daemon-user=hacluster --with-daemon-group=haclient
--prefix=/usr --sysconfdir=/etc --localstatedir=/var

Log snippet from ./configure console output:

checking for limits.h... yes
checking linux/errqueue.h usability... no
checking linux/errqueue.h presence... yes
configure: WARNING: linux/errqueue.h: present but cannot be compiled
configure: WARNING: linux/errqueue.h: check for missing
prerequisite headers?
configure: WARNING: linux/errqueue.h: see the Autoconf documentation
configure: WARNING: linux/errqueue.h: section Present But Cannot
Be Compiled
configure: WARNING: linux/errqueue.h: proceeding with the preprocessor's result
configure: WARNING: linux/errqueue.h: in the future, the compiler will
take precedence
configure: WARNING: ## -- ##
configure: WARNING: ## Report this to linux-ha-dev@lists.linux-ha.org ##
configure: WARNING: ## -- ##
checking for linux/errqueue.h... yes
checking malloc.h usability... yes

uname -a:
Linux localhost.localdomain 2.6.18-194.0.0.0.3.el5PAE #1 SMP Mon Mar
29 16:18:19 EDT 2010 i686 i686 i386 GNU/Linux

linux distribution:
Oracle Enterprise Linux Unbreakable R5 U5

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/


Re: [Linux-ha-dev] cluster-glue-1.0.7: WARNING: linux/errqueue.h: present but cannot be compiled

2011-04-28 Thread Dejan Muhamedagic
Hi,

On Thu, Apr 28, 2011 at 10:39:13AM +0200, Ermete Gaudenzi wrote:
 Hi guys,
 
 I have a warning in the configure script of cluster-glue-1.0.7
 downloaded from: http://hg.linux-ha.org/glue/archive/5e06b2ddd24b.tar.bz2
 The log says to report to this mailing list :-)
 
 The project configures and compiles correctly and I built a working
 cluster with 2 machines.
 Can i just ignore the warning or it's better to take some action?
 
 Here some additional info:
 
 commandline:
 ./configure --with-daemon-user=hacluster --with-daemon-group=haclient
 --prefix=/usr --sysconfdir=/etc --localstatedir=/var
 
 Log snippet from ./configure console output:
 
 checking for limits.h... yes
 checking linux/errqueue.h usability... no
 checking linux/errqueue.h presence... yes
 configure: WARNING: linux/errqueue.h: present but cannot be compiled
 configure: WARNING: linux/errqueue.h: check for missing
 prerequisite headers?
 configure: WARNING: linux/errqueue.h: see the Autoconf documentation
 configure: WARNING: linux/errqueue.h: section Present But Cannot
 Be Compiled
 configure: WARNING: linux/errqueue.h: proceeding with the preprocessor's 
 result
 configure: WARNING: linux/errqueue.h: in the future, the compiler will
 take precedence
 configure: WARNING: ## -- ##
 configure: WARNING: ## Report this to linux-ha-dev@lists.linux-ha.org ##
 configure: WARNING: ## -- ##
 checking for linux/errqueue.h... yes
 checking malloc.h usability... yes
 
 uname -a:
 Linux localhost.localdomain 2.6.18-194.0.0.0.3.el5PAE #1 SMP Mon Mar
 29 16:18:19 EDT 2010 i686 i686 i386 GNU/Linux
 
 linux distribution:
 Oracle Enterprise Linux Unbreakable R5 U5

I can't recall seeing this before. There should be more details
in config.log.

Thanks,

Dejan

 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/
___
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/


Re: [Linux-ha-dev] cluster-glue-1.0.7: WARNING: linux/errqueue.h: present but cannot be compiled

2011-04-28 Thread Dejan Muhamedagic
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;
 __u8ee_origin;
 __u8ee_type;
 __u8ee_code;
 __u8ee_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/


Re: [Linux-ha-dev] cluster-glue-1.0.7: WARNING: linux/errqueue.h: present but cannot be compiled

2011-04-28 Thread Ermete Gaudenzi
Ok with the patch the warning message disappears and the program works.
In config.log the checks for errqueue.h have the same results (present
but not usable).

The same problem is found on pacemaker-1.0.10
downloaded from:
http://hg.clusterlabs.org/pacemaker/stable-1.0/archive/da7075976b5f.tar.bz2

Will this be fixed in next release?

Thanks for your help ;-)
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/