Boost logo

Boost :

From: Gaurav.Jain_at_[hidden]
Date: 2007-02-09 02:20:53


<Oliver.Kowalke <at> qimonda.com> writes:
>
>
> > msghdr structure used by asio would require
> > "_XOPEN_SOURCE_EXTENDED" or "_XOPEN_SOURCE=500/600" to be
> > defined since it is compliant with X/Open Networking Services
> > Library Functions and also would require to be linked against
> > -libxnet at least on Solaris.
>
> I believe _XOPEN_SOURCE_EXTENDED is HP/UX specific.
>
> > No particular compiler flags are mentioned in man pages.
> > However, standards man page suggests that
> > "-D_XOPEN_SOURCE=500" or "-D_XOPEN_SOURCE=600" be passed to
compiler.
> > It would be helpful if the asio library takes care of this
> > in the header file.
>
> Not sure - what does AIX for instance require?
> Oliver

Hi,

Compiling "daytime_client.cpp" on AIX 5.3 without passing any flag
resulting
into following errors :

"/1_33_1/include/boost/asio/socket_base.hpp", line 433.52: 1540-0724 (W)
The non-type template argument "-2147195266" of type "int" has wrapped.

"/1_33_1/include/boost/asio/ip/basic_endpoint.hpp", line 173.14:
1540-0217 (S)
"ss_family" is not a member of "struct sockaddr_storage".

"/1_33_1/include/boost/asio/ip/basic_endpoint.hpp", line 171.17:
1540-0700 (I)
The previous message was produced while processing
"boost::asio::ip::basic_endpoint<boost::asio::ip::tcp>::protocol()
const".

"/1_33_1/include/boost/asio/ip/basic_resolver_query.hpp", line 89.3:
1540-0700 (I)
The previous message was produced while processing
"boost::asio::ip::basic_r
esolver_query<boost::asio::ip::tcp>::basic_resolver_query(const
std::string &, const s
td::string &, int)".

"/1_33_1/include/boost/asio/basic_socketbuf.hpp", line 162.7: 1540-0700
(I)
The previous message was produced while processing
"boost::asio::basic_socketbuf<bo
ost::asio::ip::tcp,boost::asio::stream_socket_service<boost::asio::ip::t
cp> >::connect
<char *,const char *>(char *, const char *)".

"/1_33_1/include/boost/asio/basic_socket_iostream.hpp", line 137.7:
1540-0700 (I) The
previous message was produced while processing
"boost::asio::basic_socket
_iostream<boost::asio::ip::tcp,boost::asio::stream_socket_service<boost:
:asio::ip::tcp> >::basic_socket_iostream(char *, const char *)".
"daytime_client.cpp", line 18.19: 1540-0700 (I) The previous message was
produced while
processing "main(int, char *[])".

"/1_33_1/include/boost/asio/error.hpp", line 292.21: 1540-1260 (S) An
object of type
"std::basic_string<char,std::char_traits<char>,std::allocator<char> >"
can
not be constructed from an rvalue of type "int".

"/1_33_1/include/boost/asio/detail/socket_ops.hpp", line 600.61:
1540-025
6 (S) A parameter of type "hostent_data *" cannot be initialized with an
expression of
 type "char *".

Regards,
Gaurav Jain


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk