Boost logo

Boost Users :

From: Oliver.Kowalke_at_[hidden]
Date: 2007-02-07 03:12:20


Hello,

That is one of the 'nice' features on HP/UX os. With X/Open compliant
functions (_XOPEN_SOURCE_EXTENDED) you are unable to use multicasting
(struct ip_mreq is not! defined).
HP support told my that they would make a change request in order to
provide an patch which enable multicasting with X/Open functions - but
if ansd when thiswill happen no one knows.
Regards,
Oliver
 
> Hi,
>
> I have tried using boost 1_33_1 on HP UX machine, while
> compiling the program I am getting some errors. Can anybody
> help me out?
>
> The detail of the compilation is as follows:
>
> Boost Version: 1_33_1
>
> bjam install -sTOOLS=acc --prefix="/home/pthakre/boost"
> --builddir="/tmp" \ "-sBUILD=release
> <runtime-link>dynamic/static <threading>multi <cxxflags>+DD64
> <cflags>+DD64 <linkflags>+DD64"
> --without-python Jamfile
>
> Compiler Details: aCC: HP C/aC++ B3910B A.06.13 [Nov 27 2006]
>
> OS Details: HP-UX B.11.23 ia64
>
> While compiling "daytime_server.cpp" with -D_HPUX_SOURCE
> -D_XOPEN_SOURCE_EXTENDED, I am getting the following error:
>
> "boost-1_33_1/include/boost/asio/detail/socket_types.hpp", line 136:
> error #2020: identifier "ip_mreq" is undefined
> typedef ip_mreq in4_mreq_type;
>
> Also, from /usr/include/netinet/in.h
>
> #ifndef _XOPEN_SOURCE_EXTENDED
> /*
> * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
> */
> struct ip_mreq {
> struct in_addr imr_multiaddr; /* IP multicast address of group */
> struct in_addr imr_interface; /* local IP address of
> interface */ };
>
> #endif /* ! _XOPEN_SOURCE_EXTENDED */
>
>
> Compiling "daytime_server.cpp" without -D_HPUX_SOURCE
> -D_XOPEN_SOURCE_EXTENDED, I m getting 22 errors.
>
>
> I have done the following changes:
>
> Line 575 ./asio/detail/socket_ops.hpp:
> #if defined(BOOST_WINDOWS) || defined(__CYGWIN__) || defined(__hpux)
>
> Line 611 ./asio/detail/socket_ops.hpp:
> #if defined(BOOST_WINDOWS) || defined(__CYGWIN__) || defined(__hpux)
>
> Line 274 ./asio/error.hpp:
> #if defined(__sun) || defined(__QNX__) || defined(__hpux)
>
> Line 109 ./asio/system_exception.hpp:
> #elif defined(__sun) || defined(__QNX__) || defined(__hpux)
>
>
> Regards,
> Gaurav
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net