Just tried a cvs checkout as of Feb 16 8:40PM pacific time.
checking for standard DES crypt... yes
checking for extended DES crypt... no
checking for MD5 crypt... no
configure:43851: checking for MD5 crypt
configure:43851: checking for MD5 crypt
configure:43886: gcc -o conftest -g -O2 -
I/usr/local/devel/gd/include -I/usr/local/devel/zlib/include -
I/usr/local/devel/libpng/include -I/usr/local/devel/gdbm/include -Wl,-
rpath,/usr/local/security/openssl/lib -L/usr/local/security/openssl/lib -Wl,-
rpath,/usr/local/devel/gdbm/lib -L/usr/local/devel/gdbm/lib -Wl,-
rpath,/usr/local/devel/jpeg/lib -L/usr/local/devel/jpeg/lib -Wl,-
rpath,/usr/local/devel/gd/lib -L/usr/local/devel/gd/lib -Wl,-
rpath,/usr/local/devel/gettext/lib -L/usr/local/devel/gettext/lib -Wl,-
rpath,/usr/local/devel/c-client/lib -L/usr/local/devel/c-client/lib -Wl, -
rpath,/usr/local/services/openldap/lib -L/usr/local/services/openldap/lib -Wl,-
rpath,/usr/local/services/mysql/lib/mysql -L/usr/local/services/mysql/lib/mysql
conftest.c -lmysqlclient -lldap -llber -lcrypto -lssl -lintl -lgd -ljpeg -
lgdbm -lssl -lcrypto -lresolv -lm -ldl -lcrypt -lnsl -
L/usr/local/devel/gd/lib -L/usr/local/devel/zlib/lib -
L/usr/local/devel/libpng/lib -L/usr/local/devel/gdbm/lib -
L/usr/local/support/flex/lib -lresolv -L/usr/local/devel/jpeg/lib -ljpeg 1>&5
configure: failed program was:
#line 43862 "configure"
#include "confdefs.h"
#if HAVE_CRYPT_H
#include <crypt.h>
#endif
main() {
#if HAVE_CRYPT
char salt[15], answer[40];
salt[0]='$'; salt[1]='1'; salt[2]='$';
salt[3]='r'; salt[4]='a'; salt[5]='s';
salt[6]='m'; salt[7]='u'; salt[8]='s';
salt[9]='l'; salt[10]='e'; salt[11]='$';
salt[12]='\0';
strcpy(answer,salt);
strcat(answer,"rISCgZzpwk3UhDidwXvin0");
exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
#else
exit(0);
#endif
}
Quoting Bug Database <[EMAIL PROTECTED]>:
> ID: 9177
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Feedback
> Bug Type: *Install and Config
> Assigned To:
> Comments:
>
> IIRC this is fixed already in CVS so please try the latest CVS snapshot
> from http://snaps.php.net/
>
> --Jani
>
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-02-08 14:39:57] [EMAIL PROTECTED]
> MD5 crypt fails if PHP is compiled with openssl (specifically with the
> -lcrypto)
>
> If the .c file comes before the libraries, gcc won't recognize MD5 crypt:
>
> ----- blah.c -----
> root# cat blah.c
> #include <crypt.h>
>
> main() {
> char salt[15], answer[40];
>
> salt[0]='$'; salt[1]='1'; salt[2]='$';
> salt[3]='r'; salt[4]='a'; salt[5]='s';
> salt[6]='m'; salt[7]='u'; salt[8]='s';
> salt[9]='l'; salt[10]='e'; salt[11]='$';
> salt[12]='
>
--mk23
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]