Thanks for the fast replies! One question in adavance. I know it's not the apprpriate place to ask, but I saw that Apache Tuscany already comes with in Qpid0.6-cpp in its latest version in the git trunk. Can I expect that qpids functionlity won't be truncated in any way when using it together with Tuscany?
Now back to the orignal topic: I have removed the option -Werror -pedantic. Now it compiles. :-) I use the following qpid version and g++ under Ubuntu : *DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.04 DISTRIB_CODENAME=jaunty DISTRIB_DESCRIPTION="Ubuntu 9.04" wget http://www.apache.org/dist/qpid/0.6/qpid-0.6.tar.gz gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) * What I did is to extrackt the tar, run bootstrap ./configure --prefix=$HOME/mom_brokers/qpid-0.6/cpp/deploy --with-doxygen make make install make check But some test are failing Making check in managementgen make[1]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/managementgen' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/managementgen' Making check in etc make[1]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/etc' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/etc' Making check in src make[1]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/src' Making check in . make[2]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/src' make[2]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/src' Making check in tests make[2]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/src/tests' if test -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../python -a -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../specs; \ then make -C /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../python install PREFIX=/home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python PYTHON_LIB=/home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python EXEC_PREFIX=/home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/commands AMQP_SPEC_DIR=/home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../specs; \ else echo "WARNING: python client not built, missing one of /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../python /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../specs"; fi /bin/sh: Bad substitution make[3]: Entering directory `/home/volare/mom_brokers/qpid-0.6/python' install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/mllib install -pm 0644 LICENSE.txt NOTICE.txt build/mllib/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/mllib python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/mllib Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/mllib ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid install -pm 0644 LICENSE.txt NOTICE.txt README.txt build/qpid/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid TDIR=/tmp/tmp.gpldTQUVmq && \ sed s...@amqp_spec_dir=.*@AMQP_SPEC_DIR='"/home/volare/mom_brokers/qpid-0.6/cpp/src/tests/../../../specs"'@ \ build/qpid_config.py > ${TDIR}/qpid_config.py && \ install -pm 0644 ${TDIR}/qpid_config.py /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python && \ rm -rf ${TDIR} install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid/tests install -pm 0644 build/qpid/tests/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid/tests python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid ... Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qpid/tests ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qmf install -pm 0644 LICENSE.txt NOTICE.txt qmf/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qmf python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qmf Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/qmf ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests install -pm 0644 build/tests/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-8 install -pm 0644 build/tests_0-8/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-8 python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-8 Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-8 ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-9 install -pm 0644 build/tests_0-9/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-9 python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-9 Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-9 ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-10 install -pm 0644 build/tests_0-10/*.* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-10 python -O -c "import compileall; compileall.main()" /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-10 Listing /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/tests_0-10 ... install -d /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/commands install -pm 0755 qpid-python-test commands/* /home/volare/mom_brokers/qpid-0.6/cpp/src/tests/python/commands make[3]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/python' make libshlibtest.la libdlclose_noop.la unit_test perftest txtest latencytest echotest client_test topic_listener topic_publisher publish consume header_test failover_soak declare_queues replaying_sender resuming_receiver txshift txjob PollerTest DispatcherTest qpid_ping datagen qrsh_server qrsh_run qrsh qpid_stream make[3]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/src/tests' make[3]: `libshlibtest.la' is up to date. make[3]: `libdlclose_noop.la' is up to date. make[3]: `unit_test' is up to date. make[3]: `perftest' is up to date. make[3]: `txtest' is up to date. make[3]: `latencytest' is up to date. make[3]: `echotest' is up to date. make[3]: `client_test' is up to date. make[3]: `topic_listener' is up to date. make[3]: `topic_publisher' is up to date. make[3]: `publish' is up to date. make[3]: `consume' is up to date. make[3]: `header_test' is up to date. make[3]: `failover_soak' is up to date. make[3]: `declare_queues' is up to date. make[3]: `replaying_sender' is up to date. make[3]: `resuming_receiver' is up to date. make[3]: `txshift' is up to date. make[3]: `txjob' is up to date. make[3]: `PollerTest' is up to date. make[3]: `DispatcherTest' is up to date. make[3]: `qpid_ping' is up to date. make[3]: `datagen' is up to date. make[3]: `qrsh_server' is up to date. make[3]: `qrsh_run' is up to date. make[3]: `qrsh' is up to date. make[3]: `qpid_stream' is up to date. make[3]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/src/tests' make check-TESTS make[3]: Entering directory `/home/volare/mom_brokers/qpid-0.6/cpp/src/tests' ./run_test: 35: source: not found ./run_test: 36: source: not found terminate called after throwing an instance of 'std::runtime_error' what(): Environment variable REPLICATING_LISTENER_LIB not set. Aborted FAIL: unit_test ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_test: 35: source: not found ./run_test: 36: source: not found PASS: start_broker ./run_test: 35: source: not found ./run_test: 36: source: not found PASS: client_test ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_test: 35: source: not found ./run_test: 36: source: not found 22788.8 782.758 2499.18 2.44061 PASS: quick_perftest ./run_test: 35: source: not found ./run_test: 36: source: not found PASS: quick_topictest ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_header_test: 27: source: not found Traceback (most recent call last): File "./header_test.py", line 21, in <module> import qpid ImportError: No module named qpid FAIL: run_header_test ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_test: 35: source: not found ./run_test: 36: source: not found All expected messages were retrieved. PASS: quick_txtest ./run_test: 35: source: not found ./run_test: 36: source: not found ./python_tests: 23: source: not found python: can't open file 'localhost:59238': [Errno 2] No such file or directory FAIL: python_tests ./run_test: 35: source: not found ./run_test: 36: source: not found PASS: stop_broker ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_federation_tests: 24: source: not found Running federation tests using brokers on ports 39734 40998 ./run_federation_tests: 49: -m: not found ./run_federation_tests: 49: --no-module-dir: not found ./run_federation_tests: 49: --no-module-dir: not found FAIL federation tests FAIL: run_federation_tests ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_acl_tests: 23: source: not found 2010-05-17 17:13:37 critical Unexpected error: --acl-file.so: cannot open shared object file: No such file or directory: --acl-file.so (qpid/sys/posix/Shlib.cpp:34) Running acl tests using brokers on ports ./run_acl_tests: 63: -b: not found ./run_acl_tests: 63: --no-module-dir: not found ./run_acl_tests: 63: --no-module-dir: not found unable to load policy file from an absolute path FAIL: run_acl_tests ./run_test: 35: source: not found ./run_test: 36: source: not found ./run_cli_tests: 24: source: not found Running CLI tests using brokers on ports 53336 50791 ./run_cli_tests: 50: /qpid-python-test: not found ./run_cli_tests: 50: --no-module-dir: not found ./run_cli_tests: 50: --no-module-dir: not found FAIL CLI tests FAIL: run_cli_tests ./run_test: 35: source: not found ./run_test: 36: source: not found ./replication_test: 24: source: not found Skipping replication test, plugins not built or python utils not located PASS: replication_test ==================================== 6 of 13 tests failed Please report to [email protected] ==================================== make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/src/tests' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/src/tests' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/volare/mom_brokers/qpid-0.6/cpp/src' make: *** [check-recursive] Error 1 2010/5/17 Alan Conway <[email protected]> > On 05/17/2010 10:04 AM, Kim van der Riet wrote: > >> On Sun, 2010-05-16 at 17:05 +0200, Mario Grotschar wrote: >> >>> Hello, >>> >>> I have downloaded qpid-cpp-0.6. Make / make intall works but make check >>> will >>> fail (Please see following output of make ckeck). As i can see the >>> -Werror >>> option is on, so i dont understand the line "cc1plus: warnings being >>> treated >>> as errors". >>> >> >> I believe that if a warning is generated, then it is normal for the >> compiler to state that warnings are being treated as errors on the first >> occurrence if the -Werror option is set. >> >>> >>> Furhtermore I have noticed that the following test examples are missing ( >>> I >>> am looking for them in src/tests as described in >>> https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/examples/README.txt) >>> : >>> >>> # ./direct_producer >>> # ./listener >>> >>> # ./server >>> # ./client >>> >>> >> These examples are located in the cpp/examples directory, not >> cpp/src/tests. I cannot find in the README file above (at least in the >> latest version on trunk) where the tests directory is mentioned. The >> examples are built as part of "make check"; it is possible that the >> error you are experiencing below may stop the build before it gets to >> the examples. >> >> >>> Making check in managementgen >>> make[1]: Entering directory >>> `/home/volare/mom_brokers/qpidc-0.6/managementgen' >>> make[1]: Nothing to be done for `check'. >>> make[1]: Leaving directory >>> `/home/volare/mom_brokers/qpidc-0.6/managementgen' >>> Making check in etc >>> make[1]: Entering directory `/home/volare/mom_brokers/qpidc-0.6/etc' >>> make[1]: Nothing to be done for `check'. >>> make[1]: Leaving directory `/home/volare/mom_brokers/qpidc-0.6/etc' >>> Making check in src >>> make[1]: Entering directory `/home/volare/mom_brokers/qpidc-0.6/src' >>> Making check in . >>> make[2]: Entering directory `/home/volare/mom_brokers/qpidc-0.6/src' >>> make[2]: Leaving directory `/home/volare/mom_brokers/qpidc-0.6/src' >>> Making check in tests >>> make[2]: Entering directory >>> `/home/volare/mom_brokers/qpidc-0.6/src/tests' >>> if test -d /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../python >>> -a >>> -d /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../specs; \ >>> then make -C >>> /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../python install >>> PREFIX=/home/volare/mom_brokers/qpidc-0.6/src/tests/python >>> PYTHON_LIB=/home/volare/mom_brokers/qpidc-0.6/src/tests/python >>> EXEC_PREFIX=/home/volare/mom_brokers/qpidc-0.6/src/tests/python/commands >>> AMQP_SPEC_DIR=/home/volare/mom_brokers/qpidc-0.6/src/tests/../../../specs; >>> \ >>> else echo "WARNING: python client not built, missing one of >>> /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../python >>> /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../specs"; fi >>> WARNING: python client not built, missing one of >>> /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../python >>> /home/volare/mom_brokers/qpidc-0.6/src/tests/../../../specs >>> make libshlibtest.la libdlclose_noop.la unit_test perftest txtest >>> latencytest echotest client_test topic_listener topic_publisher publish >>> consume header_test failover_soak declare_queues replaying_sender >>> resuming_receiver txshift txjob PollerTest DispatcherTest qpid_ping >>> datagen >>> qrsh_server qrsh_run qrsh qpid_stream >>> make[3]: Entering directory >>> `/home/volare/mom_brokers/qpidc-0.6/src/tests' >>> make[3]: `libshlibtest.la' is up to date. >>> make[3]: `libdlclose_noop.la' is up to date. >>> make[3]: `unit_test' is up to date. >>> make[3]: `perftest' is up to date. >>> make[3]: `txtest' is up to date. >>> make[3]: `latencytest' is up to date. >>> make[3]: `echotest' is up to date. >>> make[3]: `client_test' is up to date. >>> make[3]: `topic_listener' is up to date. >>> make[3]: `topic_publisher' is up to date. >>> make[3]: `publish' is up to date. >>> make[3]: `consume' is up to date. >>> make[3]: `header_test' is up to date. >>> make[3]: `failover_soak' is up to date. >>> make[3]: `declare_queues' is up to date. >>> make[3]: `replaying_sender' is up to date. >>> make[3]: `resuming_receiver' is up to date. >>> make[3]: `txshift' is up to date. >>> make[3]: `txjob' is up to date. >>> make[3]: `PollerTest' is up to date. >>> make[3]: `DispatcherTest' is up to date. >>> make[3]: `qpid_ping' is up to date. >>> make[3]: `datagen' is up to date. >>> depbase=`echo qrsh_server.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ >>> g++ -DHAVE_CONFIG_H -I. -I../../src -I../../include -I../../include >>> -I../../src -I../../src -Werror -pedantic -Wall -Wextra -Wno-shadow >>> -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long >>> -Wvolatile-register-var -Winvalid-pch -Wno-system-headers >>> -Woverloaded-virtual -DBOOST_TEST_DYN_LINK -g -O2 -MT qrsh_server.o -MD >>> -MP >>> -MF $depbase.Tpo -c -o qrsh_server.o qrsh_server.cpp&&\ >>> mv -f $depbase.Tpo $depbase.Po >>> cc1plus: warnings being treated as errors >>> qrsh_server.cpp: In member function ‘void >>> qpid::tests::QrshServer::getNames()’: >>> qrsh_server.cpp:489: error: ignoring return value of ‘int fscanf(FILE*, >>> const char*, ...)’, declared with attribute warn_unused_result >>> qrsh_server.cpp: In member function ‘void >>> qpid::tests::QrshServer::execute(const qpid::client::Message&)’: >>> qrsh_server.cpp:590: error: ignoring return value of ‘int system(const >>> char*)’, declared with attribute warn_unused_result >>> make[3]: *** [qrsh_server.o] Error 1 >>> make[3]: Leaving directory `/home/volare/mom_brokers/qpidc-0.6/src/tests' >>> make[2]: *** [check-am] Error 2 >>> make[2]: Leaving directory `/home/volare/mom_brokers/qpidc-0.6/src/tests' >>> make[1]: *** [check-recursive] Error 1 >>> make[1]: Leaving directory `/home/volare/mom_brokers/qpidc-0.6/src' >>> make: *** [check-recursive] Error 1 >>> >>> >> It might be helpful if you could tell us which distribution you are >> using, and what the compiler version is. >> >> It looks on the face of it that your compiler is tuning on a >> "warn_unused_result" warning check - possibly as part of the -Wall flag >> which is set during configure, and this is picking up these two lines in >> the qrsh_server.cpp file - which do indeed ignore the result of two >> system calls, and should be fixed at some point. I would see if you can >> override that particular warning flag, or turn off the -Werror flag - >> that should get you a compile you can use. >> >> Adding a (void) cast before the calls should silence the compiler. If > that does the trick attach a patch to a JIRA and we can commit it. > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > > -- Mit freundlichen Grüßen, Mario Grotschar [email protected]
