J'essaie de compiler mcrypt-2.6.8 sous OSX 10.6.
./configure --with-prefix=/opt/local/mcrypt
...
configure: error: "You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/"
J'ai réussi à compiler mhash. Il est situé sur /opt/local/mhash. Malheureusement, l'éditeur de liens ne semble pas trouver les bibliothèques.
J'ai déjà essayé d'exporter DYLD_LIBRARY_PATH, LD_LIBRARY_PATH, de définir CFLAGS="$CFLAGS -L/opt/local/mhash", de copier les fichiers lib dans /usr/local/lib, ...
UPDATE : ./configure fonctionne maintenant avec
export CFLAGS="$CFLAGS -I/opt/local/mhash/include -L/opt/local/mhash/lib"
Mais maintenant "make" échoue avec
../config.h:219:1: warning: this is the location of the previous definition
rfc2440.c:26:20: error: malloc.h: No such file or directory
rfc2440.c: In function 'dek\_load':
rfc2440.c:562: warning: pointer targets in passing argument 5 of 'mhash\_keygen\_ext' differ in signedness
rfc2440.c: In function 'dek\_create':
rfc2440.c:613: warning: pointer targets in passing argument 5 of 'mhash\_keygen\_ext' differ in signedness
rfc2440.c: In function 'symkey\_enc\_decode':
rfc2440.c:631: warning: pointer targets in passing argument 2 of 'header\_decode' differ in signedness
rfc2440.c:631: warning: pointer targets in passing argument 3 of 'header\_decode' differ in signedness
rfc2440.c:631: warning: pointer targets in passing argument 4 of 'header\_decode' differ in signedness
make\[2\]: \*\*\* \[rfc2440.o\] Error 1
make\[1\]: \*\*\* \[all-recursive\] Error 1
make: \*\*\* \[all\] Error 2
Une idée ?