
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

Hi Gaurav, On Wed, 7 Feb 2007 12:46:42 +0530, Gaurav.Jain@iflexsolutions.com said:
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?
If possible, can you retry with the boost.asio 0.3.8 release candidate: http://sourceforge.net/project/showfiles.php?group_id=122478 or against the CVS HEAD version of boost. It won't work for HP-UX yet, but I'd like to make the changes against the latest source code. If the changes are trivial (meaning changes to #ifdefs only) then I'd be happy to add support for HP-UX in 0.3.8 (but only with _XOPEN_SOURCE_EXTENDED undefined). Cheers, Chris

Hello Christopher, HP/UX has a 'bug'! You can not use ip_mreq with _XOPEN_RESOURCE_EXTEND compiler flag! In the system header file of HP/UX the struct ip_mreq is only defined if _XOPEN_RESOURCE_EXTEND is not defined. If you don't apply the _XOPEN_RESOURCE_EXTEND you get problems with other functions and structures (for instance struct msghdr is different, socklen_t is not defined so etc.) I already have had a call open by HP support. The support noticed that it is not intuitive that multicasting is not possible with X/Open conforming functions (_XOPEN_SOURCE_EXTENDED) and sended a change request (patch) to the HP/UX development center. Maybe the guys implementing HP/UX in the development center will provide a patch. Regards, Oliver
Hi Gaurav,
On Wed, 7 Feb 2007 12:46:42 +0530, Gaurav.Jain@iflexsolutions.com said:
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?
If possible, can you retry with the boost.asio 0.3.8 release candidate:
http://sourceforge.net/project/showfiles.php?group_id=122478
or against the CVS HEAD version of boost. It won't work for HP-UX yet, but I'd like to make the changes against the latest source code. If the changes are trivial (meaning changes to #ifdefs only) then I'd be happy to add support for HP-UX in 0.3.8 (but only with _XOPEN_SOURCE_EXTENDED undefined).
Cheers, Chris _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Hi Oliver, On Thu, 8 Feb 2007 07:55:17 +0100, Oliver.Kowalke@qimonda.com said:
Hello Christopher, HP/UX has a 'bug'! You can not use ip_mreq with _XOPEN_RESOURCE_EXTEND compiler flag! In the system header file of HP/UX the struct ip_mreq is only defined if _XOPEN_RESOURCE_EXTEND is not defined. If you don't apply the _XOPEN_RESOURCE_EXTEND you get problems with other functions and structures (for instance struct msghdr is different, socklen_t is not defined so etc.) I already have had a call open by HP support. The support noticed that it is not intuitive that multicasting is not possible with X/Open conforming functions (_XOPEN_SOURCE_EXTENDED) and sended a change request (patch) to the HP/UX development center. Maybe the guys implementing HP/UX in the development center will provide a patch.
Argh, just lovely. Thanks for the info. It looks like HP-UX support will have to wait until after 0.3.8 then. Cheers, Chris
participants (3)
-
Christopher Kohlhoff
-
Gaurav.Jain@iflexsolutions.com
-
Oliver.Kowalke@qimonda.com