Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac os build failed #73

Closed
imKota opened this issue Feb 12, 2017 · 15 comments
Closed

mac os build failed #73

imKota opened this issue Feb 12, 2017 · 15 comments

Comments

@imKota
Copy link

imKota commented Feb 12, 2017

➜  ./configure                                                                                                            ruby-2.3.1 

checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking build system type... x86_64-apple-darwin16.4.0
checking host system type... x86_64-apple-darwin16.4.0
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/gear_config.h usability... no
checking minix/gear_config.h presence... no
checking for minix/gear_config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for git... /usr/bin/git
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking dependency style of cc... gcc3
checking dependency style of c++... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin16.4.0 file names to x86_64-apple-darwin16.4.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin16.4.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common -DPIC
checking if cc PIC flag -fno-common -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the c++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fno-common -DPIC
checking if c++ PIC flag -fno-common -DPIC works... yes
checking if c++ static flag -static works... no
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking for cc option to accept ISO C99... none needed
checking whether C++ compiler accepts -std=c++0x... yes
checking whether make supports nested variables... (cached) yes
checking for boostlib >= 1.39... yes
checking whether the Boost::Program_Options library is available... yes
checking for rand in -lboost_program_options-mt... yes
checking for location of cstdint... <cstdint>
<cstdint>
checking for location of cinttypes... <cinttypes>
<cinttypes>
checking for mysqld... /usr/local/bin/mysqld
checking for mysql_config... /usr/local/bin/mysql_config
checking if MySQL version is >= 5.0... yes
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking for curl-config... /usr/bin/curl-config
checking for curl (libcurl 7.51.0) >= 7.21.7... yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking for main in -lcurl... yes
checking whether drizzled executable path has been provided... no
checking for drizzled... no
checking libdrizzle-5.1/drizzle_client.h usability... no
checking libdrizzle-5.1/drizzle_client.h presence... no
checking for libdrizzle-5.1/drizzle_client.h... no
checking for SQLite3 library >= 3.0.0... yes
checking for pg_config... /usr/local/bin/pg_config
checking for PostgreSQL libraries... yes
checking tcadb.h usability... no
checking tcadb.h presence... no
checking for tcadb.h... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for MSG_NOSIGNAL... 
checking for MSG_DONTWAIT... yes
checking for MSG_MORE... 
checking for O_CLOEXEC... yes
checking hiredis/hiredis.h usability... no
checking hiredis/hiredis.h presence... no
checking for hiredis/hiredis.h... no
checking for dpkg-gensymbols... no
checking for openssl... openssl
checking for valgrind... no
checking for wine... no
checking for rpmbuild... no
checking for --nocheck... no
checking for rpmdev-setuptree... no
checking for rpm... no
checking for gperf... /usr/bin/gperf
checking for gawk... (cached) awk
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether memcached executable path has been provided... no
checking for memcached... unknown
checking whether sphinx-build executable path has been provided... no
checking for sphinx-build... :
checking whether lcov executable path has been provided... no
checking for lcov... no
checking whether genhtml executable path has been provided... no
checking for genhtml... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for arpa/inet.h... yes
checking for errno.h... yes
checking for execinfo.h... yes
checking for fcntl.h... yes
checking for features.h... no
checking for fnmatch.h... yes
checking for getopt.h... yes
checking for inttypes.h... (cached) yes
checking for limits.h... yes
checking for mach/mach.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for poll.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for spawn.h... yes
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/epoll.h... no
checking for sys/resource.h... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/utsname.h... yes
checking for sys/wait.h... (cached) yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for winsock2.h... no
checking for libmemcached-1.0/types/return.h... no
checking for ptrdiff_t... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be included... yes
checking for int32_t... yes
checking for int64_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for error_at_line... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working memcmp... yes
checking whether strerror_r is declared... (cached) yes
checking for strerror_r... (cached) yes
checking whether strerror_r returns char *... (cached) no
checking for vprintf... yes
checking for _doprnt... no
checking for working alloca.h... yes
checking for alloca... yes
checking for mbstate_t... yes
checking for working POSIX fnmatch... yes
checking for accept4... no
checking for dup2... yes
checking for fork... (cached) yes
checking for gettimeofday... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for pipe... yes
checking for pipe2... no
checking for select... yes
checking for setenv... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for strtoul... yes
checking for uname... yes
checking for atexit... yes
checking for getcwd... yes
checking for strstr... yes
checking for setsockopt... yes
checking for bind... yes
checking for clock_gettime in -lrt... no
checking for clock_gettime... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking whether compiling and linking against OpenSSL works... no
checking cyassl/ssl.h usability... no
checking cyassl/ssl.h presence... no
checking for cyassl/ssl.h... no
no
checking libmemcached-1.0/memcached.h usability... no
checking libmemcached-1.0/memcached.h presence... no
checking for libmemcached-1.0/memcached.h... no
checking test for a working libevent... yes
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking check to see if -luuid is needed... no
checking for uuid/uuid.h... (cached) yes
checking check to see if -luuid is needed... (cached) no
checking for uuid_generate_time_safe... no
checking the number of available CPUs... 4 
configure: adding automake macro support
configure: creating aminclude.am
configure: added jobserver support to make for 5 jobs
checking if compiler needs -Werror to reject unknown flags... yes
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for PTHREAD_PRIO_INHERIT... yes
checking check for pthread_timedjoin_np... 
checking whether byte ordering is bigendian... no
checking for C compiler vendor... clang
checking C Compiler version... "Apple LLVM version 8.0.0 (clang-800.0.42.1)"
checking C++ Compiler version... "Apple LLVM version 8.0.0 (clang-800.0.42.1)"
checking MINGW... checking whether __MINGW32__ is declared... no
no
checking whether the linker accepts ... yes
checking for debug... no
checking for vcs system... none
checking for vcs checkout... no
checking for assert... no
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking if all warnings into errors... no
checking if all warnings into errors... (cached) no
checking whether the linker accepts -z... no
checking whether the linker accepts relro... no
checking whether the linker accepts -z... (cached) no
checking whether the linker accepts now... no
checking whether C compiler accepts -g... yes
checking whether C compiler accepts -O2... yes
checking whether C compiler accepts -Wno-unknown-pragmas... yes
checking whether C compiler accepts -Wno-pragmas... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Weverything... no
checking whether C compiler accepts -Wthis-test-should-fail... no
checking whether C compiler accepts -Wunsuffixed-float-constants... no
checking whether C compiler accepts -Wjump-misses-init... no
checking whether C compiler accepts -Wno-attributes... yes
checking whether C compiler accepts -Waddress... yes
checking whether C compiler accepts -Wvarargs... yes
checking whether C compiler accepts -Warray-bounds... yes
checking whether C compiler accepts -Wbad-function-cast... yes
checking whether C compiler accepts -Wchar-subscripts... yes
checking whether C compiler accepts -Wcomment... yes
checking whether C compiler accepts -Wfloat-equal... yes
checking whether C compiler accepts -Wformat-security... yes
checking whether C compiler accepts -Wformat=2... yes
checking whether C compiler accepts -Wformat-y2k... yes
checking whether C compiler accepts -Wlogical-op... no
checking whether C compiler accepts -Wmaybe-uninitialized... no
checking whether C compiler accepts -Wmissing-field-initializers... yes
checking whether C compiler accepts -Wmissing-noreturn... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wnested-externs... yes
checking whether C compiler accepts -Wnormalized=id... no
checking whether C compiler accepts -Woverride-init... no
checking whether C compiler accepts -Wpointer-arith... yes
checking whether C compiler accepts -Wpointer-sign... yes
checking whether C compiler accepts -Wredundant-decls... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Wshorten-64-to-32... yes
checking whether C compiler accepts -Wsign-compare... yes
checking whether C compiler accepts -Wstrict-overflow=1... yes
checking whether C compiler accepts -Wstrict-prototypes... yes
checking whether C compiler accepts -Wswitch-enum... yes
checking whether C compiler accepts -Wtrampolines... no
checking whether C compiler accepts -Wundef... yes
checking whether C compiler accepts -funsafe-loop-optimizations... no
checking whether C compiler accepts -Wclobbered... no
checking whether C compiler accepts -Wunused... yes
checking whether C compiler accepts -Wunused-result... yes
checking whether C compiler accepts -Wunused-variable... yes
checking whether C compiler accepts -Wunused-parameter... yes
checking whether C compiler accepts -Wunused-local-typedefs... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -fwrapv... yes
checking whether C compiler accepts -fmudflapt... no
checking whether C compiler accepts -pipe... yes
checking whether C compiler accepts -fPIE... yes
checking whether C compiler accepts -pie... no
checking whether C compiler accepts -Wsizeof-pointer-memaccess... yes
checking whether C compiler accepts -Wpacked... yes
checking whether C++ compiler accepts -g... yes
checking whether C++ compiler accepts -O2... yes
checking whether C++ compiler accepts -Wno-unknown-pragmas... yes
checking whether C++ compiler accepts -Wno-pragmas... yes
checking whether C++ compiler accepts -Wall... yes
checking whether C++ compiler accepts -Wextra... yes
checking whether C++ compiler accepts -Weverything... no
checking whether C++ compiler accepts -Wthis-test-should-fail... no
checking whether C++ compiler accepts -Wno-attributes... yes
checking whether C++ compiler accepts -Wvarargs... yes
checking whether C++ compiler accepts -Waddress... yes
checking whether C++ compiler accepts -Warray-bounds... yes
checking whether C++ compiler accepts -Wchar-subscripts... yes
checking whether C++ compiler accepts -Wcomment... yes
checking whether C++ compiler accepts -Wctor-dtor-privacy... yes
checking whether C++ compiler accepts -Wfloat-equal... yes
checking whether C++ compiler accepts -Wformat=2... yes
checking whether C++ compiler accepts -Wformat-y2k... yes
checking whether C++ compiler accepts -Wmaybe-uninitialized... no
checking whether C++ compiler accepts -Wmissing-field-initializers... yes
checking whether C++ compiler accepts -Wlogical-op... no
checking whether C++ compiler accepts -Wnon-virtual-dtor... yes
checking whether C++ compiler accepts -Wnormalized=id... no
checking whether C++ compiler accepts -Woverloaded-virtual... yes
checking whether C++ compiler accepts -Wpointer-arith... yes
checking whether C++ compiler accepts -Wredundant-decls... yes
checking whether C++ compiler accepts -Wshadow... yes
checking whether C++ compiler accepts -Wshorten-64-to-32... yes
checking whether C++ compiler accepts -Wsign-compare... yes
checking whether C++ compiler accepts -Wstrict-overflow=1... yes
checking whether C++ compiler accepts -Wswitch-enum... yes
checking whether C++ compiler accepts -Wtrampolines... no
checking whether C++ compiler accepts -Wundef... yes
checking whether C++ compiler accepts -funsafe-loop-optimizations... no
checking whether C++ compiler accepts -Wc++11-compat... yes
checking whether C++ compiler accepts -Wclobbered... no
checking whether C++ compiler accepts -Wunused... yes
checking whether C++ compiler accepts -Wunused-result... yes
checking whether C++ compiler accepts -Wunused-variable... yes
checking whether C++ compiler accepts -Wunused-parameter... yes
checking whether C++ compiler accepts -Wunused-local-typedefs... yes
checking whether C++ compiler accepts -Wwrite-strings... yes
checking whether C++ compiler accepts -Wformat-security... yes
checking whether C++ compiler accepts -fwrapv... yes
checking whether C++ compiler accepts -fmudflapt... no
checking whether C++ compiler accepts -pipe... yes
checking whether C++ compiler accepts -fPIE... yes
checking whether C++ compiler accepts -pie... no
checking whether C++ compiler accepts -Wsizeof-pointer-memaccess... yes
checking whether C++ compiler accepts -Wpacked... yes
checking whether the compiler supports GCC C++ ABI name demangling... yes
checking checking for cxx_gcc_abi_demangle... "yes"
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libhashkit/hashkitcon.h
config.status: creating libhashkit-1.0/configure.h
config.status: creating libtest/version.h
config.status: creating libtest/yatlcon.h
config.status: creating Makefile
config.status: creating docs/source/conf.py
config.status: creating libgearman-1.0/version.h
config.status: creating scripts/gearmand
config.status: creating scripts/gearmand.xml
config.status: creating scripts/smf_install.sh
config.status: creating support/gearmand.init
config.status: creating support/gearmand.pc
config.status: creating support/gearmand.spec
config.status: creating gear_config.h
config.status: gear_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
---
Configuration summary for gearmand version 1.1.14

   * Installation prefix:       /usr/local
   * System type:               apple-darwin16.4.0
   * Host CPU:                  x86_64
   * C Compiler:                cc Apple LLVM version 8.0.0 (clang-800.0.42.1)
   * C Flags:                   -g -O2  -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wno-attributes -Waddress -Wvarargs -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wformat-y2k -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wstrict-overflow=1 -Wstrict-prototypes -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wunused-parameter -Wunused-local-typedefs -Wwrite-strings -fwrapv -pipe -fPIE -Wsizeof-pointer-memaccess -Wpacked
   * C++ Compiler:              c++ Apple LLVM version 8.0.0 (clang-800.0.42.1)
   * C++ Flags:                 -g -O2 -std=c++0x -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wno-attributes -Wvarargs -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wformat-y2k -Wmissing-field-initializers -Wnon-virtual-dtor -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wc++11-compat -Wunused -Wunused-result -Wunused-variable -Wunused-parameter -Wunused-local-typedefs -Wwrite-strings -Wformat-security -fwrapv -pipe -fPIE -Wsizeof-pointer-memaccess -Wpacked
   * CPP Flags:                  -fvisibility=hidden
   * LIBS:                      
   * LDFLAGS Flags:             
   * Assertions enabled:        no
   * Debug enabled:             no
   * Warnings as failure:       no
   * Building with libsqlite3   yes
   * Building with libdrizzle   yes
   * Building with libmemcached not found
   * Building with libpq        yes
   * Building with tokyocabinet no
   * Building with libmysql     yes
   * SSL enabled:               no
   * cyassl found:              no
   * openssl found:             no
   * make -j:                   5
   * VCS checkout:              no
   * sphinx-build:              :

