| Article: |
PHP 4.3 and Mac OS X | |
| Subject: | mcrypt | |
| Date: | 2003-01-21 08:48:03 | |
| From: | anonymous2 | |
| Has anyone gotten mcrypt to work? I try compiling with mcrypt using the fink libraries. The configure works just fine, but when I compile it gives me some error about changing a pointer to an int or something like that. | ||
Showing messages 1 through 2 of 2.
-
mcrypt
2003-01-21 16:16:54 Adam Trachtenberg |
[View]
-
mcrypt
2003-02-28 18:55:56 tychay [View]
I had no problem compiling against the fink libraries. My Configure line:
'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs=/usr/sbin/apxs' '--enable-soap=/sw' '--with-imagick=/sw' '--with-xmlrpc' '--with-pdflib=/sw' '--with-iodbc=/usr' '--with-mysql=/sw' '--with-mysql-sock=/private/tmp/mysql.sock' '--with-mnogosearch=/sw' '--with-ming=/sw' '--with-mime-magic' '--with-mhash=/sw' '--with-mcrypt=/sw' '--with-iconv=/sw' '--with-iconv-dir=/sw' '--with-gmp=/sw' '--with-gettext=/sw' '--with-gd' '--with-jpeg-dir=/sw' '--with-png-dir=/sw' '--with-xpm-dir=/sw' '--with-freetype-dir=/sw' '--with-t1lib=/sw' '--enable-gd-native-ttf' '--enable-exif' '--with-tiff-dir=/sw' '--with-dom=/sw' '--with-curl=/sw' '--with-curlwrappers' '--with-bz2=/sw' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-config-file-path=/etc' '--with-expat-dir=/sw' '--enable-wddx' '--enable-sockets' '--with-mm=/sw' '--enable-mbstring=all' '--enable-mbregex' '--enable-ftp' '--enable-dio' '--enable-dbx' '--enable-dba' '--with-db3=/sw' '--with-gdbm=/sw' '--with-ndbm=/usr' '--with-cdb' '--with-flatfile' '--enable-calendar' '--enable-bcmath' '--disable-debug' '--disable-short-tags'
The version I am using is libmcrypt(-shlibs)-2.5.5-1 unstable package from Fink.
My test script (Mac OS X 10.2.4, PB G4/800):
bash-2.05a$ php -r 'echo base64_encode(mcrypt_ecb(MCRYPT_BLOWFISH, "key", "Something to encrypt",MCRYPT_ENCRYPT)),"\n";'
HWiUtsE0PWDKoK6wtNTSiSjbdz0KUeLa
Hope this helps,
terry chay
tychay at php dot net



At first, I thought it was a problem with mcrypt 2.5.x instead of 2.4.x. But, I'm not positive about this anymore.
Let me know if you make any progress on this.
-adam