troubles compiling ext/mcrypt/ on windows
| From: | colin mcdonald | Date: | Tue, 14 Aug 2001 18:39:00 +0000 |
| Subject: | troubles compiling ext/mcrypt/ on windows | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63174@lists.php.net to get a copy of this message | ||
Hi there,
(I'm cc'ing you sascha because you seem to be the author of this area of mcrypt, I apologize if you are not and/or are bothered by this)
I downloaded the source for php-4.0.6 today and attempted to compile mcrypt functionality into a windows version of php.
I opened ext/mcrypt/mcrypt.dsp into VC++ and attempted to "build the project". I get these errors when attempting to do so:
--------------------Configuration: mcrypt - Win32 Debug_TS--------------------
Compiling...
mcrypt.c
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(1480) : warning C4018: '<' : signed/unsigned mismatch
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(1490) : warning C4244: '=' : conversion from 'double ' to 'char ', possible loss of data
readdir.c
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(802) : warning C4700: local variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(825) : warning C4700: local variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(848) : warning C4700: local variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(871) : warning C4700: local variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(894) : warning C4700: local variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(912) : warning C4700: local variable 'lib_dir' used without having been initialized
C:\php4\php-4.0.6\ext\mcrypt\mcrypt.c(931) : warning C4700: local variable 'lib_dir' used without having been initialized
Linking...
LINK : fatal error LNK1181: cannot open input file "libmcrypt.lib"
Error executing link.exe.
php_mcrypt.dll - 1 error(s), 9 warning(s)
I'm NOT concerned about the first 2 warnings, it's more the next ones.
it seems to be having trouble on line 204 (mcrypt.c) which is a call to
Z_STRVAL_PP(lib_dir)
Could this be why the linking cannot occur?
NOTE: I followed all the steps here before attempting to compile mcrypt, ie instaled cygwin, etc. (I don't if it matters, probably?)
Another NOTE: you may want to strip my email address from your reply OR take out the underscores.
thanks for your help,
colin