[root@vps197554 libmemcached-1.0.18]# /opt/plesk/php/5.6/bin/pecl install memcached
downloading memcached-2.2.0.tgz ...
Starting to download memcached-2.2.0.tgz (70,449 bytes)
.................done: 70,449 bytes
15 source files, building
WARNING: php_bin /opt/plesk/php/5.6/bin/php appears to have a suffix /5.6/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
libmemcached directory [no] :
building in /tmp/pear-build-rootvz9Zev/memcached-2.2.0
running: /tmp/memcached/configure --with-libmemcached-dir=no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/plesk/php/5.6
checking for PHP includes... -I/opt/plesk/php/5.6/include/php -I/opt/plesk/php/5.6/include/php/main -I/opt/plesk/php/5.6/include/php/TSRM -I/opt/plesk/php/5.6/include/php/Zend -I/opt/plesk/php/5.6/include/php/ext -I/opt/plesk/php/5.6/include/php/ext/date/lib
checking for PHP extension directory... /opt/plesk/php/5.6/lib64/php/modules
checking for PHP installed headers prefix... /opt/plesk/php/5.6/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking whether to enable memcached support... yes, shared
checking for libmemcached... yes, shared
checking whether to enable memcached session handler support... yes
checking whether to enable memcached igbinary serializer support... no
checking whether to enable memcached json serializer support... no
checking whether to enable memcached msgpack serializer support... no
checking whether to enable memcached sasl support... yes
checking whether to enable memcached protocol support... no
checking for ZLIB... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking for zlib location... /usr
checking for session includes... /opt/plesk/php/5.6/include/php
checking for memcached session support... enabled
checking for memcached igbinary support... disabled
checking for memcached msgpack support... disabled
checking for libmemcached location... found version 1.0.18, under /usr/local
checking whether to enable sasl support... yes
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 sasl/sasl.h usability... yes
checking sasl/sasl.h presence... yes
checking for sasl/sasl.h... yes
checking whether libmemcached supports sasl... yes
checking for sasl_client_init in -lsasl2... yes
checking for memcached protocol support... disabled
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -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 (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
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... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/sh /tmp/pear-build-rootvz9Zev/memcached-2.2.0/libtool --mode=compile cc -I/opt/plesk/php/5.6/include/php -I. -I/tmp/memcached -DPHP_ATOM_INC -I/tmp/pear-build-rootvz9Zev/memcached-2.2.0/include -I/tmp/pear-build-rootvz9Zev/memcached-2.2.0/main -I/tmp/memcached -I/opt/plesk/php/5.6/include/php -I/opt/plesk/php/5.6/include/php/main -I/opt/plesk/php/5.6/include/php/TSRM -I/opt/plesk/php/5.6/include/php/Zend -I/opt/plesk/php/5.6/include/php/ext -I/opt/plesk/php/5.6/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /tmp/memcached/php_memcached.c -o php_memcached.lo
libtool: compile: cc -I/opt/plesk/php/5.6/include/php -I. -I/tmp/memcached -DPHP_ATOM_INC -I/tmp/pear-build-rootvz9Zev/memcached-2.2.0/include -I/tmp/pear-build-rootvz9Zev/memcached-2.2.0/main -I/tmp/memcached -I/opt/plesk/php/5.6/include/php -I/opt/plesk/php/5.6/include/php/main -I/opt/plesk/php/5.6/include/php/TSRM -I/opt/plesk/php/5.6/include/php/Zend -I/opt/plesk/php/5.6/include/php/ext -I/opt/plesk/php/5.6/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /tmp/memcached/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o
/tmp/memcached/php_memcached.c: En la función ‘zim_Memcached_fetch’:
/tmp/memcached/php_memcached.c:1067: aviso: el paso del argumento 4 de ‘add_assoc_stringl_ex’ descarta los calificadores del tipo del destino del puntero
/opt/plesk/php/5.6/include/php/Zend/zend_API.h:385: nota: se esperaba ‘char *’ pero el argumento es de tipo ‘const char *’
/tmp/memcached/php_memcached.c: En la función ‘zim_Memcached_fetchAll’:
/tmp/memcached/php_memcached.c:1126: aviso: el paso del argumento 4 de ‘add_assoc_stringl_ex’ descarta los calificadores del tipo del destino del puntero
/opt/plesk/php/5.6/include/php/Zend/zend_API.h:385: nota: se esperaba ‘char *’ pero el argumento es de tipo ‘const char *’
/tmp/memcached/php_memcached.c: En la función ‘php_memc_do_result_callback’:
/tmp/memcached/php_memcached.c:3675: aviso: el paso del argumento 4 de ‘add_assoc_stringl_ex’ descarta los calificadores del tipo del destino del puntero
/opt/plesk/php/5.6/include/php/Zend/zend_API.h:385: nota: se esperaba ‘char *’ pero el argumento es de tipo ‘const char *’
.
.
.
libtool: link: cc -shared .libs/php_memcached.o .libs/php_libmemcached_compat.o fastlz/.libs/fastlz.o .libs/g_fmt.o .libs/php_memcached_session.o -L/usr/local/lib -lz /usr/local/lib/libmemcachedutil.a /usr/local/lib/libmemcached.a -ldl -lsasl2 -Wl,-rpath -Wl,/usr/local/lib -pthread -Wl,-soname -Wl,memcached.so -o .libs/memcached.so
/usr/bin/ld: /usr/local/lib/libmemcached.a(libmemcached_libmemcached_la-auto.o): relocation R_X86_64_PC32 against symbol `memcached_decrement_by_key' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [memcached.la] Error 1
ERROR: `make' failed