Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9505

`make check` failed with linking errors when c-ares is installed.

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.7.1, 1.8.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Sprint:
      Storage R9 Sprint 36, Storage R9 Sprint 37
    • Story Points:
      2

      Description

      MacOS Mojave
      autotool (using cmake works)

      /Users/jie/workspace/mesos/configure --prefix=/Users/jie/workspace/dist/mesos --disable-python --disable-java --enable-ssl --enable-libevent
      
      $ g++ --version
      Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
      Apple LLVM version 10.0.0 (clang-1000.10.44.4)
      Target: x86_64-apple-darwin18.2.0
      Thread model: posix
      InstalledDir: /Library/Developer/CommandLineTools/usr/bin
      

      It failed like this

      /Library/Developer/CommandLineTools/usr/bin/make  libprocess-tests benchmarks ssl-client test-linkee example
      /bin/sh ../../libtool  --tag=CXX   --mode=link g++ -Wall -Wsign-compare -Wformat-security -fstack-protector-strong -fPIC -fPIE -g1 -O0 -Wno-unused-local-typedef -Wno-inconsistent
      -missing-override -std=c++11 -stdlib=libc++  -L/usr/local/opt/subversion/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/libevent/lib -L/usr/local/opt/apr/libexec/lib  -o libpr
      ocess-tests src/tests/libprocess_tests-after_tests.o src/tests/libprocess_tests-collect_tests.o src/tests/libprocess_tests-count_down_latch_tests.o src/tests/libprocess_tests-dec
      oder_tests.o src/tests/libprocess_tests-encoder_tests.o src/tests/libprocess_tests-future_tests.o src/tests/libprocess_tests-grpc_tests.o src/tests/libprocess_tests-http_tests.o
      src/tests/libprocess_tests-io_tests.o src/tests/libprocess_tests-limiter_tests.o src/tests/libprocess_tests-loop_tests.o src/tests/libprocess_tests-main.o src/tests/libprocess_te
      sts-metrics_tests.o src/tests/libprocess_tests-mpsc_linked_queue_tests.o src/tests/libprocess_tests-mutex_tests.o src/tests/libprocess_tests-owned_tests.o src/tests/libprocess_te
      sts-process_tests.o src/tests/libprocess_tests-profiler_tests.o src/tests/libprocess_tests-queue_tests.o src/tests/libprocess_tests-reap_tests.o src/tests/libprocess_tests-rwlock
      _tests.o src/tests/libprocess_tests-socket_tests.o src/tests/libprocess_tests-sequence_tests.o src/tests/libprocess_tests-shared_tests.o src/tests/libprocess_tests-state_machine_
      tests.o src/tests/libprocess_tests-statistics_tests.o src/tests/libprocess_tests-subprocess_tests.o src/tests/libprocess_tests-system_tests.o src/tests/libprocess_tests-timeserie
      s_tests.o src/tests/libprocess_tests-time_tests.o src/tests/libprocess_tests-jwt_tests.o src/tests/libprocess_tests-ssl_tests.o libprocess_tests-grpc_tests.grpc.pb.o libprocess_t
      ests-grpc_tests.pb.o ../grpc-1.10.0/libs/opt/libgrpc++.a ../grpc-1.10.0/libs/opt/libgrpc.a ../grpc-1.10.0/libs/opt/libgpr.a ../libgmock.la ../protobuf-3.5.0/src/libprotobuf.la li
      bprocess.la  -lz -lsvn_delta-1 -lsvn_subr-1 -lssl -lcrypto -lsasl2 -lcurl -lapr-1
      libtool: link: g++ -Wall -Wsign-compare -Wformat-security -fstack-protector-strong -fPIC -fPIE -g1 -O0 -Wno-unused-local-typedef -Wno-inconsistent-missing-override -std=c++11 -st
      dlib=libc++ -o libprocess-tests src/tests/libprocess_tests-after_tests.o src/tests/libprocess_tests-collect_tests.o src/tests/libprocess_tests-count_down_latch_tests.o src/tests/
      libprocess_tests-decoder_tests.o src/tests/libprocess_tests-encoder_tests.o src/tests/libprocess_tests-future_tests.o src/tests/libprocess_tests-grpc_tests.o src/tests/libprocess
      _tests-http_tests.o src/tests/libprocess_tests-io_tests.o src/tests/libprocess_tests-limiter_tests.o src/tests/libprocess_tests-loop_tests.o src/tests/libprocess_tests-main.o src
      /tests/libprocess_tests-metrics_tests.o src/tests/libprocess_tests-mpsc_linked_queue_tests.o src/tests/libprocess_tests-mutex_tests.o src/tests/libprocess_tests-owned_tests.o src
      /tests/libprocess_tests-process_tests.o src/tests/libprocess_tests-profiler_tests.o src/tests/libprocess_tests-queue_tests.o src/tests/libprocess_tests-reap_tests.o src/tests/lib
      process_tests-rwlock_tests.o src/tests/libprocess_tests-socket_tests.o src/tests/libprocess_tests-sequence_tests.o src/tests/libprocess_tests-shared_tests.o src/tests/libprocess_
      tests-state_machine_tests.o src/tests/libprocess_tests-statistics_tests.o src/tests/libprocess_tests-subprocess_tests.o src/tests/libprocess_tests-system_tests.o src/tests/libpro
      cess_tests-timeseries_tests.o src/tests/libprocess_tests-time_tests.o src/tests/libprocess_tests-jwt_tests.o src/tests/libprocess_tests-ssl_tests.o libprocess_tests-grpc_tests.gr
      pc.pb.o libprocess_tests-grpc_tests.pb.o -Wl,-bind_at_load  -L/usr/local/opt/subversion/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/libevent/lib -L/usr/local/opt/apr/libexe
      c/lib ../grpc-1.10.0/libs/opt/libgrpc++.a ../grpc-1.10.0/libs/opt/libgrpc.a ../grpc-1.10.0/libs/opt/libgpr.a ../.libs/libgmock.a ../protobuf-3.5.0/src/.libs/libprotobuf.a ./.libs
      /libprocess.a /Users/jie/workspace/dist/mesos/build/3rdparty/glog-0.3.3/.libs/libglog.a -lpthread /Users/jie/workspace/dist/mesos/build/3rdparty/libevent-2.0.22-stable/.libs/libe
      vent_core.a /Users/jie/workspace/dist/mesos/build/3rdparty/libevent-2.0.22-stable/.libs/libevent_pthreads.a /Users/jie/workspace/dist/mesos/build/3rdparty/libevent-2.0.22-stable/
      .libs/libevent_openssl.a -lz -lsvn_delta-1 -lsvn_subr-1 -lssl -lcrypto -lsasl2 -lcurl -lapr-1
      Undefined symbols for architecture x86_64:
        "_ares_cancel", referenced from:
            on_readable_cb(void*, grpc_error*) in libgrpc.a(grpc_ares_ev_driver_posix.o)
            on_writable_cb(void*, grpc_error*) in libgrpc.a(grpc_ares_ev_driver_posix.o)
        "_ares_destroy", referenced from:
            grpc_ares_ev_driver_unref(grpc_ares_ev_driver*) in libgrpc.a(grpc_ares_ev_driver_posix.o)
        "_ares_free_data", referenced from:
            on_srv_query_done_cb(void*, int, int, unsigned char*, int) in libgrpc.a(grpc_ares_wrapper.o)
            on_txt_done_cb(void*, int, int, unsigned char*, int) in libgrpc.a(grpc_ares_wrapper.o)
        "_ares_gethostbyname", referenced from:
            grpc_dns_lookup_ares_impl(char const*, char const*, char const*, grpc_pollset_set*, grpc_closure*, grpc_lb_addresses**, bool, char**) in libgrpc.a(grpc_ares_wrapper.o)
            on_srv_query_done_cb(void*, int, int, unsigned char*, int) in libgrpc.a(grpc_ares_wrapper.o)
        "_ares_getsock", referenced from:
            grpc_ares_notify_on_event_locked(grpc_ares_ev_driver*) in libgrpc.a(grpc_ares_ev_driver_posix.o)
        "_ares_inet_ntop", referenced from:
            on_hostbyname_done_cb(void*, int, int, hostent*) in libgrpc.a(grpc_ares_wrapper.o)
      

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              chhsia0 Chun-Hung Hsiao
              Reporter:
              jieyu Jie Yu
              Shepherd:
              Jie Yu

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Issue deployment