
Hi Chris,
On Tue, 13 Feb 2007 12:28:32 +0530, Gaurav.Jain <at>
iflexsolutions.com said:
Quite strange that struct sockaddr_storage doesn't have any member "ss_family", instead address family is represented by "__ss_family".
Indeed. There's no "#define ss_family __ss_family" anywhere?
I think AIX support will have to wait until after I release 0.3.8, as it looks like some non-trivial changes may be required.
Cheers, Chris
I am afraid not, result of search: find /usr/include -exec grep "ss_family" -type 2>/dev/null {} \; /usr/include/sys/socket.h: ushort_t __ss_family; /* address family */ /usr/include/sys/socket.h: sa_family_t __ss_family; /* address family */ I tried to build the code on AIX after making some changes(dirty hack) to /boost/asio/detail/socket_types.h # if defined(__sun) # include <sys/filio.h> # endif //--------------------------------- # if defined(_AIX) # define ss_family __ss_family # endif and line #276 of /boost/asio/error.hpp #elif defined(__MACH__) && defined(__APPLE__) || defined(_AIX) But still errors related to gethostbyaddr_r() and gethostbyname_r() crop up. Please let know if I can continue to work on this and if possible get a resolution. Regards, Gaurav Jain DISCLAIMER: This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version.

On Tue, 13 Feb 2007 16:11:01 +0530, Gaurav.Jain@iflexsolutions.com said:
# if defined(_AIX) # define ss_family __ss_family # endif
Nice ;)
and line #276 of /boost/asio/error.hpp #elif defined(__MACH__) && defined(__APPLE__) || defined(_AIX) But still errors related to gethostbyaddr_r() and gethostbyname_r() crop up. Please let know if I can continue to work on this and if possible get a resolution.
If you can try 0.3.8 you might find this error goes away, because gethostbyaddr_r and gethostbyname_r are only required if getaddrinfo and getnameinfo are unavailable or don't work correctly. As far as I can tell by googling, these last two functions are available on AIX. Cheers, Chris
participants (2)
-
Christopher Kohlhoff
-
Gaurav.Jain@iflexsolutions.com