Re: troubles compiling ext/mcrypt/ on windows

From: Date: Thu, 16 Aug 2001 13:19:58 +0000
Subject: Re: troubles compiling ext/mcrypt/ on windows
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63431@lists.php.net to get a copy of this message
(this is getting off topic and not related to this list, sorry) can somebody at least please answer this and tell me that mcrypt and windows is impossible! or at least tell me I'm crazy! or at lesat tell me another 2-way encryption that I can use on windows. fustrated and going crazy, colin ================================ http://nexus.carleton.ca/~colin/ ================================ Colin McDonald wrote:
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


« previous php.dev (#63431) next »