Hi,
One problem with compiling this way, is that the C program that we test with is not going to compile (since gcc handles the magic for std:: bits).
Any reason why building both is an issue?
Cheers, -Brian
On Jan 5, 2012, at 10:00 AM, David Barr wrote:
> Public bug reported: > > I'm on Ubuntu 10.04. gearmand-0.26. > > ./configure --enable-shared=no > make > [...] > CXXLD examples/wc_worker > CXX gearmand/gearmand_hostile_gearmand-gearmand.o > CXX util/gearmand_hostile_gearmand-daemon.o > CXX util/gearmand_hostile_gearmand-pidfile.o > CXXLD gearmand/hostile_gearmand > CXX tests/killall.o > CXXLD tests/killall > CXX tests/cycle.o > CXXLD tests/cycle > tests/.libs/libstartworker.a(tests_libstartworker_la-start_worker.o): In function `thread_runner': > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:145: undefined reference to `gearman_worker_id' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:149: undefined reference to `gearman_worker_set_namespace' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:152: undefined reference to `gearman_worker_add_server' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:165: undefined reference to `gearman_worker_set_server_option' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:176: undefined reference to `gearman_worker_define_function' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:182: undefined reference to `gearman_worker_error' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:189: undefined reference to `gearman_worker_add_options' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:196: undefined reference to `gearman_worker_work' > tests/.libs/libstartworker.a(tests_libstartworker_la-start_worker.o): In function `Worker': > /home/barr/gearman/gearmand-0.26/./tests/worker.h:44: undefined reference to `gearman_worker_create' > tests/.libs/libstartworker.a(tests_libstartworker_la-start_worker.o): In function `~Worker': > /home/barr/gearman/gearmand-0.26/./tests/worker.h:64: undefined reference to `gearman_worker_free' > collect2: ld returned 1 exit status > make[1]: *** [tests/cycle] Error 1 > make[1]: Leaving directory `/home/barr/gearman/gearmand-0.26' > make: *** [all] Error 2 > > ** Affects: gearmand > Importance: Undecided > Status: New > > -- > You received this bug notification because you are subscribed to > Gearman. > https://bugs.launchpad.net/bugs/912414 > > Title: > tests fail to compile with --enable-shared=no > > Status in Gearman Server and Client Libraries: > New > > Bug description: > I'm on Ubuntu 10.04. gearmand-0.26. > > ./configure --enable-shared=no > make > [...] > CXXLD examples/wc_worker > CXX gearmand/gearmand_hostile_gearmand-gearmand.o > CXX util/gearmand_hostile_gearmand-daemon.o > CXX util/gearmand_hostile_gearmand-pidfile.o > CXXLD gearmand/hostile_gearmand > CXX tests/killall.o > CXXLD tests/killall > CXX tests/cycle.o > CXXLD tests/cycle > tests/.libs/libstartworker.a(tests_libstartworker_la-start_worker.o): In function `thread_runner': > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:145: undefined reference to `gearman_worker_id' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:149: undefined reference to `gearman_worker_set_namespace' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:152: undefined reference to `gearman_worker_add_server' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:165: undefined reference to `gearman_worker_set_server_option' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:176: undefined reference to `gearman_worker_define_function' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:182: undefined reference to `gearman_worker_error' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:189: undefined reference to `gearman_worker_add_options' > /home/barr/gearman/gearmand-0.26/tests/start_worker.cc:196: undefined reference to `gearman_worker_work' > tests/.libs/libstartworker.a(tests_libstartworker_la-start_worker.o): In function `Worker': > /home/barr/gearman/gearmand-0.26/./tests/worker.h:44: undefined reference to `gearman_worker_create' > tests/.libs/libstartworker.a(tests_libstartworker_la-start_worker.o): In function `~Worker': > /home/barr/gearman/gearmand-0.26/./tests/worker.h:64: undefined reference to `gearman_worker_free' > collect2: ld returned 1 exit status > make[1]: *** [tests/cycle] Error 1 > make[1]: Leaving directory `/home/barr/gearman/gearmand-0.26' > make: *** [all] Error 2 > > To manage notifications about this bug go to: > https://bugs.launchpad.net/gearmand/+bug/912414/+subscriptions
Hi,
One problem with compiling this way, is that the C program that we test with is not going to compile (since gcc handles the magic for std:: bits).
Any reason why building both is an issue?
Cheers,
-Brian
On Jan 5, 2012, at 10:00 AM, David Barr wrote:
> Public bug reported: gearmand_ hostile_ gearmand- gearmand. o hostile_ gearmand- daemon. o hostile_ gearmand- pidfile. o hostile_ gearmand libs/libstartwo rker.a( tests_libstartw orker_la- start_worker. o): In function `thread_runner': gearman/ gearmand- 0.26/tests/ start_worker. cc:145: undefined reference to `gearman_worker_id' gearman/ gearmand- 0.26/tests/ start_worker. cc:149: undefined reference to `gearman_ worker_ set_namespace' gearman/ gearmand- 0.26/tests/ start_worker. cc:152: undefined reference to `gearman_ worker_ add_server' gearman/ gearmand- 0.26/tests/ start_worker. cc:165: undefined reference to `gearman_ worker_ set_server_ option' gearman/ gearmand- 0.26/tests/ start_worker. cc:176: undefined reference to `gearman_ worker_ define_ function' gearman/ gearmand- 0.26/tests/ start_worker. cc:182: undefined reference to `gearman_ worker_ error' gearman/ gearmand- 0.26/tests/ start_worker. cc:189: undefined reference to `gearman_ worker_ add_options' gearman/ gearmand- 0.26/tests/ start_worker. cc:196: undefined reference to `gearman_ worker_ work' libs/libstartwo rker.a( tests_libstartw orker_la- start_worker. o): In function `Worker': gearman/ gearmand- 0.26/./ tests/worker. h:44: undefined reference to `gearman_ worker_ create' libs/libstartwo rker.a( tests_libstartw orker_la- start_worker. o): In function `~Worker': gearman/ gearmand- 0.26/./ tests/worker. h:64: undefined reference to `gearman_ worker_ free' barr/gearman/ gearmand- 0.26' /bugs.launchpad .net/bugs/ 912414 gearmand_ hostile_ gearmand- gearmand. o hostile_ gearmand- daemon. o hostile_ gearmand- pidfile. o hostile_ gearmand libs/libstartwo rker.a( tests_libstartw orker_la- start_worker. o): In function `thread_runner': gearman/ gearmand- 0.26/tests/ start_worker. cc:145: undefined reference to `gearman_worker_id' gearman/ gearmand- 0.26/tests/ start_worker. cc:149: undefined reference to `gearman_ worker_ set_namespace' gearman/ gearmand- 0.26/tests/ start_worker. cc:152: undefined reference to `gearman_ worker_ add_server' gearman/ gearmand- 0.26/tests/ start_worker. cc:165: undefined reference to `gearman_ worker_ set_server_ option' gearman/ gearmand- 0.26/tests/ start_worker. cc:176: undefined reference to `gearman_ worker_ define_ function' gearman/ gearmand- 0.26/tests/ start_worker. cc:182: undefined reference to `gearman_ worker_ error' gearman/ gearmand- 0.26/tests/ start_worker. cc:189: undefined reference to `gearman_ worker_ add_options' gearman/ gearmand- 0.26/tests/ start_worker. cc:196: undefined reference to `gearman_ worker_ work' libs/libstartwo rker.a( tests_libstartw orker_la- start_worker. o): In function `Worker': gearman/ gearmand- 0.26/./ tests/worker. h:44: undefined reference to `gearman_ worker_ create' libs/libstartwo rker.a( tests_libstartw orker_la- start_worker. o): In function `~Worker': gearman/ gearmand- 0.26/./ tests/worker. h:64: undefined reference to `gearman_ worker_ free' barr/gearman/ gearmand- 0.26' /bugs.launchpad .net/gearmand/ +bug/912414/ +subscriptions
>
> I'm on Ubuntu 10.04. gearmand-0.26.
>
> ./configure --enable-shared=no
> make
> [...]
> CXXLD examples/wc_worker
> CXX gearmand/
> CXX util/gearmand_
> CXX util/gearmand_
> CXXLD gearmand/
> CXX tests/killall.o
> CXXLD tests/killall
> CXX tests/cycle.o
> CXXLD tests/cycle
> tests/.
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> tests/.
> /home/barr/
> tests/.
> /home/barr/
> collect2: ld returned 1 exit status
> make[1]: *** [tests/cycle] Error 1
> make[1]: Leaving directory `/home/
> make: *** [all] Error 2
>
> ** Affects: gearmand
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> Gearman.
> https:/
>
> Title:
> tests fail to compile with --enable-shared=no
>
> Status in Gearman Server and Client Libraries:
> New
>
> Bug description:
> I'm on Ubuntu 10.04. gearmand-0.26.
>
> ./configure --enable-shared=no
> make
> [...]
> CXXLD examples/wc_worker
> CXX gearmand/
> CXX util/gearmand_
> CXX util/gearmand_
> CXXLD gearmand/
> CXX tests/killall.o
> CXXLD tests/killall
> CXX tests/cycle.o
> CXXLD tests/cycle
> tests/.
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> /home/barr/
> tests/.
> /home/barr/
> tests/.
> /home/barr/
> collect2: ld returned 1 exit status
> make[1]: *** [tests/cycle] Error 1
> make[1]: Leaving directory `/home/
> make: *** [all] Error 2
>
> To manage notifications about this bug go to:
> https:/