Hi Tim, I found the cause of the problem. I am using Fedora 9. Since i have used the right version of apr but a wrong version of apr-util (the ./configure detected the apr-util which is installed in Fedora 9 with version 1.2.12) to compile the activemq-cpp, so it gave out such error. Now, it is successfully compiled. Thanks for your help.
Timothy Bish wrote: > > What platform are you building on? Does APR compile and pass all its > unit tests? > > Regards > Tim. > > On Wed, 2008-12-03 at 19:02 -0800, DanLeepw wrote: >> When I try to compile CMS with the following packages: >> >> activemq-cpp-2.2.2-src >> apr-1.3.3 >> apr-util-1.3.4 >> >> I get the following error: >> g++ -DHAVE_CONFIG_H -I. -I../.. -ansi -pedantic -DLINUX=2 -D_REENTRANT >> -D_GNU_SOURCE -I/home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include >> -I/usr/include/apr-1 -I/usr/include/mysql -W -Wall -fPIC >> -fstrict-aliasing >> -Wstrict-aliasing=2 -Wno-long-long -g -O2 -MT >> activemq/core/libactivemq_cpp_la-ActiveMQConnectionFactory.lo -MD -MP -MF >> activemq/core/.deps/libactivemq_cpp_la-ActiveMQConnectionFactory.Tpo -c >> activemq/core/ActiveMQConnectionFactory.cpp -fPIC -DPIC -o >> activemq/core/.libs/libactivemq_cpp_la-ActiveMQConnectionFactory.o >> In file included from >> /home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include/apr_file_io.h:29, >> from >> /home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include/apr_thread_proc.h:26, >> from ./decaf/lang/Thread.h:26, >> from ./decaf/util/concurrent/Mutex.h:23, >> from ./decaf/util/Map.h:25, >> from ./activemq/core/ActiveMQConnection.h:29, >> from activemq/core/ActiveMQConnectionFactory.cpp:25: >> /home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include/apr_file_info.h:192: >> error: 'apr_ino_t__requires__apr_file_info_h' does not name a type >> In file included from >> /home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include/apr_file_io.h:34, >> from >> /home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include/apr_thread_proc.h:26, >> from ./decaf/lang/Thread.h:26, >> from ./decaf/util/concurrent/Mutex.h:23, >> from ./decaf/util/Map.h:25, >> from ./activemq/core/ActiveMQConnection.h:29, >> from activemq/core/ActiveMQConnectionFactory.cpp:25: >> /home/dlee/cvs/thirdparty/activemq/apr-1.3.3/include/apr_want.h:92: >> error: >> redefinition of 'struct iovec' >> /usr/include/bits/uio.h:45: error: previous definition of 'struct iovec' >> make[2]: *** >> [activemq/core/libactivemq_cpp_la-ActiveMQConnectionFactory.lo] >> Error 1 >> make[2]: Leaving directory >> `/home/dlee/cvs/thirdparty/activemq/activemq-cpp-2.2.2-src/src/main' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> `/home/dlee/cvs/thirdparty/activemq/activemq-cpp-2.2.2-src' >> make: *** [all] Error 2 >> >> Does someone have the same error ? >> > > > -- View this message in context: http://www.nabble.com/Errors-when-compiling-CMS-tp20826381p20826842.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
