Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-11216

macosx: gperftools compile error, undeclared identifier 'pthread_atfork'

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      (cd /Users/buildbot/buildbot_slave/mac-x64-master-bldr/build/build/gperftools \
      && ./autogen.sh \
      && ./configure --prefix=/opt/couchbase --enable-minimal \
      && /Applications/Xcode.app/Contents/Developer/usr/bin/make \
      && /Applications/Xcode.app/Contents/Developer/usr/bin/make install-exec-am install-data-am)
      . . .
      libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -D_THREAD_SAFE -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-exceptions -O3 -ggdb3 -MT libtcmalloc_minimal_internal_la-stack_trace_table.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-stack_trace_table.Tpo -c src/stack_trace_table.cc -o libtcmalloc_minimal_internal_la-stack_trace_table.o >/dev/null 2>&1

      mv -f .deps/libtcmalloc_minimal_internal_la-stack_trace_table.Tpo .deps/libtcmalloc_minimal_internal_la-stack_trace_table.Plo

      /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -D_THREAD_SAFE -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-exceptions -O3 -ggdb3 -MT libtcmalloc_minimal_internal_la-static_vars.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-static_vars.Tpo -c -o libtcmalloc_minimal_internal_la-static_vars.lo `test -f 'src/static_vars.cc' || echo './'`src/static_vars.cc

      libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -DNO_TCMALLOC_SAMPLES -DNO_HEAP_CHECK -D_THREAD_SAFE -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-exceptions -O3 -ggdb3 -MT libtcmalloc_minimal_internal_la-static_vars.lo -MD -MP -MF .deps/libtcmalloc_minimal_internal_la-static_vars.Tpo -c src/static_vars.cc -fno-common -DPIC -o .libs/libtcmalloc_minimal_internal_la-static_vars.o

      In file included from src/static_vars.cc:33:
      In file included from ./src/static_vars.h:39:
      In file included from ./src/base/spinlock.h:43:

      ./src/base/basictypes.h:280:9:
      ./src/base/basictypes.h:280:9: 35mwarning: _dyld_present' is deprecated: first deprecated in OS X 10.5 [-Wdeprecated-declarations]
      ent' is deprecated: first deprecated in OS X 10.5 [-Wdeprecated-declarations]
      if (_dyld_present()) {

      /usr/include/mach-o/dyld.h:236:13: ning:
      te: '_dyld_present' declared here
      extern bool dyld_present(void) __OSX_AVAILABLE_BUT_DEPRECATED(MAC_10_1,MAC_10_5,IPHONE_NA,_IPHONE_NA);

      rc/static_vars.cc:69:3: error:e of undeclared identifier 'pthread_atfork'
      pthread_atfork(CentralCacheLockAll, // parent calls before fork
      ^

      rning and 1 error generated.
      make[1]: *** [libtcmalloc_minimal_internal_la-static_vars.lo] Error 1
      make: *** [/opt/couchbase/lib/libtcmalloc_minimal.la] Error 2

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              plabee Phil Labee (Inactive)
              plabee Phil Labee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty