[zeromq-dev] zeromq build in the HP-UX question
Ivan Pechorin
ivan.pechorin at gmail.com
Fri May 24 18:13:27 CEST 2013
2013/5/24 AJ Lewis <aj.lewis at quantum.com>:
> On Fri, May 24, 2013 at 03:28:29PM +0200, Bjorn Reese wrote:
>> On 05/24/2013 10:38 AM, zhabh wrote:
>>
>> > *the build machine is :**HP-UX yysdf B.11.31 U ia64 3962423388 *
>> > *the tar pkg is **zeromq-3.2.3***
>> > *the compile is :**aCC: HP C/aC++ B3910B A.06.22*
>> [...]
>> > CXX libzmq_la-address.lo
>> > "tcp_address.hpp", line 45: error #2020: identifier "sockaddr" is undefined
>> > tcp_address_t (const sockaddr *sa, socklen_t sa_len);
>>
>> Try to define the _XOPEN_SOURCE_EXTENDED macro.
>
> Odd...all I have is "-mt +DD64" in my CFLAGS, CXXFLAGS, and LDFLAGS and it
> works for me on 3.2.3 with:
>
> HP-UX bld-hpux B.11.31 U ia64 1105973567
> aCC: HP C/aC++ B3910B A.06.25
HP aCC flag "-mt" adds "-D_HPUX_SOURCE" [1]
_HPUX_SOURCE adds _XOPEN_SOURCE_EXTENDED [2]
_XOPEN_SOURCE_EXTENDED is necessary for sockaddr [3]
P.S. I always have "-mt" in my CFLAGS, CXXFLAGS and LDFLAGS.
[1] http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/options.htm#opt-mt
[2] /usr/include/sys/stdsyms.h
[3] see /usr/include/sys/socket.h
More information about the zeromq-dev
mailing list