compiling libmemcached in OpenSolaris x86

Asked by Frederick Shawgrove on 2019-04-25

Hi there

I have OpenSolaris x86 installed on my PC

I wish to compile libmemcached onto my PC using libmemcached-1.0.18.tar.gz

I can successfully execute the ./configure process with the following output


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/
config.status: creating libmemcached-1.2/configure.h
config.status: creating support/libmemcached.pc
config.status: creating support/libmemcached.spec
config.status: creating mem_config.h
config.status: mem_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Configuration summary for libmemcached version 1.1.0

   * Installation prefix: /usr/local
   * System type: pc-solaris2.11
   * Host CPU: i386
   * C Compiler: cc: Sun C 5.10 SunOS_i386 2009/06/03
   * C Flags: -g
   * C++ Compiler: c++: error: unrecognized command line option '-V'
   * C++ Flags: -g -O2 -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 -Wmaybe-uninitialized -Wmissing-field-initializers -Wlogical-op -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wtrampolines -Wundef -Wunsafe-loop-optimizations -funsafe-loop-optimizations -Wc++11-compat -Wclobbered -Wunused -Wunused-result -Wunused-variable -Wunused-parameter -Wunused-local-typedefs -Wwrite-strings -Wformat-security -fwrapv -pipe -fPIE -pie -Wsizeof-pointer-memaccess -Wpacked
   * CPP Flags:
   * LIB Flags:
   * Assertions enabled: no
   * Debug enabled: no
   * Shared: yes
   * Warnings as failure: no
   * SASL support: no
   * make -j: 2
   * VCS checkout: no


however when I try to compile libmemcached using the 'make' command I get this error


  CC libmemcached/libmemcached_libmemcached_la-array.lo
  CXX libmemcached/libmemcached_libmemcached_la-byteorder.lo
"./libmemcached-1.2/struct/stat.h", line 40: (struct) tag redeclared: memcached_stat_st
"./libmemcached-1.2/struct/result.h", line 44: (struct) tag redeclared: memcached_result_st
"./libmemcached-1.2/struct/server.h", line 57: (enum) tag redeclared: memcached_server_state_t
"./libmemcached-1.2/struct/server.h", line 58: identifier redeclared: MEMCACHED_SERVER_STATE_NEW
"./libmemcached-1.2/struct/server.h", line 59: identifier redeclared: MEMCACHED_SERVER_STATE_ADDRINFO
"./libmemcached-1.2/struct/server.h", line 60: identifier redeclared: MEMCACHED_SERVER_STATE_IN_PROGRESS
"./libmemcached-1.2/struct/server.h", line 61: identifier redeclared: MEMCACHED_SERVER_STATE_CONNECTED
"./libmemcached-1.2/struct/server.h", line 62: identifier redeclared: MEMCACHED_SERVER_STATE_IN_TIMEOUT
"./libmemcached-1.2/struct/server.h", line 63: identifier redeclared: MEMCACHED_SERVER_STATE_DISABLED
"./libmemcached-1.2/struct/server.h", line 66: (struct) tag redeclared: memcached_server_st
"./libmemcached-1.2/struct/sasl.h", line 46: (struct) tag redeclared: memcached_sasl_st
"./mem_config.h", line 9: #error: "You should include mem_config.h as your first include file"
cc: acomp failed for libmemcached/array.c
gmake[2]: *** [Makefile:5645: libmemcached/libmemcached_libmemcached_la-array.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
libmemcached/ In function 'uint64_t memcached_ntohll(uint64_t)':
libmemcached/ error: 'ntohll' was not declared in this scope
   return ntohll(value);
libmemcached/ In function 'uint64_t memcached_htonll(uint64_t)':
libmemcached/ error: 'htonll' was not declared in this scope
   return htonll(value);
gmake[2]: *** [Makefile:6262: libmemcached/libmemcached_libmemcached_la-byteorder.lo] Error 1
gmake[2]: Leaving directory '/export/home/grct/libmemcached'
gmake[1]: *** [Makefile:9173: all-recursive] Error 1
gmake[1]: Leaving directory '/export/home/grct/libmemcached'
gmake: *** [Makefile:3635: all] Error 2


what shall I do? Any help I can get would be great


Question information

English Edit question
libmemcached Edit question
No assignee Edit question
Last query:
Last reply:

Can you help with this problem?

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

To post a message you must log in.