Decided to just submit the patch - see attached. It's also in my pull request...
Thanks, AJ On Tue, Nov 08, 2011 at 12:21:47PM -0600, AJ Lewis wrote: > On Mon, Nov 07, 2011 at 10:11:44PM +0100, Martin Sustrik wrote: > > On 11/07/2011 10:05 PM, AJ Lewis wrote: > > > > >$ gcc --version > > >gcc (GCC) 4.2.0 > > >Copyright (C) 2007 Free Software Foundation, Inc. > > >This is free software; see the source for copying conditions. There is NO > > >warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > > > >Maybe I need to get a newer one installed - I've had other issues with > > >this one as well...(gcc actually segfaults when trying to compile google > > >protocol buffers IIRC) > > > > I am using gcc-4.4.3, however, we should make compilation with 4.2.0 work... > > > > What about adding the forward declaration as mentioned before *and* > > changing the two offending occurences of "class msg_t" to > > "zmq::msg_t"? > > This appears to work! Should I submit a patch for this, or do you want > to take care of it? I just had to change i_enginte.hpp. > > -- > AJ Lewis > Software Engineer > Quantum Corporation > > Mobile: 612 860-8068 > Work: 651 688-4346 > YahooIM: vortechs2000 > AIM: v0r73chz > MSN: [email protected] > email: [email protected] > > ---------------------------------------------------------------------- > 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. > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev -- AJ Lewis Software Engineer Quantum Corporation Mobile: 612 860-8068 Work: 651 688-4346 YahooIM: vortechs2000 AIM: v0r73chz MSN: [email protected] email: [email protected]
>From 55934f83059665a8ede1fa45ef2f19e2adc4eb60 Mon Sep 17 00:00:00 2001 From: AJ Lewis <[email protected]> Date: Tue, 8 Nov 2011 12:20:08 -0600 Subject: [PATCH] Get AIX 6.1 compiling again by making msg_t class explicit Forward declare class msg_t and explicitly specify the namespace for it when referencing it in i_engine.hpp. Without this, AIX complains about a previous typedef msg_t in localedef31.h. Signed-off-by: AJ Lewis <[email protected]> --- src/i_engine.hpp | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/i_engine.hpp b/src/i_engine.hpp index 636985f..6e1067d 100644 --- a/src/i_engine.hpp +++ b/src/i_engine.hpp @@ -24,6 +24,8 @@ namespace zmq { + class msg_t; + // Abstract interface to be implemented by various engines. struct i_engine @@ -57,10 +59,10 @@ namespace zmq virtual ~i_engine_sink () {} // Engine asks for a message to send to the network. - virtual bool read (class msg_t *msg_) = 0; + virtual bool read (zmq::msg_t *msg_) = 0; // Engine received message from the network and sends it further on. - virtual bool write (class msg_t *msg_) = 0; + virtual bool write (zmq::msg_t *msg_) = 0; // Flush all the previously written messages. virtual void flush () = 0; -- 1.7.7
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
