Re: [apache-ssl] mod_auth_mysql des_encrypt incompatibility with ssl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-ssl] mod_auth_mysql des_encrypt incompatibility with ssl




In article <Pine.GSO.3.96.980817170639.2090M-100000@guinness.chelsea.net> you wrote:
> I am trying to compile apache_1.3.0+ssl_1.19 and SSLeay 0.8.0 with
> mod_auth_mysql enabled on SunOS 5.5.1 and am getting the following error:

> gcc -c  -I../../os/unix -I../../include -I/opt/ssl/0.8.0/include
> -DSOLARIS2=251 -DSTATUS -DAPACHE_SSL `../../apaci` mod_auth_mysql.c
> In file included from mod_auth_mysql.c:80:
> /usr/include/crypt.h:23: conflicting types for `des_encrypt'
> /opt/ssl/0.8.0/include/des.h:171: previous declaration of `des_encrypt'
> make[2]: *** [mod_auth_mysql.o] Error 1

> It would appear that the standard crypt.h and SSL's des.h have name
> collisions. Has anyone gotten these to work together? I was thinking of
> eliminating crypt.h and trying to get mod_auth_mysql to use des.h for its
> definition of crypt. (mod_auth_mysql doesn't actually use
> des_encrypt.)

You have to add the same hack to mod_auth_mysql.c which
is already done for mod_auth.c:

#if defined(HAVE_CRYPT_H)
#if defined(APACHE_SSL)
#define des_encrypt MOVE_AWAY_des_encrypt
#include <crypt.h>
#undef des_encrypt
#else
#include <crypt.h>
#endif
#endif

Greetings,
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com