---
kota@iMac—Kota ~/Downloads/gearmand-1.1.14
➜  make                                                                                                                   ruby-2.3.1 
/Library/Developer/CommandLineTools/usr/bin/make -j5  all-recursive
make[2]: warning: -jN forced in submake: disabling jobserver mode.
  CXX      libgearman/libgearman_libgearman_la-check.lo
  CXX      libgearman/libgearman_libgearman_la-actions.lo
  CXX      libgearman/libgearman_libgearman_la-aggregator.lo
  CXX      libgearman/libgearman_libgearman_la-allocator.lo
  CXX      libgearman/libgearman_libgearman_la-argument.lo
In file included from libgearman/actions.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: expected ')'
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:46:10: note: to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/actions.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: functions that differ only in their return type cannot be overloaded
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/actions.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: expected ')'
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:49:10: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/actions.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: functions that differ only in their return type cannot be overloaded
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/check.cc:40:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: expected ')'
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:46:10: note: to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/check.cc:40:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: functions that differ only in their return type cannot be overloaded
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/check.cc:40:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: expected ')'
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:49:10: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/check.cc:40:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: functions that differ only in their return type cannot be overloaded
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/aggregator.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: expected ')'
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:46:10: note: to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/aggregator.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: functions that differ only in their return type cannot be overloaded
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/aggregator.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: expected ')'
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:49:10: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/aggregator.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: functions that differ only in their return type cannot be overloaded
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
4 errors generated.
make[2]: *** [libgearman/libgearman_libgearman_la-actions.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from libgearman/allocator.cc:38:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: expected ')'
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:46:10: note: to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/allocator.cc:38:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: functions that differ only in their return type cannot be overloaded
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/allocator.cc:38:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: expected ')'
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:49:10: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/allocator.cc:38:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: functions that differ only in their return type cannot be overloaded
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/argument.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: expected ')'
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:46:10: note: to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/argument.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:46:10: error: functions that differ only in their return type cannot be overloaded
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
In file included from libgearman/argument.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: expected ')'
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./libgearman/byteorder.h:49:10: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from libgearman/argument.cc:39:
In file included from ./libgearman/common.h:64:
./libgearman/byteorder.h:49:10: error: functions that differ only in their return type cannot be overloaded
uint64_t htonll(uint64_t);
         ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
./libgearman/byteorder.h:46:10: note: previous implicit declaration is here
uint64_t ntohll(uint64_t);
         ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
4 errors generated.
4 errors generated.
4 errors generated.
make[2]: *** [libgearman/libgearman_libgearman_la-allocator.lo] Error 1
make[2]: *** [libgearman/libgearman_libgearman_la-argument.lo] Error 1
make[2]: *** [libgearman/libgearman_libgearman_la-check.lo] Error 1
4 errors generated.
make[2]: *** [libgearman/libgearman_libgearman_la-aggregator.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
kota@iMac—Kota ~/Downloads/gearmand-1.1.14
➜                                         
@esabol
Copy link
Member

esabol commented Feb 12, 2017

Suggest you specify the versions of Mac OS X and XCode you are using.

This seems to be a common problem with compiling networking programs on the Mac. Would probably need a fix along the lines of the following:

apache/zookeeper@c34ee71

@imKota
Copy link
Author

imKota commented Feb 12, 2017

Mac OS X 10.12.3
Xcode Command Line Tools 8.2.0.0.1.1480973914

@imKota
Copy link
Author

imKota commented Feb 13, 2017

And how to compile with with the support of the ssl?
The documentation is not specified.
openssl installed with brew.

   * SSL enabled:               no
   * cyassl found:              no
   * openssl found:             no

@p-alik
Copy link
Collaborator

p-alik commented Feb 13, 2017

The documentation is not specified

./configure -h

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags

@esabol
Copy link
Member

esabol commented Feb 14, 2017

And how to compile with with the support of the ssl?

FWIW, SSL is off-topic for this issue.... Anyway, you need to build from source and

./configure --enable-ssl

Make sure the libssl-dev or libssl-devel package or similar (depending on your package manager) is already installed. Since brew installs in /usr/local, IIRC, you may also need to specify --with-ssl=/path/to/openssl or use the OpenSSL provided with Mac OS X.

There's some documentation at http://gearman.info/gearmand/ssl.html but I have two caveats not covered by that documentation:

  1. Make sure you generate your server and client certificates with the argument -days 3650 (or similar) to the openssl x509 -req commands in order to generate certificates that don't expire in the default 30 days.

  2. Make sure you use different Common Name values for the CA certificate, the server certificate, and the client certificate. If any of the Common Names on your certificates match, you may have problems with your SSL connections.

I hope this helps!

@imKota
Copy link
Author

imKota commented Feb 14, 2017

Build not working(((

@p-alik
Copy link
Collaborator

p-alik commented Feb 15, 2017

you could install gearmand via brew install gearman

@esabol
Copy link
Member

esabol commented Feb 22, 2017

FYI, https://github.com/Homebrew/homebrew-core/blob/009ac6baeb5d42aa745c616ca7db1582059ac799/Formula/gearman.rb has a patch for the htonll problem, but I think the solution used in apache/zookeeper@c34ee71 is still better.

@SpamapS
Copy link
Member

SpamapS commented Mar 29, 2017

I personally don't have any Mac's to test on, so I can't really iterate on any fixes. It would be greatly appreciated if those with macs can fix it, and setup Travis tests.

@esabol
Copy link
Member

esabol commented Jul 18, 2017

This issue is unresolved. Please reopen.

@imKota imKota reopened this Jul 18, 2017
@imKota imKota closed this as completed Sep 12, 2017
@esabol
Copy link
Member

esabol commented Sep 12, 2017

Please stop closing this issue. Please reopen and leave open until the issue is resolved. Thank you.

@imKota
Copy link
Author

imKota commented Sep 12, 2017

@esabol Sorry, I thought the question was settled:)

@imKota imKota reopened this Sep 12, 2017
@hwchiu
Copy link

hwchiu commented Oct 6, 2017

Hi, I meet the same problem.

Environment

Mac OS X 10.12.6
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Issue

I apply the patch as same as the (apache/zookeeper@c34ee71)[https://github.com/apache/zookeeper/commit/c34ee711dbc7ef0bf037102994b7fb3989700328] to fix compile fail of htonll
But I have meet some other issue.

  1. unused variable/function (treat warning as error)
  2. deprecated-register

Log

/Library/Developer/CommandLineTools/usr/bin/make -j9  all-recursive
Making all in docs
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[2]: Nothing to be done for `all'.
make[2]: warning: -jN forced in submake: disabling jobserver mode.
  CXX      libgearman/libgearman_libgearman_la-byteorder.lo
  CXX      libgearman/libgearman_libgearman_la-command.lo
  CXX      libgearman/libgearman_libgearman_la-error_code.lo
  CXX      libgearman/libgearman_libgearman_la-job.lo
  CXX      libgearman/libgearman_libgearman_la-result.lo
  CXX      libgearman/libgearman_libgearman_la-status.lo
  CXX      libgearman/libgearman_libgearman_la-strerror.lo
  CXX      libgearman/libgearman_libgearman_la-string.lo
  CXX      libgearman/libgearman_libgearman_la-task.lo
In file included from libgearman/error_code.cc:41:
libgearman/error_code.gperf:100:11: error: 'register' storage class specifier is deprecated and incompatible with C++1z [-Werror,-Wdeprecated-register]
          register const struct error_code_st *resword;
          ^~~~~~~~~
libgearman/error_code.gperf:479:13: error: 'register' storage class specifier is deprecated and incompatible with C++1z [-Werror,-Wdeprecated-register]
            register const char *s = resword->name;
            ^~~~~~~~~
2 errors generated.
make[2]: *** [libgearman/libgearman_libgearman_la-error_code.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libgearman/byteorder.cc:48:24: error: unused function 'swap64' [-Werror,-Wunused-function]
static inline uint64_t swap64(uint64_t in)
                       ^
1 error generated.
In file included from libgearman/command.cc:43:
libgearman/command.gperf:94:11: error: 'register' storage class specifier is deprecated and incompatible with C++1z [-Werror,-Wdeprecated-register]
          register const struct gearman_command_string_st *resword;
          ^~~~~~~~~
libgearman/command.gperf:403:13: error: 'register' storage class specifier is deprecated and incompatible with C++1z [-Werror,-Wdeprecated-register]
            register const char *s = resword->name;
            ^~~~~~~~~
make[2]: *** [libgearman/libgearman_libgearman_la-byteorder.lo] Error 1
2 errors generated.
make[2]: *** [libgearman/libgearman_libgearman_la-command.lo] Error 1
libgearman/job.cc:321:20: error: unused function 'gearman_job_reset_error' [-Werror,-Wunused-function]
static inline void gearman_job_reset_error(Job* job)
                   ^
1 error generated.
make[2]: *** [libgearman/libgearman_libgearman_la-job.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Do we have any idea to handle those errors?

Thanks.

@p-alik
Copy link
Collaborator

p-alik commented Oct 6, 2017

error: 'register' storage class specifier is deprecated

I guess it's a clan-issue, because I got it on FreeBSD a while ago.

@SpamapS
Copy link
Member

SpamapS commented Oct 6, 2017

As luck would have it, I now have a Mac for work. I will, therefore, be able to support it as long as I have this Mac.

I'll try to get it going, and get a mac travis build working too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants