#19804 [Bgs->Opn]: PHP does not take the Libmcrypt ciphers when compiling
| From: | scott at abcoa dot com | Date: | Tue, 08 Oct 2002 14:21:59 +0000 |
| Subject: | #19804 [Bgs->Opn]: PHP does not take the Libmcrypt ciphers when compiling | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21807@lists.php.net to get a copy of this message | ||
ID: 19804
User updated by: scott@abcoa.com
Reported By: scott@abcoa.com
-Status: Bogus
+Status: Open
Bug Type: *Compile Issues
Operating System: AIX 4.3.3
PHP Version: 4.2.3
New Comment:
Re-opening the bug....
I tried many different ways as the PHP Manual stated and I still get
the error messasges, 'Warning: mcrypt module initialization failed in
....'. When PHP manual stated about
"mcrypt_module_open (MCRYPT_DES, '', MCRYPT_MODE_ECB, '')"
I still get the error, so I tried the other examples.
"mcrypt_module_open (MCRYPT_DES, '', MCRYPT_MODE_ECB,
'/usr/lib/mcrypt-modes')"
I still get the error message. Problme is I have no such directory as
"mcrypt-modes" on the server. I also assumed that the 2nd parament
refer to "mcrypt-algorithms" since the PHP Manual didn't anything about
the 2nd parameter.
I checked the PHP Info on the server, the 1st clipping showed the
actual result before I add the two lines of code to php.ini. The 2nd
clipping showed the actual result of hte 2nd line of codes. (mcrypt
directory).
--clip--
<h2 align="center"><a
name="module_mcrypt">mcrypt</a></h2>
<table border="0" cellpadding="3" cellspacing="1"
width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle" bgcolor="#9999cc"><th>mcrypt
support</th><th>enabled</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>version</b></td><td
align="left">>=
2.4.x</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported ciphers</b></td><td
align="left">none</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported modes</b></td><td
align="left">none</td></tr>
</tbody></table><br>
<table border="0" cellpadding="3" cellspacing="1"
width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle"
bgcolor="#9999cc"><th>Directive</th><th>Local
Value</th><th>Master
Value</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.algorithms_dir</b><br></td><td
align="center"><i>no value</i></td><td
align="center"><i>no
value</i></td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.modes_dir</b><br></td><td
align="center"><i>no value</i></td><td
align="center"><i>no
value</i></td></tr>
</tbody></table>
--clip--
--clip--
<h2 align="center"><a
name="module_mcrypt">mcrypt</a></h2>
<table border="0" cellpadding="3" cellspacing="1"
width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle" bgcolor="#9999cc"><th>mcrypt
support</th><th>enabled</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>version</b></td><td
align="left">>=
2.4.x</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported ciphers</b></td><td
align="left">none</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported modes</b></td><td
align="left">none</td></tr>
</tbody></table><br>
<table border="0" cellpadding="3" cellspacing="1"
width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle"
bgcolor="#9999cc"><th>Directive</th><th>Local
Value</th><th>Master
Value</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.algorithms_dir</b><br></td><td
align="center">/usr/local/lib/libmcrypt</td><td
align="center">/usr/local/lib/libmcrypt</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.modes_dir</b><br></td><td
align="center">/usr/local/lib/libmcrypt</td><td
align="center">/usr/local/lib/libmcrypt</td></tr>
</tbody></table>
--clip--
This still does not solve my problem. So, I did hte google search and
came upon someone's PHP Info website and found this if their encryption
function work.
--clip--
<h2 align="center"><a
name="module_mcrypt">mcrypt</a></h2>
<table border="0" cellpadding="3" cellspacing="1"
width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle" bgcolor="#9999cc"><th>mcrypt
support</th><th>enabled</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>version</b></td><td
align="left">>=
2.4.x</td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported ciphers</b></td><td
align="left">arcfour
blowfish-compat blowfish cast-128 cast-256 des enigma gost loki97
panama
rc2 rijndael-128 rijndael-192 rijndael-256 safer-sk128 safer-sk64
saferplus
serpent threeway tripledes twofish wake xtea </td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>Supported modes</b></td><td
align="left">cbc cfb
ecb ncfb nofb ofb stream </td></tr>
</tbody></table><br>
<table border="0" cellpadding="3" cellspacing="1"
width="600"
bgcolor="#000000" align="center">
<tbody><tr valign="middle"
bgcolor="#9999cc"><th>Directive</th><th>Local
Value</th><th>Master
Value</th></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.algorithms_dir</b><br></td><td
align="center"><i>no value</i></td><td
align="center"><i>no
value</i></td></tr>
<tr valign="baseline" bgcolor="#cccccc"><td
bgcolor="#ccccff"><b>mcrypt.modes_dir</b><br></td><td
align="center"><i>no value</i></td><td
align="center"><i>no
value</i></td></tr>
</tbody></table>
--clip--
Since mine still have no supported ciphers, so it explain why the
php-mycrypt function don't work at all. I was trying to say that I
have been working on it for almost a week and I can tell that PHP
./configure didn't find it and when compiling PHP, PHP does not take in
hte libmcrypt algorithm. It only take in libmcrypt but not the
algorithm or modes. So, I believe I stand correct on this php bug.
Previous Comments:
------------------------------------------------------------------------
[2002-10-07 14:49:29] scott@abcoa.com
I have been working on this issues for almost a week now. I have been
trying to get it to work. Yes, I did read the manual at php.net/mcrypt
and I still struggle. I will try again with the manual on
mcrypt_module_open(). What make you think I did not read this stupid
manual? Thanks for the comment and I will try it again.
------------------------------------------------------------------------
[2002-10-07 14:36:30] derick@php.net
/usr/local/lib/libmcrypt
see also: http://www.php.net/manual/en/function.mcrypt-module-open.php
really, read the manual. If you're certain there is still a bug,
reopen.
Derick
------------------------------------------------------------------------
[2002-10-07 13:45:55] scott@abcoa.com
Okay, the PATH in the php.ini. Not a problem. What exactly should I
be looking for in the filepath, like mcrypt.algorithms_dir = ????.
What are the example of files inside one of the directory, so I can
figure out whether am I looking for in libmcrypt or php. What are hte
filenames I should be looking for?
Thanks,
FletchSOD
------------------------------------------------------------------------
[2002-10-07 13:37:17] derick@php.net
Set the paths in your php.ini as described on
http://www.php.net/manual/en/ref.mcrypt.php
See "table 1".
Derick
------------------------------------------------------------------------
[2002-10-07 13:11:56] scott@abcoa.com
Eh, Didn't finish with all of hte clipping. Could be that bug database
can't accept them all. By the make, I did hte best I could on make
because it is too long for the computer screen. I tried this command,
"make > log_make" but found that not all of hte data go into the
log_make and whatever is left is spitted out onto the screen.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19804
--
Edit this bug report at http://bugs.php.net/?id=19804&edit=1