|
Hi, Got the build to work on AIX, turns out that the system was missing a few required tools (like libtool and had older versions of autoconf etc...). I ran into a problem (which I had back in 2008??), on AIX 5.x IBM did not have sockaddr_storage.ss_family instead they used sockaddr_storage.__ss_family, however; it appears that in AIX 6.x they have 'corrected' this so that 'ss_family' is used. So the build failed because of this. Attached is the svn diff for the changes I made. I made changes to 2 files configure.ac - Added a check for sockaddr_storage.ss_family and if present it sets a define. slp_net.h - In the AIX specific portion of the code added a check for the define set via the configure.ac, if not set it will use '__ss_family'. Jim |
Index: configure.ac
===================================================================
--- configure.ac (revision 1692)
+++ configure.ac (working copy)
@@ -54,6 +54,11 @@
#
# Checks for structure members
#
+AC_CHECK_MEMBER([struct sockaddr_storage.ss_family],
+ [AC_DEFINE(HAVE_SOCKADDR_STORAGE_SS_FAMILY,1,[whether sockaddr_storage
+has ss_family])],
+ [], [#include <sys/socket.h>])
+
AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
[AC_DEFINE(HAVE_SOCKADDR_IN_SIN_LEN,1,[whether sockaddr_in has
sin_len])],
[], [#include <netinet/in.h>])
Index: common/slp_net.h
===================================================================
--- common/slp_net.h (revision 1692)
+++ common/slp_net.h (working copy)
@@ -73,7 +73,10 @@
#ifdef _AIX
# define SLP_IN6ADDR_ANY_INIT {{{0,0,0,0}}}
# define SLP_IN6ADDR_LOOPBACK_INIT {{{0,0,0,1}}}
+#ifndef HAVE_SOCKADDR_STORAGE_SS_FAMILY
+// ss_family is not present, use __ss_family (AIX 5.?)
# define ss_family __ss_family
+#endif
#else
# define SLP_IN6ADDR_ANY_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}}}
# define SLP_IN6ADDR_LOOPBACK_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}}
------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________ Openslp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openslp-devel

