[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#747237: libpgm: FTBFS on hurd-i386



Source: libpgm
Version: 5.1.118-1~dfsg-0.1
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Hi,

Currently libpgm fails to build from source on GNU/Hurd due to that
while the struct group_req is defined in <netinet/in.h> no
corresponding MCAST_* values are defined in <bits/in.h>. This results
in a false positive in configure, and they are needed as option values
for setsockopt(2) in the file openpgm/pgm/sockaddr.c.

The configure check is extended to check if MCAST_JOIN_GROUP is
defined. Additionally autoreconf -i is added to debian/rules so it is
sufficient to patch only configure.ac.

Thanks!



--- a/openpgm/pgm/configure.ac
+++ b/openpgm/pgm/configure.ac
@@ -197,7 +197,11 @@ AC_MSG_CHECKING([for struct group_req.gr
 AC_COMPILE_IFELSE(
 	[AC_LANG_PROGRAM([[#include <netinet/in.h>]],
 		[[struct group_req gr;
-gr.gr_interface = 0;]])],
+gr.gr_interface = 0;
+#ifndef MCAST_JOIN_GROUP
+# error no mcast
+#endif
+]])],
 	[AC_MSG_RESULT([yes])
 		CFLAGS="$CFLAGS -DCONFIG_HAVE_MCAST_JOIN"],
 	[AC_MSG_RESULT([no])])
--- a/debian_rules	2012-04-29 09:50:52.000000000 +0200
+++ b/debian/rules	2014-04-22 21:52:03.000000000 +0200
@@ -6,6 +6,7 @@
 
 override_dh_auto_configure:
 	cd openpgm/pgm && \
+		autoreconf -i && \
 		./configure --prefix=/usr
 
 override_dh_clean:

Reply to: