Gearman Server and Client Libraries

compiling gearmand libevent on linux

Asked by ray on 2012-03-28

After typing make to compile gearmand on Debian 4.3.2-1.1... I get this error:

./libgearman-server/gearmand.h:53:19: error: event.h: No such file or directory
In file included from ./libgearman-server/gearmand_thread.h:18,
                 from ./libgearman-server/gearmand.h:73,
                 from gearmand/gearmand.cc:37:
./libgearman-server/struct/gearmand_thread.h:57: error: field ‘wakeup_event’ has incomplete type
In file included from ./libgearman-server/gearmand_con.h:20,
                 from ./libgearman-server/gearmand.h:74,
                 from gearmand/gearmand.cc:37:
./libgearman-server/struct/gearmand_con.h:49: error: field ‘event’ has incomplete type
In file included from ./libgearman-server/gearmand.h:76,
                 from gearmand/gearmand.cc:37:
./libgearman-server/struct/gearmand.h:63: error: field ‘wakeup_event’ has incomplete type
make[1]: *** [gearmand/gearmand_gearmand-gearmand.o] Error 1

I downloaded libevent and boost and compiled them myself; installed them in /local too. This is the configure command I used:

LIBEVENT_CPPFLAGS="-I/local/usr/local/libevent-1.4.13/include" LIBEVENT_LDFLAGS="-L/local/usr/local/libevent-1.4.13/lib" BOOST_ROOT=/local/usr/local/boost-1.49.0 ./configure --prefix=/local/usr/local/gearmand-0.29

Is there anything I'm missing?

Question information

Language:
English Edit question
Status:
Answered
For:
Gearman Edit question
Assignee:
No assignee Edit question
Last query:
2012-03-28
Last reply:
2012-12-13

This question was reopened

  • 2012-03-28 by ray
ray (rpq--) said : #1

These lines precede the error message:

  CXX gearmand/gearmand_gearmand-gearmand.o
In file included from gearmand/gearmand.cc:37:
./libgearman-server/gearmand.h:53:19: error: event.h: No such file or directory

ray (rpq--) said : #2

These lines precede the error message:

  CXX gearmand/gearmand_gearmand-gearmand.o
In file included from gearmand/gearmand.cc:37:
./libgearman-server/gearmand.h:53:19: error: event.h: No such file or directory

Jerome Eteve (jerome-eteve) said : #3

I believe gearman needs to be linked against libevent-2 , not libevent1.

guweigang (guweigang) said : #4

Modify Makefile

LIBEVENT_CPPFLAGS = -I/home/guweigang/local/include -I/home/guweigang/local/include/event2
LIBEVENT_LDFLAGS = -L/home/guweigang/local/lib64 -levent

and

DEFAULT_INCLUDES = -I. -I/home/guweigang/local/include -I/home/guweigang/local/include/event2

But i still failed there

[guweigang@maybach ~/download/gearmand-1.1.3]$ make
make -j9 all-am
make[1]: Entering directory `/home/guweigang/download/gearmand-1.1.3'
  CXX libtest/libtest_libtest_la-vchar.lo
  CXX libtest/libtest_libtest_la-blobslap_worker.lo
  CXX libtest/libtest_libtest_la-gearmand.lo
  CXX util/libtest_libtest_la-instance.lo
  CXX util/libtest_libtest_la-operation.lo
  CXX libtest/libtest_libtest_la-tmpfile.lo
  CXX libtest/abort.o
  CXX libtest/wait.o
  CXX libtest/dream.o
  CC libhostile/libhostile_libhostile_la-dummy.lo
  CC libhostile/libhostile_libhostile_la-initialize.lo
  CC libhostile/libhostile_libhostile_la-accept.lo
  CC libhostile/libhostile_libhostile_la-called.lo
  CC libhostile/libhostile_libhostile_la-function.lo
  CC libhostile/libhostile_libhostile_la-getaddrinfo.lo
  CC libhostile/libhostile_libhostile_la-malloc.lo
  CC libhostile/libhostile_libhostile_la-pipe.lo
  CC libhostile/libhostile_libhostile_la-poll.lo
  CC libhostile/libhostile_libhostile_la-realloc.lo
  CC libhostile/libhostile_libhostile_la-recv.lo
  CC libhostile/libhostile_libhostile_la-send.lo
  CC libhostile/libhostile_libhostile_la-socket_server.lo
  CC libhostile/libhostile_libhostile_la-setsockopt.lo
  CC libhostile/libhostile_libhostile_la-write.lo
  CXX benchmark/benchmark.lo
  CXX libgearman-server/error/libgearman_server_libgearman_server_la-strerror.lo
  CXX libgearman-server/plugins/libgearman_server_libgearman_server_la-base.lo
  CXX libgearman-server/plugins/protocol/http/libgearman_server_libgearman_server_la-protocol.lo
  CXX libgearman-server/plugins/protocol/http/libgearman_server_libgearman_server_la-response_codes.lo
  CXX libgearman-server/plugins/protocol/http/libgearman_server_libgearman_server_la-method.lo
  CXX libgearman-server/plugins/protocol/gear/libgearman_server_libgearman_server_la-protocol.lo
  CXX libgearman-server/plugins/queue/libgearman_server_libgearman_server_la-base.lo
  CXX libgearman-server/plugins/queue/default/libgearman_server_libgearman_server_la-queue.lo
  CXX libgearman-server/plugins/queue/mysql/libgearman_server_libgearman_server_la-queue.lo
  CXX libgearman/libgearman_server_libgearman_server_la-pipe.lo
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from libgearman-server/plugins/base.cc:40:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/queue/base.h:40,
                 from libgearman-server/plugins/queue/base.cc:40:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-text.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-byteorder.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-client.lo
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/queue/base.h:40,
                 from libgearman-server/plugins/queue/default/queue.cc:48:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/protocol/http/protocol.h:46,
                 from libgearman-server/plugins/protocol/http/protocol.cc:52:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/protocol/gear/protocol.h:41,
                 from libgearman-server/plugins/protocol/gear/protocol.cc:53:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/queue/base.h:40,
                 from libgearman-server/plugins/queue/mysql/queue.cc:47:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
  CC libgearman-server/libgearman_server_libgearman_server_la-connection.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-connection_plus.lo
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from libgearman-server/connection_plus.cc:40:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-connection_list.lo
  CC libgearman-server/libgearman_server_libgearman_server_la-fifo.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-function.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-gearmand.lo
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/protocol/gear/protocol.h:41,
                 from ./libgearman-server/plugins/protocol.h:40,
                 from ./libgearman-server/plugins.h:42,
                 from libgearman-server/gearmand.cc:59:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/queue/base.h:40,
                 from libgearman-server/plugins/queue/mysql/queue.cc:47:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/queue/base.h:40,
                 from libgearman-server/plugins/queue/base.cc:40:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/queue/base.h:40,
                 from libgearman-server/plugins/queue/default/queue.cc:48:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from libgearman-server/plugins/base.cc:40:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from libgearman-server/connection_plus.cc:40:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/protocol/http/protocol.h:46,
                 from libgearman-server/plugins/protocol/http/protocol.cc:52:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]

/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]

/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/protocol/gear/protocol.h:41,
                 from libgearman-server/plugins/protocol/gear/protocol.cc:53:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CC libgearman-server/libgearman_server_libgearman_server_la-gearmand_con.lo
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/protocol/gear/protocol.h:41,
                 from ./libgearman-server/plugins/protocol.h:40,
                 from ./libgearman-server/plugins.h:42,
                 from libgearman-server/gearmand.cc:59:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-gearmand_con_plus.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-gearmand_thread.lo
  CC libgearman-server/libgearman_server_libgearman_server_la-hash.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-io.lo
  CC libgearman-server/libgearman_server_libgearman_server_la-job.lo
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from libgearman-server/io.cc:46:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-job_plus.lo
  CC libgearman-server/libgearman_server_libgearman_server_la-list.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-log.lo
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from libgearman-server/io.cc:46:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-packet.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-plugins.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-queue.lo
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from ./libgearman-server/plugins/protocol/gear/protocol.h:41,
                 from ./libgearman-server/plugins/protocol.h:40,
                 from ./libgearman-server/plugins.h:42,
                 from libgearman-server/plugins.cc:41:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from ./libgearman-server/plugins/protocol/gear/protocol.h:41,
                 from ./libgearman-server/plugins/protocol.h:40,
                 from ./libgearman-server/plugins.h:42,
                 from libgearman-server/plugins.cc:41:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-server.lo
In file included from libgearman-server/queue.cc:42:0:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from ./libgearman-server/plugins/base.h:40:0,
                 from libgearman-server/server.cc:48:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from libgearman-server/queue.cc:42:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CC libgearman-server/libgearman_server_libgearman_server_la-thread.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-timer.lo
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from ./libgearman-server/plugins/base.h:40,
                 from libgearman-server/server.cc:48:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CXX libgearman-server/libgearman_server_libgearman_server_la-wakeup.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-worker.lo
  CXX libgearman/libgearman_server_libgearman_server_la-command.lo
  CXX libgearman/libgearman_server_libgearman_server_la-strcommand.lo
  CXX libgearman/libgearman_libgearmancore_la-allocator.lo
  CXX libgearman/libgearman_libgearmancore_la-backtrace.lo
  CXX libgearman/libgearman_libgearmancore_la-byteorder.lo
  CXX libgearman/libgearman_libgearmancore_la-command.lo
  CXX libgearman/libgearman_libgearmancore_la-connection.lo
  CXX libgearman/libgearman_libgearmancore_la-error.lo
  CXX libgearman/libgearman_libgearmancore_la-log.lo
  CXX libgearman/libgearman_libgearmancore_la-packet.lo
  CXX libgearman/libgearman_libgearmancore_la-strcommand.lo
  CXX libgearman/libgearman_libgearmancore_la-strerror.lo
  CXX libgearman/libgearman_libgearmancore_la-universal.lo
  CXX libgearman/libgearman_libgearmancore_la-vector.lo
  CXX tests/tests_libstartworker_la-start_worker.lo
  CXX util/tests_libstartworker_la-instance.lo
  CXX util/tests_libstartworker_la-operation.lo
  CXX tests/workers/aggregator/tests_libstartworker_la-cat.lo
  CXX tests/workers/v1/tests_libstartworker_la-echo_or_react.lo
  CXX tests/workers/v1/tests_libstartworker_la-echo_or_react_chunk.lo
  CXX tests/workers/v1/tests_libstartworker_la-echo_or_react_chunk_worker.lo
  CXX tests/workers/v1/tests_libstartworker_la-increment_reset_worker.lo
  CXX tests/workers/v1/tests_libstartworker_la-unique.lo
  CXX tests/workers/v2/tests_libstartworker_la-called.lo
  CXX tests/workers/v2/tests_libstartworker_la-count.lo
  CXX tests/workers/v2/tests_libstartworker_la-echo_or_react.lo
  CXX tests/workers/v2/tests_libstartworker_la-echo_or_react_chunk.lo
  CXX tests/workers/v2/tests_libstartworker_la-increment_reset.lo
  CXX tests/workers/v2/tests_libstartworker_la-sleep_return_random.lo
  CXX tests/workers/v2/tests_libstartworker_la-split.lo
  CXX tests/workers/v2/tests_libstartworker_la-unique.lo
  CXX bin/arguments.o
  CXX bin/function.o
  CXX bin/gearman.o
  CXX bin/error.o
  CXX util/pidfile.o
  CXX bin/bin_gearadmin-gearadmin.o
  CXX util/bin_gearadmin-instance.o
In file included from bin/gearadmin.cc:84:0:
/home/guweigang/local/boost/include/boost/program_options.hpp:11:5: warning: "_MSC_VER" is not defined [-Wundef]
  CXX util/bin_gearadmin-operation.o
In file included from /home/guweigang/local/boost/include/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /home/guweigang/local/boost/include/boost/mpl/apply_wrap.hpp:23,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /home/guweigang/local/boost/include/boost/mpl/aux_/comparison_op.hpp:27,
                 from /home/guweigang/local/boost/include/boost/mpl/equal_to.hpp:19,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/meta.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/detail/conversion_traits.hpp:17,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/conversion_traits.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/converter.hpp:13,
                 from /home/guweigang/local/boost/include/boost/numeric/conversion/cast.hpp:32,
                 from /home/guweigang/local/boost/include/boost/lexical_cast.hpp:31,
                 from /home/guweigang/local/boost/include/boost/program_options/value_semantic.hpp:14,
                 from /home/guweigang/local/boost/include/boost/program_options/options_description.hpp:13,
                 from /home/guweigang/local/boost/include/boost/program_options.hpp:15,
                 from bin/gearadmin.cc:84:
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:344:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:357:9: warning: "BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:386:9: warning: "BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION" is not defined [-Wundef]
/home/guweigang/local/boost/include/boost/mpl/has_xxx.hpp:459:8: warning: "BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE" is not defined [-Wundef]
  CXX libtest/libtest_unittest-unittest.o
  CXX gearmand/gearmand_gearmand-gearmand.o
  CXX util/gearmand_gearmand-daemon.o
  CXX util/gearmand_gearmand-pidfile.o
In file included from gearmand/gearmand.cc:67:0:
./libgearman-server/gearmand.h:52:19: fatal error: event.h: No such file or directory
compilation terminated.
make[1]: *** [gearmand/gearmand_gearmand-gearmand.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /home/guweigang/local/boost/include/boost/date_time/posix_time/conversion.hpp:18:0,
                 from /home/guweigang/local/boost/include/boost/thread/xtime.hpp:15,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/mutex.hpp:14,
                 from /home/guweigang/local/boost/include/boost/thread/mutex.hpp:16,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/thread_data.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/thread.hpp:17,
                 from /home/guweigang/local/boost/include/boost/thread.hpp:13,
                 from ./tests/start_worker.h:44,
                 from tests/start_worker.cc:56:
/home/guweigang/local/boost/include/boost/date_time/gregorian/conversion.hpp: In function 'tm boost::gregorian::to_tm(const boost::gregorian::date&)':
/home/guweigang/local/boost/include/boost/date_time/gregorian/conversion.hpp:31:16: warning: enumeration value 'min_date_time' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/gregorian/conversion.hpp:31:16: warning: enumeration value 'max_date_time' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/gregorian/conversion.hpp:31:16: warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/gregorian/conversion.hpp:31:16: warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]
In file included from /home/guweigang/local/boost/include/boost/thread/condition_variable.hpp:16:0,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/shared_mutex.hpp:13,
                 from /home/guweigang/local/boost/include/boost/thread/shared_mutex.hpp:16,
                 from /home/guweigang/local/boost/include/boost/thread/detail/thread_group.hpp:9,
                 from /home/guweigang/local/boost/include/boost/thread/thread.hpp:24,
                 from /home/guweigang/local/boost/include/boost/thread.hpp:13,
                 from ./tests/start_worker.h:44,
                 from tests/start_worker.cc:56:
/home/guweigang/local/boost/include/boost/thread/pthread/condition_variable.hpp: At global scope:
/home/guweigang/local/boost/include/boost/thread/pthread/condition_variable.hpp:19:51: warning: redundant redeclaration of 'void boost::this_thread::interruption_point()' in same scope [-Wredundant-decls]
/home/guweigang/local/boost/include/boost/thread/detail/thread.hpp:379:32: warning: previous declaration of 'void boost::this_thread::interruption_point()' [-Wredundant-decls]
In file included from /home/guweigang/local/boost/include/boost/date_time/time_resolution_traits.hpp:15:0,
                 from /home/guweigang/local/boost/include/boost/date_time/posix_time/posix_time_config.hpp:17,
                 from /home/guweigang/local/boost/include/boost/date_time/posix_time/posix_time_system.hpp:13,
                 from /home/guweigang/local/boost/include/boost/date_time/posix_time/ptime.hpp:12,
                 from /home/guweigang/local/boost/include/boost/date_time/posix_time/posix_time_types.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/thread_time.hpp:11,
                 from /home/guweigang/local/boost/include/boost/thread/locks.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/mutex.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/mutex.hpp:16,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/thread_data.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/thread.hpp:17,
                 from /home/guweigang/local/boost/include/boost/thread.hpp:13,
                 from ./tests/start_worker.h:44,
                 from tests/start_worker.cc:56:
/home/guweigang/local/boost/include/boost/date_time/int_adapter.hpp: In static member function 'static boost::date_time::int_adapter<int_type_> boost::date_time::int_adapter<int_type_>::from_special(boost::date_time::special_values) [with int_type_ = unsigned int, boost::date_time::int_adapter<int_type_> = boost::date_time::int_adapter<unsigned int>]':
/home/guweigang/local/boost/include/boost/date_time/gregorian/greg_date.hpp:51:79: instantiated from here
/home/guweigang/local/boost/include/boost/date_time/int_adapter.hpp:72:5: warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/int_adapter.hpp:72:5: warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/int_adapter.hpp: In static member function 'static boost::date_time::int_adapter<int_type_> boost::date_time::int_adapter<int_type_>::from_special(boost::date_time::special_values) [with int_type_ = long int, boost::date_time::int_adapter<int_type_> = boost::date_time::int_adapter<long int>]':
/home/guweigang/local/boost/include/boost/date_time/date_duration.hpp:40:49: instantiated from 'boost::date_time::date_duration<duration_rep_traits>::date_duration(boost::date_time::special_values) [with duration_rep_traits = boost::date_time::duration_traits_adapted]'
/home/guweigang/local/boost/include/boost/date_time/gregorian/greg_duration.hpp:37:63: instantiated from here
/home/guweigang/local/boost/include/boost/date_time/int_adapter.hpp:72:5: warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/int_adapter.hpp:72:5: warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]
In file included from /home/guweigang/local/boost/include/boost/date_time/posix_time/posix_time_system.hpp:15:0,
                 from /home/guweigang/local/boost/include/boost/date_time/posix_time/ptime.hpp:12,
                 from /home/guweigang/local/boost/include/boost/date_time/posix_time/posix_time_types.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/thread_time.hpp:11,
                 from /home/guweigang/local/boost/include/boost/thread/locks.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/mutex.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/mutex.hpp:16,
                 from /home/guweigang/local/boost/include/boost/thread/pthread/thread_data.hpp:12,
                 from /home/guweigang/local/boost/include/boost/thread/thread.hpp:17,
                 from /home/guweigang/local/boost/include/boost/thread.hpp:13,
                 from ./tests/start_worker.h:44,
                 from tests/start_worker.cc:56:
/home/guweigang/local/boost/include/boost/date_time/time_system_counted.hpp: In static member function 'static boost::date_time::counted_time_system<time_rep>::time_rep_type boost::date_time::counted_time_system<time_rep>::get_time_rep(boost::date_time::special_values) [with time_rep = boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>, boost::date_time::counted_time_system<time_rep>::time_rep_type = boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config>]':
/home/guweigang/local/boost/include/boost/date_time/time.hpp:65:42: instantiated from 'boost::date_time::base_time<T, time_system>::base_time(boost::date_time::special_values) [with T = boost::posix_time::ptime, time_system = boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config> >]'
/home/guweigang/local/boost/include/boost/date_time/posix_time/ptime.hpp:49:89: instantiated from here
/home/guweigang/local/boost/include/boost/date_time/time_system_counted.hpp:143:7: warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]
/home/guweigang/local/boost/include/boost/date_time/time_system_counted.hpp:143:7: warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]
make[1]: Leaving directory `/home/guweigang/download/gearmand-1.1.3'
make: *** [all] Error 2

winsinghi (winsinghi) said : #5

$ wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
$ tar xzf libevent-1.4.14b-stable.tar.gz
$ cd libevent-1.4.14b-stable
$ ./configure --prefix=/opt/libevent
# hopefully, you haven’t encountered any errors so far
$ make
# make install

Can you help with this problem?

Provide an answer of your own, or ask ray for more information if necessary.

To post a message you must log in.