km4arr / openpgm

Automatically exported from code.google.com/p/openpgm
0 stars 0 forks source link

Fail to build on OS X Lion #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. libpgm-5.1.115
2. ./configure --with-pgm
3. make

What is the expected output? What do you see instead?
Fails to build with redefined struct error and missing define.

What version of the product are you using? On what operating system?
libpgm-5.1.115, OS X, 10.7

Please provide any additional information below.
To fix the build I added the following, works but might well need to be cleaned 
up..

--- libpgm-5.1.115~dfsg/openpgm/pgm/recv.c  2011-03-23 17:43:15.000000000 +1100
+++ libpgm-5.1.115~dfsg.mod/openpgm/pgm/recv.c  2011-08-11 20:45:08.000000000 
+1000
@@ -23,6 +23,10 @@
 #  define _GNU_SOURCE
 #endif

+#if defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
+#define __APPLE_USE_RFC_3542  1
+#endif
+
 #include <errno.h>
 #ifndef _WIN32
 #  include <sys/types.h>

--- libpgm-5.1.115~dfsg/openpgm/pgm/include/pgm/in.h    2011-03-23 
17:43:10.000000000 +1100
+++ libpgm-5.1.115~dfsg.mod/openpgm/pgm/include/pgm/in.h    2011-08-11 
20:44:26.000000000 +1000
@@ -29,6 +29,7 @@
 #include <sys/socket.h>
 #include <pgm/types.h>

+#if !defined(__APPLE__) || (defined(__APPLE__) && 
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
 /* sections 5 and 8.2 of RFC 3768: Multicast group request */
 struct group_req
 {
@@ -42,6 +43,7 @@
    struct sockaddr_storage gsr_group;  /* group address */
    struct sockaddr_storage gsr_source; /* group source */
 };
+#endif

 PGM_BEGIN_DECLS

Original issue reported on code.google.com by peterfwi...@gmail.com on 12 Aug 2011 at 12:08

GoogleCodeExporter commented 9 years ago
Thanks.

I'll have to investigate __APPLE_USE_RFC_3542 and __APPLE_USE_RFC_2292.

Original comment by fnjo...@gmail.com on 12 Aug 2011 at 2:11

GoogleCodeExporter commented 9 years ago
Applied to 5.2 branch.

Original comment by fnjo...@gmail.com on 5 Oct 2011 at 3:22