activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asheth <anishsh...@hotmail.com>
Subject compile failure on linux
Date Fri, 11 May 2007 20:38:00 GMT

hi,

I am trying to compile activemq-cpp 2.0 code on redhat linux using 2.4.21
kernel with gcc and g++ libraries of version 3.2.3-58

I am not able to compile the source.

first I run into the problem while running "configure".

looks like "-Wstrict-aliasing=2" option is used and 3.2.3 version of g++
does not seem to support that.
I tried to remove that option and compile the code and I get following
error...

please let me know if activemq-cpp 2.0 is supported with this combination of
linux and gcc libraries.

I have tried to compile it on later version of linux running 2.6 kernel and
3.4.4 gcc libraries and it compiles fine even after removing the
strict-aliasing option. 

Thanks for all the help..
-anish

make
make  all-recursive
make[1]: Entering directory `/auto/wsasheth/download/activemq-cpp-2.0'
Making all in src/main
make[2]: Entering directory
`/auto/wsasheth/download/activemq-cpp-2.0/src/main'
if g++ -DHAVE_CONFIG_H -I. -I. -I../..     -ansi -pedantic  -g -O2 -W -Wall
-fstrict-aliasing -Wno-long-long -MT ActiveMQConsumer.o -MD -MP -MF
".deps/ActiveMQConsumer.Tpo" -c -o ActiveMQConsumer.o `test -f
'activemq/core/ActiveMQConsumer.cpp' || echo
'./'`activemq/core/ActiveMQConsumer.cpp; \
then mv -f ".deps/ActiveMQConsumer.Tpo" ".deps/ActiveMQConsumer.Po"; else rm
-f ".deps/ActiveMQConsumer.Tpo"; exit 1; fi
activemq/core/ActiveMQConsumer.cpp:365: syntax error before `__attribute__'
activemq/core/ActiveMQConsumer.cpp:365: prototype for `void
   activemq::core::ActiveMQConsumer::afterMessageIsConsumed(...)' does not
   match any in class `activemq::core::ActiveMQConsumer'
activemq/core/ActiveMQConsumer.h:216: candidate is: virtual void
  
activemq::core::ActiveMQConsumer::afterMessageIsConsumed(activemq::core::ActiveMQMessage*,
   bool)
activemq/core/ActiveMQConsumer.cpp: In member function `void
   activemq::core::ActiveMQConsumer::afterMessageIsConsumed(...)':
activemq/core/ActiveMQConsumer.cpp:377: `message' undeclared (first use this
   function)
activemq/core/ActiveMQConsumer.cpp:377: (Each undeclared identifier is
reported
   only once for each function it appears in.)
activemq/core/ActiveMQConsumer.cpp:377: warning: ISO C++ forbids declaration
of
   `destroyMessage' with no type
activemq/core/ActiveMQConsumer.cpp:378: syntax error before `}' token
activemq/core/ActiveMQConsumer.cpp:386: warning: extra qualification `
   activemq::core::ActiveMQConsumer::' on member `acknowledgeMessage'
ignored
activemq/core/ActiveMQConsumer.cpp: At global scope:
activemq/core/ActiveMQConsumer.cpp:407: warning: extra qualification `
   activemq::core::ActiveMQConsumer::' on member `dispatch' ignored
activemq/core/ActiveMQConsumer.cpp:449: warning: extra qualification `
   activemq::core::ActiveMQConsumer::' on member `purgeMessages' ignored
activemq/core/ActiveMQConsumer.cpp:470: warning: extra qualification `
   activemq::core::ActiveMQConsumer::' on member `destroyMessage' ignored
activemq/core/ActiveMQConsumer.cpp:489: warning: extra qualification `
   activemq::core::ActiveMQConsumer::' on member `onConnectorResourceClosed'
   ignored
make[2]: *** [ActiveMQConsumer.o] Error 1
make[2]: Leaving directory
`/auto/wsasheth/download/activemq-cpp-2.0/src/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/auto/wsasheth/download/activemq-cpp-2.0'
make: *** [all] Error 2

-- 
View this message in context: http://www.nabble.com/compile-failure-on-linux-tf3729497s2354.html#a10439026
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message