[zeromq-dev] zeromq build in the HP-UX question

AJ Lewis aj.lewis at quantum.com
Fri May 24 18:19:04 CEST 2013


On Fri, May 24, 2013 at 08:13:27PM +0400, Ivan Pechorin wrote:
> 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]

Haha!  I *knew* there was a good reason for that one! :D  I thought
it was just mulithread enabling. Good to know!
 
-- 
AJ Lewis
Software Engineer
Quantum Corporation

Work:    651 688-4346
email:   aj.lewis at quantum.com

----------------------------------------------------------------------
The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through anti virus and spam software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.



More information about the zeromq-dev mailing list