ReN
Verified User
- Joined
- Jul 2, 2005
- Messages
- 185
hey guys,
need a way to install mcrypt on freebsd 11.2 for php 7.2
tried all the guides
https://help.poralix.com/articles/install-mcrypt-for-php-72-on-directadmin-server
get
/bin/sh /usr/local/mcrypt-1.0.1/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/mcrypt-1.0.1/include -I/usr/local/mcrypt-1.0.1/main -I/usr/local/mcrypt-1.0.1 -I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -o ./mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/mcrypt-1.0.1/modules mcrypt.lo mcrypt_filter.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lmcrypt -lltdl
cc -shared .libs/mcrypt.o .libs/mcrypt_filter.o -L/usr/local/lib /usr/local/lib/libmcrypt.a /usr/local/lib/libltdl.a -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,mcrypt.so -o ./.libs/mcrypt.so
/usr/bin/ld: /usr/local/lib/libmcrypt.a(mcrypt_extra.o): relocation R_X86_64_32 against `mps' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libmcrypt.a: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
any ideas??
need a way to install mcrypt on freebsd 11.2 for php 7.2
tried all the guides
https://help.poralix.com/articles/install-mcrypt-for-php-72-on-directadmin-server
get
/bin/sh /usr/local/mcrypt-1.0.1/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/mcrypt-1.0.1/include -I/usr/local/mcrypt-1.0.1/main -I/usr/local/mcrypt-1.0.1 -I/usr/local/php72/include/php -I/usr/local/php72/include/php/main -I/usr/local/php72/include/php/TSRM -I/usr/local/php72/include/php/Zend -I/usr/local/php72/include/php/ext -I/usr/local/php72/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -o ./mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/mcrypt-1.0.1/modules mcrypt.lo mcrypt_filter.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lmcrypt -lltdl
cc -shared .libs/mcrypt.o .libs/mcrypt_filter.o -L/usr/local/lib /usr/local/lib/libmcrypt.a /usr/local/lib/libltdl.a -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,mcrypt.so -o ./.libs/mcrypt.so
/usr/bin/ld: /usr/local/lib/libmcrypt.a(mcrypt_extra.o): relocation R_X86_64_32 against `mps' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libmcrypt.a: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
any ideas??