I keep getting the following error during the "make" with mcrypt 2.5.7 and I've been searching around but couldn't find any clues.. any assistance is greatly apprecated!
tripledes_LTX__mcrypt_get_key_size ../lib/.libs/libmcrypt.so
rijndael_192_LTX__mcrypt_self_test ../lib/.libs/libmcrypt.so
ld: fatal: Symbol referencing errors. No output written to .libs/ciphertest
collect2: ld returned 1 exit status
make[2]: *** [ciphertest] Error 1
make[2]: Leaving directory `/export/spare/local/src/libmcrypt-2.5.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/spare/local/src/libmcrypt-2.5.7'
make: *** [all] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We had the same problem on Solaris 9. Another solution we found (if you do not wish to enable dynamic loading), would be to set /usr/xpg4/bin before /bin in your PATH and then run ./configure in a clean source directory. Oddly enough, it worked (cf. comment on "mcrypt 2.5.7 oddities" bug report).
Hope it helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I keep getting the following error during the "make" with mcrypt 2.5.7 and I've been searching around but couldn't find any clues.. any assistance is greatly apprecated!
tripledes_LTX__mcrypt_get_key_size ../lib/.libs/libmcrypt.so
rijndael_192_LTX__mcrypt_self_test ../lib/.libs/libmcrypt.so
ld: fatal: Symbol referencing errors. No output written to .libs/ciphertest
collect2: ld returned 1 exit status
make[2]: *** [ciphertest] Error 1
make[2]: Leaving directory `/export/spare/local/src/libmcrypt-2.5.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/spare/local/src/libmcrypt-2.5.7'
make: *** [all] Error 2
Same here:
/bin/bash ../libtool --mode=link gcc -g -O2 -o ciphertest cipher_test.o ../lib/libmcrypt.la
gcc -g -O2 -o .libs/ciphertest cipher_test.o ../lib/.libs/libmcrypt.so -R/usr/local/lib
Undefined first referenced
symbol in file
nofb_LTX__mcrypt_get_state ../lib/.libs/libmcrypt.so
ecb_LTX__mcrypt ../lib/.libs/libmcrypt.so
...
...
...
wake_LTX__mcrypt_decrypt ../lib/.libs/libmcrypt.so
ld: fatal: Symbol referencing errors. No output written to .libs/ciphertest
collect2: ld returned 1 exit status
make[2]: *** [ciphertest] Error 1
ok. got it:
./configure --enable-dynamic-loading
works.
We had the same problem on Solaris 9. Another solution we found (if you do not wish to enable dynamic loading), would be to set /usr/xpg4/bin before /bin in your PATH and then run ./configure in a clean source directory. Oddly enough, it worked (cf. comment on "mcrypt 2.5.7 oddities" bug report).
Hope it helps.
I was able to compile and install, but it was unusable (libmcrypt-2.5.8 compiled with gcc under solaris 9).
make check was failing.
After having put the xpg4 path in first and recompiled everything, make check was successfull and php could use mcrypt too.
This is weird!
Thanks a lot for your solution.