Make fails with 'Undefined symbols for architecture x86_64: "std::nothrow"'

Bug #1281194 reported by Dave on 2014-02-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Undecided
Unassigned

Bug Description

OSX Mavericks
Gearman 1.1.12 and 1.1.9 being compiled against macports.

Configure:
export LDFLAGS='-L/opt/local/lib'
export CPPFLAGS='-I/opt/local/include'
./configure -disable-shared -prefix=/opt/local

Make output
SOME REMOVED
...
In file included from /opt/local/include/boost/mpl/aux_/comparison_op.hpp:27:
In file included from /opt/local/include/boost/mpl/aux_/numeric_op.hpp:22:
In file included from /opt/local/include/boost/mpl/apply_wrap.hpp:23:
In file included from /opt/local/include/boost/mpl/aux_/has_apply.hpp:17:
/opt/local/include/boost/mpl/has_xxx.hpp:344:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:357:9: warning: 'BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:386:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:459:8: warning: 'BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE' is not defined, evaluates to 0 [-Wundef]
# if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
       ^
In file included from libgearman-server/thread.cc:45:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:167:
In file included from /opt/local/include/boost/math/special_functions/sign.hpp:18:
In file included from /opt/local/include/boost/math/special_functions/detail/fp_traits.hpp:27:
In file included from /opt/local/include/boost/detail/endian.hpp:9:
In file included from /opt/local/include/boost/predef/detail/endian_compat.h:11:
In file included from /opt/local/include/boost/predef/other/endian.h:14:
/opt/local/include/boost/predef/os/macos.h:34:6: warning: 'BOOST_PREDEF_DETAIL_OS_DETECTED' is not defined, evaluates to 0 [-Wundef]
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
     ^
8 warnings generated.
  CXX libgearman-server/libgearman_server_libgearman_server_la-timer.lo
In file included from libgearman-server/timer.cc:40:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
/opt/local/include/boost/program_options.hpp:11:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef]
#if _MSC_VER >= 1020
    ^
In file included from libgearman-server/timer.cc:40:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:13:
In file included from /opt/local/include/boost/function/function1.hpp:11:
In file included from /opt/local/include/boost/function/detail/maybe_include.hpp:18:
In file included from /opt/local/include/boost/function/function_template.hpp:13:
In file included from /opt/local/include/boost/function/detail/prologue.hpp:17:
/opt/local/include/boost/function/function_base.hpp:432:19: warning: 4 enumeration values not explicitly handled in switch: 'clone_functor_tag', 'move_functor_tag',
      'destroy_functor_tag'... [-Wswitch-enum]
          switch (op) {
                  ^
/opt/local/include/boost/function/function_base.hpp:535:19: warning: 4 enumeration values not explicitly handled in switch: 'clone_functor_tag', 'move_functor_tag',
      'destroy_functor_tag'... [-Wswitch-enum]
          switch (op) {
                  ^
In file included from libgearman-server/timer.cc:40:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:159:
In file included from /opt/local/include/boost/numeric/conversion/cast.hpp:33:
In file included from /opt/local/include/boost/numeric/conversion/converter.hpp:13:
In file included from /opt/local/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from /opt/local/include/boost/numeric/conversion/detail/conversion_traits.hpp:17:
In file included from /opt/local/include/boost/numeric/conversion/detail/meta.hpp:17:
In file included from /opt/local/include/boost/mpl/equal_to.hpp:19:
In file included from /opt/local/include/boost/mpl/aux_/comparison_op.hpp:27:
In file included from /opt/local/include/boost/mpl/aux_/numeric_op.hpp:22:
In file included from /opt/local/include/boost/mpl/apply_wrap.hpp:23:
In file included from /opt/local/include/boost/mpl/aux_/has_apply.hpp:17:
/opt/local/include/boost/mpl/has_xxx.hpp:344:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:357:9: warning: 'BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:386:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:459:8: warning: 'BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE' is not defined, evaluates to 0 [-Wundef]
# if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
       ^
In file included from libgearman-server/timer.cc:40:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:167:
In file included from /opt/local/include/boost/math/special_functions/sign.hpp:18:
In file included from /opt/local/include/boost/math/special_functions/detail/fp_traits.hpp:27:
In file included from /opt/local/include/boost/detail/endian.hpp:9:
In file included from /opt/local/include/boost/predef/detail/endian_compat.h:11:
In file included from /opt/local/include/boost/predef/other/endian.h:14:
/opt/local/include/boost/predef/os/macos.h:34:6: warning: 'BOOST_PREDEF_DETAIL_OS_DETECTED' is not defined, evaluates to 0 [-Wundef]
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
     ^
8 warnings generated.
  CXX libgearman-server/libgearman_server_libgearman_server_la-wakeup.lo
  CXX libgearman-server/libgearman_server_libgearman_server_la-worker.lo
In file included from libgearman-server/worker.cc:45:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
/opt/local/include/boost/program_options.hpp:11:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef]
#if _MSC_VER >= 1020
    ^
In file included from libgearman-server/worker.cc:45:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:13:
In file included from /opt/local/include/boost/function/function1.hpp:11:
In file included from /opt/local/include/boost/function/detail/maybe_include.hpp:18:
In file included from /opt/local/include/boost/function/function_template.hpp:13:
In file included from /opt/local/include/boost/function/detail/prologue.hpp:17:
/opt/local/include/boost/function/function_base.hpp:432:19: warning: 4 enumeration values not explicitly handled in switch: 'clone_functor_tag', 'move_functor_tag',
      'destroy_functor_tag'... [-Wswitch-enum]
          switch (op) {
                  ^
/opt/local/include/boost/function/function_base.hpp:535:19: warning: 4 enumeration values not explicitly handled in switch: 'clone_functor_tag', 'move_functor_tag',
      'destroy_functor_tag'... [-Wswitch-enum]
          switch (op) {
                  ^
In file included from libgearman-server/worker.cc:45:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:159:
In file included from /opt/local/include/boost/numeric/conversion/cast.hpp:33:
In file included from /opt/local/include/boost/numeric/conversion/converter.hpp:13:
In file included from /opt/local/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from /opt/local/include/boost/numeric/conversion/detail/conversion_traits.hpp:17:
In file included from /opt/local/include/boost/numeric/conversion/detail/meta.hpp:17:
In file included from /opt/local/include/boost/mpl/equal_to.hpp:19:
In file included from /opt/local/include/boost/mpl/aux_/comparison_op.hpp:27:
In file included from /opt/local/include/boost/mpl/aux_/numeric_op.hpp:22:
In file included from /opt/local/include/boost/mpl/apply_wrap.hpp:23:
In file included from /opt/local/include/boost/mpl/aux_/has_apply.hpp:17:
/opt/local/include/boost/mpl/has_xxx.hpp:344:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:357:9: warning: 'BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:386:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:459:8: warning: 'BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE' is not defined, evaluates to 0 [-Wundef]
# if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
       ^
In file included from libgearman-server/worker.cc:45:
In file included from ./libgearman-server/common.h:46:
In file included from ./libgearman-server/gearmand.h:63:
In file included from ./libgearman-server/connection.h:49:
In file included from ./libgearman-server/struct/io.h:40:
In file included from ./libgearman-server/plugins/base.h:40:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:167:
In file included from /opt/local/include/boost/math/special_functions/sign.hpp:18:
In file included from /opt/local/include/boost/math/special_functions/detail/fp_traits.hpp:27:
In file included from /opt/local/include/boost/detail/endian.hpp:9:
In file included from /opt/local/include/boost/predef/detail/endian_compat.h:11:
In file included from /opt/local/include/boost/predef/other/endian.h:14:
/opt/local/include/boost/predef/os/macos.h:34:6: warning: 'BOOST_PREDEF_DETAIL_OS_DETECTED' is not defined, evaluates to 0 [-Wundef]
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
     ^
8 warnings generated.
  CXX libgearman/libgearman_server_libgearman_server_la-command.lo
  CXX libgearman/libgearman_server_libgearman_server_la-strerror.lo
  CXXLD libgearman-server/libgearman-server.la
copying selected object files to avoid basename conflicts...
/opt/local/bin/ranlib: file: libgearman-server/.libs/libgearman-server.a(lt4-libgearman_server_libgearman_server_la-queue.o) has no symbols
ranlib: file: libgearman-server/.libs/libgearman-server.a(lt4-libgearman_server_libgearman_server_la-queue.o) has no symbols
  CXX libgearman/libgearman_libgearman_vector_la-vector.lo
  CXX libgearman/libgearman_libgearman_vector_la-backtrace.lo
  CXXLD libgearman/libgearman-vector.la
  CXX libgearman/libgearman_libgearman_result_la-vector.lo
  CXX libgearman/libgearman_libgearman_result_la-result.lo
  CXX libgearman/libgearman_libgearman_result_la-backtrace.lo
  CXXLD libgearman/libgearman-result.la
  CXX libgearman/libgearman_libgearman_hostile_la-check.lo
  CXX libgearman/libgearman_libgearman_hostile_la-actions.lo
  CXX libgearman/libgearman_libgearman_hostile_la-aggregator.lo
  CXX libgearman/libgearman_libgearman_hostile_la-allocator.lo
  CXX libgearman/libgearman_libgearman_hostile_la-argument.lo
  CXX libgearman/libgearman_libgearman_hostile_la-add.lo
  CXX libgearman/libgearman_libgearman_hostile_la-backtrace.lo
  CXX libgearman/libgearman_libgearman_hostile_la-byteorder.lo
  CXX libgearman/libgearman_libgearman_hostile_la-client.lo
  CXX libgearman/libgearman_libgearman_hostile_la-command.lo
  CXX libgearman/libgearman_libgearman_hostile_la-connection.lo
  CXX libgearman/libgearman_libgearman_hostile_la-do.lo
  CXX libgearman/libgearman_libgearman_hostile_la-error.lo
  CXX libgearman/libgearman_libgearman_hostile_la-error_code.lo
  CXX libgearman/libgearman_libgearman_hostile_la-execute.lo
  CXX libgearman/libgearman_libgearman_hostile_la-function.lo
  CXX libgearman/function/libgearman_libgearman_hostile_la-function_v2.lo
  CXX libgearman/function/libgearman_libgearman_hostile_la-make.lo
  CXX libgearman/function/libgearman_libgearman_hostile_la-partition.lo
  CXX libgearman/libgearman_libgearman_hostile_la-gearman.lo
  CXX libgearman/libgearman_libgearman_hostile_la-job.lo
  CXX libgearman/libgearman_libgearman_hostile_la-kill.lo
  CXX libgearman/libgearman_libgearman_hostile_la-log.lo
  CXX libgearman/libgearman_libgearman_hostile_la-packet.lo
  CXX libgearman/libgearman_libgearman_hostile_la-parse.lo
  CXX libgearman/protocol/libgearman_libgearman_hostile_la-echo.lo
  CXX libgearman/protocol/libgearman_libgearman_hostile_la-option.lo
  CXX libgearman/protocol/libgearman_libgearman_hostile_la-submit.lo
  CXX libgearman/protocol/libgearman_libgearman_hostile_la-work_exception.lo
  CXX libgearman/libgearman_libgearman_hostile_la-result.lo
  CXX libgearman/libgearman_libgearman_hostile_la-run.lo
  CXX libgearman/libgearman_libgearman_hostile_la-status.lo
  CXX libgearman/libgearman_libgearman_hostile_la-strerror.lo
  CXX libgearman/libgearman_libgearman_hostile_la-string.lo
  CXX libgearman/libgearman_libgearman_hostile_la-task.lo
  CXX libgearman/libgearman_libgearman_hostile_la-task_attr.lo
  CXX libgearman/libgearman_libgearman_hostile_la-unique.lo
  CXX libgearman/libgearman_libgearman_hostile_la-server_options.lo
  CXX libgearman/libgearman_libgearman_hostile_la-universal.lo
  CXX libgearman/libgearman_libgearman_hostile_la-vector.lo
  CXX libgearman/libgearman_libgearman_hostile_la-worker.lo
  CXX libgearman/libgearman_libgearman_hostile_la-pipe.lo
  CXX libgearman/libgearman_libgearman_hostile_la-uuid.lo
  CXXLD libgearman/libgearman-hostile.la
/opt/local/bin/ranlib: file: libgearman/.libs/libgearman-hostile.a(libgearman_libgearman_hostile_la-string.o) has no symbols
/opt/local/bin/ranlib: file: libgearman/.libs/libgearman-hostile.a(libhashkit_libhashkit_la-behavior.o) has no symbols
/opt/local/bin/ranlib: file: libgearman/.libs/libgearman-hostile.a(libhashkit_libhashkit_la-ketama.o) has no symbols
ranlib: file: libgearman/.libs/libgearman-hostile.a(libgearman_libgearman_hostile_la-string.o) has no symbols
ranlib: file: libgearman/.libs/libgearman-hostile.a(libhashkit_libhashkit_la-behavior.o) has no symbols
ranlib: file: libgearman/.libs/libgearman-hostile.a(libhashkit_libhashkit_la-ketama.o) has no symbols
  CXX bin/arguments.o
  CXX bin/function.o
  CXX bin/gearman.o
  CXX bin/error.o
  CXX util/pidfile.o
  CXXLD bin/gearman
  CXX bin/gearadmin.o
In file included from bin/gearadmin.cc:84:
/opt/local/include/boost/program_options.hpp:11:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef]
#if _MSC_VER >= 1020
    ^
In file included from bin/gearadmin.cc:84:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:13:
In file included from /opt/local/include/boost/function/function1.hpp:11:
In file included from /opt/local/include/boost/function/detail/maybe_include.hpp:18:
In file included from /opt/local/include/boost/function/function_template.hpp:13:
In file included from /opt/local/include/boost/function/detail/prologue.hpp:17:
/opt/local/include/boost/function/function_base.hpp:432:19: warning: 4 enumeration values not explicitly handled in switch: 'clone_functor_tag', 'move_functor_tag',
      'destroy_functor_tag'... [-Wswitch-enum]
          switch (op) {
                  ^
/opt/local/include/boost/function/function_base.hpp:535:19: warning: 4 enumeration values not explicitly handled in switch: 'clone_functor_tag', 'move_functor_tag',
      'destroy_functor_tag'... [-Wswitch-enum]
          switch (op) {
                  ^
In file included from bin/gearadmin.cc:84:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:159:
In file included from /opt/local/include/boost/numeric/conversion/cast.hpp:33:
In file included from /opt/local/include/boost/numeric/conversion/converter.hpp:13:
In file included from /opt/local/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from /opt/local/include/boost/numeric/conversion/detail/conversion_traits.hpp:17:
In file included from /opt/local/include/boost/numeric/conversion/detail/meta.hpp:17:
In file included from /opt/local/include/boost/mpl/equal_to.hpp:19:
In file included from /opt/local/include/boost/mpl/aux_/comparison_op.hpp:27:
In file included from /opt/local/include/boost/mpl/aux_/numeric_op.hpp:22:
In file included from /opt/local/include/boost/mpl/apply_wrap.hpp:23:
In file included from /opt/local/include/boost/mpl/aux_/has_apply.hpp:17:
/opt/local/include/boost/mpl/has_xxx.hpp:344:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:357:9: warning: 'BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:386:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
# if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
        ^
/opt/local/include/boost/mpl/has_xxx.hpp:459:8: warning: 'BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE' is not defined, evaluates to 0 [-Wundef]
# if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
       ^
In file included from bin/gearadmin.cc:84:
In file included from /opt/local/include/boost/program_options.hpp:15:
In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
In file included from /opt/local/include/boost/lexical_cast.hpp:167:
In file included from /opt/local/include/boost/math/special_functions/sign.hpp:18:
In file included from /opt/local/include/boost/math/special_functions/detail/fp_traits.hpp:27:
In file included from /opt/local/include/boost/detail/endian.hpp:9:
In file included from /opt/local/include/boost/predef/detail/endian_compat.h:11:
In file included from /opt/local/include/boost/predef/other/endian.h:14:
/opt/local/include/boost/predef/os/macos.h:34:6: warning: 'BOOST_PREDEF_DETAIL_OS_DETECTED' is not defined, evaluates to 0 [-Wundef]
#if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
     ^
8 warnings generated.
  CXX util/instance.o
  CXX util/operation.o
  CXXLD bin/gearadmin
  CXX libtest/t_unittest-unittest.o
  CXX libtest/libtest_libtest_la-alarm.lo
  CXX libtest/libtest_libtest_la-binaries.lo
  CXX libtest/libtest_libtest_la-cmdline.lo
  CXX libtest/libtest_libtest_la-collection.lo
  CXX libtest/libtest_libtest_la-comparison.lo
  CXX libtest/libtest_libtest_la-core.lo
  CXX libtest/libtest_libtest_la-cpu.lo
  CXX libtest/libtest_libtest_la-dns.lo
  CXX libtest/libtest_libtest_la-dream.lo
  CXX libtest/libtest_libtest_la-drizzled.lo
  CXX libtest/libtest_libtest_la-exception.lo
  CXX libtest/exception/libtest_libtest_la-fatal.lo
  CXX libtest/libtest_libtest_la-formatter.lo
  CXX libtest/libtest_libtest_la-client.lo
  CXX libtest/libtest_libtest_la-framework.lo
  CXX libtest/libtest_libtest_la-has.lo
  CXX libtest/libtest_libtest_la-http.lo
  CXX libtest/libtest_libtest_la-is_local.lo
  CXX libtest/libtest_libtest_la-killpid.lo
  CXX libtest/libtest_libtest_la-libtool.lo
  CXX libtest/libtest_libtest_la-main.lo
  CXX libtest/libtest_libtest_la-port.lo
  CXX libtest/libtest_libtest_la-result.lo
  CXX libtest/libtest_libtest_la-runner.lo
  CXX libtest/libtest_libtest_la-server.lo
  CXX libtest/libtest_libtest_la-server_container.lo
  CXX libtest/libtest_libtest_la-signal.lo
  CXX libtest/libtest_libtest_la-socket.lo
  CXX libtest/libtest_libtest_la-strerror.lo
  CXX libtest/libtest_libtest_la-timer.lo
  CXX libtest/libtest_libtest_la-tmpfile.lo
  CXX libtest/libtest_libtest_la-vchar.lo
  CXX libtest/libtest_libtest_la-memcached.lo
  CXX libtest/libtest_libtest_la-gearmand.lo
  CXX libtest/libtest_libtest_la-blobslap_worker.lo
  CXX libtest/abort.o
  CXXLD libtest/abort
  CXX libtest/wait.o
  CXX libtest/dream.o
  CXXLD libtest/wait
  CXXLD libtest/libtest.la
/opt/local/bin/ranlib: file: libtest/.libs/libtest.a(libtest_libtest_la-binaries.o) has no symbols
ranlib: file: libtest/.libs/libtest.a(libtest_libtest_la-binaries.o) has no symbols
  CXXLD t/unittest
  CXX libtest/skiptest.o
  CXXLD t/skip
  CXX libtest/cpu.o
  CXX libtest/core_count.o
  CXXLD libtest/core-count
  CXX libtest/backtrace_test.o
  CXX libgearman/backtrace.o
  CXXLD libtest/backtrace
  CC libhostile/t/accept.o
  CCLD libhostile/t/accept
  CC libhostile/t/libhostile_t_hostile_accept-accept.o
  CC libhostile/libhostile_libhostile_la-initialize.lo
  CC libhostile/libhostile_libhostile_la-dummy.lo
  CCLD libhostile/libhostile.la
  CCLD libhostile/t/hostile_accept
  CC libhostile/t/pipe.o
  CCLD libhostile/t/pipe
  CC libhostile/t/libhostile_t_hostile_pipe-pipe.o
  CCLD libhostile/t/hostile_pipe
  CC libhostile/t/pipe2.o
  CCLD libhostile/t/pipe2
  CC libhostile/t/libhostile_t_hostile_pipe2-pipe2.o
  CCLD libhostile/t/hostile_pipe2
  CC libhostile/t/close.o
  CCLD libhostile/t/close
  CC libhostile/t/libhostile_t_hostile_close-close.o
  CCLD libhostile/t/hostile_close
  CC docs/libgearman/examples/gearman_client_do_background_example.o
  CCLD docs/libgearman/examples/gearman_client_do_background_example
Undefined symbols for architecture x86_64:
  "std::nothrow", referenced from:
      _client_allocate(gearman_client_st*, bool) in libgearman.a(libgearman_libgearman_la-client.o)
      _gearman_client_clone in libgearman.a(libgearman_libgearman_la-client.o)
      gearman_task_internal_create(Client*, gearman_task_st*) in libgearman.a(libgearman_libgearman_la-task.o)
      gearman_task_mutable_result(gearman_task_st*) in libgearman.a(libgearman_libgearman_la-task.o)
      Task::create_result(unsigned long) in libgearman.a(libgearman_libgearman_la-task.o)
      gearman_request_option(gearman_universal_st&, gearman_string_t&) in libgearman.a(libgearman_libgearman_la-server_options.o)
      gearman_connection_create(gearman_universal_st&, char const*, char const*) in libgearman.a(libgearman_libgearman_la-connection.o)
      ...
  "std::terminate()", referenced from:
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-universal.o)
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-packet.o)
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-task.o)
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-connection.o)
  "vtable for __cxxabiv1::__class_type_info", referenced from:
      typeinfo for Check in libgearman.a(libgearman_libgearman_la-check.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for __cxxabiv1::__si_class_type_info", referenced from:
      typeinfo for OptionCheck in libgearman.a(libgearman_libgearman_la-check.o)
      typeinfo for CancelCheck in libgearman.a(libgearman_libgearman_la-check.o)
      typeinfo for EchoCheck in libgearman.a(libgearman_libgearman_la-check.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "operator delete(void*)", referenced from:
      _gearman_client_free in libgearman.a(libgearman_libgearman_la-client.o)
      gearman_universal_free(gearman_universal_st&) in libgearman.a(libgearman_libgearman_la-universal.o)
      gearman_free_all_cons(gearman_universal_st&) in libgearman.a(libgearman_libgearman_la-universal.o)
      CancelCheck::~CancelCheck() in libgearman.a(libgearman_libgearman_la-universal.o)
      OptionCheck::~OptionCheck() in libgearman.a(libgearman_libgearman_la-universal.o)
      gearman_packet_create_args(gearman_universal_st&, gearman_packet_st&, gearman_magic_t, gearman_command_t, void const**, unsigned long const*, unsigned long) in libgearman.a(libgearman_libgearman_la-packet.o)
      gearman_packet_free(gearman_packet_st*) in libgearman.a(libgearman_libgearman_la-packet.o)
      ...
  "operator delete(void*, std::nothrow_t const&)", referenced from:
      _client_allocate(gearman_client_st*, bool) in libgearman.a(libgearman_libgearman_la-client.o)
      _gearman_client_clone in libgearman.a(libgearman_libgearman_la-client.o)
      gearman_task_mutable_result(gearman_task_st*) in libgearman.a(libgearman_libgearman_la-task.o)
      Task::create_result(unsigned long) in libgearman.a(libgearman_libgearman_la-task.o)
      gearman_request_option(gearman_universal_st&, gearman_string_t&) in libgearman.a(libgearman_libgearman_la-server_options.o)
      gearman_connection_create(gearman_universal_st&, char const*, char const*) in libgearman.a(libgearman_libgearman_la-connection.o)
      gearman_connection_copy(gearman_universal_st&, gearman_connection_st const&) in libgearman.a(libgearman_libgearman_la-connection.o)
      ...
  "operator new(unsigned long, std::nothrow_t const&)", referenced from:
      _client_allocate(gearman_client_st*, bool) in libgearman.a(libgearman_libgearman_la-client.o)
      _gearman_client_clone in libgearman.a(libgearman_libgearman_la-client.o)
      gearman_task_internal_create(Client*, gearman_task_st*) in libgearman.a(libgearman_libgearman_la-task.o)
      gearman_task_mutable_result(gearman_task_st*) in libgearman.a(libgearman_libgearman_la-task.o)
      Task::create_result(unsigned long) in libgearman.a(libgearman_libgearman_la-task.o)
      gearman_request_option(gearman_universal_st&, gearman_string_t&) in libgearman.a(libgearman_libgearman_la-server_options.o)
      gearman_connection_create(gearman_universal_st&, char const*, char const*) in libgearman.a(libgearman_libgearman_la-connection.o)
      ...
  "___cxa_begin_catch", referenced from:
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-universal.o)
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-packet.o)
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-task.o)
      ___clang_call_terminate in libgearman.a(libgearman_libgearman_la-connection.o)
  "___gxx_personality_v0", referenced from:
      _client_allocate(gearman_client_st*, bool) in libgearman.a(libgearman_libgearman_la-client.o)
      _gearman_client_clone in libgearman.a(libgearman_libgearman_la-client.o)
      _client_do(gearman_client_st*, gearman_command_t, char const*, char const*, void const*, unsigned long, unsigned long*, gearman_return_t*) in libgearman.a(libgearman_libgearman_la-client.o)
      _client_do_background(gearman_client_st*, gearman_command_t, gearman_string_t&, gearman_unique_t&, gearman_string_t&, char*) in libgearman.a(libgearman_libgearman_la-client.o)
      _gearman_client_unique_status in libgearman.a(libgearman_libgearman_la-client.o)
      gearman_client_run_block_tasks(Client*, gearman_task_st*) in libgearman.a(libgearman_libgearman_la-client.o)
      _gearman_client_job_status in libgearman.a(libgearman_libgearman_la-client.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [docs/libgearman/examples/gearman_client_do_background_example] Error 1

Let me know if you need any more info or if I can help in any way.

Dave (doc+launchpad) on 2014-02-17
summary: - Make files with 'Undefined symbols for architecture x86_64:
+ Make fails with 'Undefined symbols for architecture x86_64:
"std::nothrow"'
Download full text (65.4 KiB)

From first glance this looks like a boost issue.

We test using clang and brew.

Sent from my Ti85

> On Feb 17, 2014, at 9:25, Dave <email address hidden> wrote:
>
> Public bug reported:
>
> OSX Mavericks
> Gearman 1.1.12 and 1.1.9 being compiled against macports.
>
> Configure:
> export LDFLAGS='-L/opt/local/lib'
> export CPPFLAGS='-I/opt/local/include'
> ./configure -disable-shared -prefix=/opt/local
>
> Make output
> SOME REMOVED
> ...
> In file included from /opt/local/include/boost/mpl/aux_/comparison_op.hpp:27:
> In file included from /opt/local/include/boost/mpl/aux_/numeric_op.hpp:22:
> In file included from /opt/local/include/boost/mpl/apply_wrap.hpp:23:
> In file included from /opt/local/include/boost/mpl/aux_/has_apply.hpp:17:
> /opt/local/include/boost/mpl/has_xxx.hpp:344:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
> # if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
> ^
> /opt/local/include/boost/mpl/has_xxx.hpp:357:9: warning: 'BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES' is not defined, evaluates to 0 [-Wundef]
> # if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
> ^
> /opt/local/include/boost/mpl/has_xxx.hpp:386:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
> # if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
> ^
> /opt/local/include/boost/mpl/has_xxx.hpp:459:8: warning: 'BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE' is not defined, evaluates to 0 [-Wundef]
> # if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
> ^
> In file included from libgearman-server/thread.cc:45:
> In file included from ./libgearman-server/common.h:46:
> In file included from ./libgearman-server/gearmand.h:63:
> In file included from ./libgearman-server/connection.h:49:
> In file included from ./libgearman-server/struct/io.h:40:
> In file included from ./libgearman-server/plugins/base.h:40:
> In file included from /opt/local/include/boost/program_options.hpp:15:
> In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
> In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
> In file included from /opt/local/include/boost/lexical_cast.hpp:167:
> In file included from /opt/local/include/boost/math/special_functions/sign.hpp:18:
> In file included from /opt/local/include/boost/math/special_functions/detail/fp_traits.hpp:27:
> In file included from /opt/local/include/boost/detail/endian.hpp:9:
> In file included from /opt/local/include/boost/predef/detail/endian_compat.h:11:
> In file included from /opt/local/include/boost/predef/other/endian.h:14:
> /opt/local/include/boost/predef/os/macos.h:34:6: warning: 'BOOST_PREDEF_DETAIL_OS_DETECTED' is not defined, evaluates to 0 [-Wundef]
> #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
> ^
> 8 warnings generated.
> CXX libgearman-server/libgearman_server_libgearman_server_la-timer.lo
> In file included from libgearman-server/timer.cc:40:
> In file included from ./libgearman-server/common.h:46:
> In file included from ./libgearman-server/gearmand.h:63:
> In file included from ./libgearman-server/connection.h:49:
> In file included...

Brian Aker (brianaker) wrote :
Download full text (65.4 KiB)

Disabling shared might be an issue (the vtable warning is a bit odd).

Sent from my Ti85

> On Feb 17, 2014, at 9:25, Dave <email address hidden> wrote:
>
> Public bug reported:
>
> OSX Mavericks
> Gearman 1.1.12 and 1.1.9 being compiled against macports.
>
> Configure:
> export LDFLAGS='-L/opt/local/lib'
> export CPPFLAGS='-I/opt/local/include'
> ./configure -disable-shared -prefix=/opt/local
>
> Make output
> SOME REMOVED
> ...
> In file included from /opt/local/include/boost/mpl/aux_/comparison_op.hpp:27:
> In file included from /opt/local/include/boost/mpl/aux_/numeric_op.hpp:22:
> In file included from /opt/local/include/boost/mpl/apply_wrap.hpp:23:
> In file included from /opt/local/include/boost/mpl/aux_/has_apply.hpp:17:
> /opt/local/include/boost/mpl/has_xxx.hpp:344:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
> # if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
> ^
> /opt/local/include/boost/mpl/has_xxx.hpp:357:9: warning: 'BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES' is not defined, evaluates to 0 [-Wundef]
> # if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
> ^
> /opt/local/include/boost/mpl/has_xxx.hpp:386:9: warning: 'BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION' is not defined, evaluates to 0 [-Wundef]
> # if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
> ^
> /opt/local/include/boost/mpl/has_xxx.hpp:459:8: warning: 'BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE' is not defined, evaluates to 0 [-Wundef]
> # if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
> ^
> In file included from libgearman-server/thread.cc:45:
> In file included from ./libgearman-server/common.h:46:
> In file included from ./libgearman-server/gearmand.h:63:
> In file included from ./libgearman-server/connection.h:49:
> In file included from ./libgearman-server/struct/io.h:40:
> In file included from ./libgearman-server/plugins/base.h:40:
> In file included from /opt/local/include/boost/program_options.hpp:15:
> In file included from /opt/local/include/boost/program_options/options_description.hpp:13:
> In file included from /opt/local/include/boost/program_options/value_semantic.hpp:14:
> In file included from /opt/local/include/boost/lexical_cast.hpp:167:
> In file included from /opt/local/include/boost/math/special_functions/sign.hpp:18:
> In file included from /opt/local/include/boost/math/special_functions/detail/fp_traits.hpp:27:
> In file included from /opt/local/include/boost/detail/endian.hpp:9:
> In file included from /opt/local/include/boost/predef/detail/endian_compat.h:11:
> In file included from /opt/local/include/boost/predef/other/endian.h:14:
> /opt/local/include/boost/predef/os/macos.h:34:6: warning: 'BOOST_PREDEF_DETAIL_OS_DETECTED' is not defined, evaluates to 0 [-Wundef]
> #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
> ^
> 8 warnings generated.
> CXX libgearman-server/libgearman_server_libgearman_server_la-timer.lo
> In file included from libgearman-server/timer.cc:40:
> In file included from ./libgearman-server/common.h:46:
> In file included from ./libgearman-server/gearmand.h:63:
> In file included from ./libgearman-server/connection.h:49:
> In file included from ./li...

Dave (doc+launchpad) wrote :

Thanks,
I removed -disable-shared and it compiled despite warnings.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers