makefile - 在 OpenSolaris/OpenIndiana 中编译 libmemcached
问题描述
我希望将 libmemcached 编译到 OpenIndiana OS 中。配置过程与以下输出完美配合
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 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
但是,当我尝试使用 make 命令进行编译时,我得到了这个错误输出
gmake[2]: warning: -jN forced in submake: disabling jobserver mode.
CC libmemcached/libmemcached_libmemcached_la-array.lo
CXX libmemcached/libmemcached_libmemcached_la-auto.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....
我需要做些什么来克服编译过程中的这个绊脚石?提前感谢我能得到的任何帮助。
解决方案
推荐阅读
- python - 大熊猫中带有“findall”的edit_distance
- lua - Lua string.format 和使用换行符或控制字符
- python - 如何避免在 Django 中重复相同的代码块?
- python - 最接近 R 的 nlminb 的 Python 的 scypy 求解器?
- exe - exe程序中的编译器在哪里?
- c# - 无法运行使用 Visual Studio 17 中的安装项目安装的应用程序
- sonarqube - 在 Travis CI 上使用 Sonarcloud 时出现授权错误
- javascript - 当状态改变时,使用来自 redux 的连接助手的 React Native 不会重新渲染?
- php - 如何在不更改版本的情况下解决 Laravel 中的 PHP 错误?
- javascript - Unity3D/PowerUI 没有注册简单的 CSS 翻译?