You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to compile the aws-elasticache-cluster-client for PHP 7.0.4.
I have attempted to build it both on the Amazon Linux AMI (Latest) and a normal CentOS 6.7 image and it errors with:
*** Warning: Linking the shared library memcached.la against the
*** static library /usr/local/lib/libmemcached.a is not portable!
libtool: link: cc -shared .libs/php_memcached.o .libs/php_libmemcached_compat.o .libs/g_fmt.o fastlz/.libs/fastlz.o .libs/php_memcached_session.o -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -lz /usr/local/lib/libmemcached.a -lcrypt -lpthread -lm -lstdc++ -lsasl2 /usr/local/lib/libmemcachedutil.so /usr/local/lib/libmemcached.so -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-allocators.o): relocation R_X86_64_32S against `_Z20_libmemcached_mallocPK12memcached_stmPv' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libmemcached.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [memcached.la] Error 1
I am attempting to build it statically so I can use it on different hosts. Here is the ./configure line:
Hello,
I am attempting to compile the aws-elasticache-cluster-client for PHP 7.0.4.
I have attempted to build it both on the Amazon Linux AMI (Latest) and a normal CentOS 6.7 image and it errors with:
I am attempting to build it statically so I can use it on different hosts. Here is the ./configure line:
Along with the MEMCACHED_SHARED_LIBADD line:
I am also using aws-elasticache-cluster-client-libmemcached to compile against. Also I have verified that I am using the proper php7 branch.
The text was updated successfully, but these errors were encountered: