[openssl.org #1125] Bug-report: namespace clash with Solaris crypt.h

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[openssl.org #1125] Bug-report: namespace clash with Solaris crypt.h

Rich Salz via RT

OK, the definition of des_crypt() is disabled.

Ticket resolved.

[[hidden email] - Wed Jun 22 13:25:46 2005]:

> Hello,
>
> Hans Meine has (re-)discovered the following name-clash on Solaris 8
>    (SunOS 5.8):
>
>   meine@kogs2:/software/cyrus-sasl-2.1.21/source/cyrus-sasl-
>    2.1.21/build-SunOS-5.8/saslauthd
>   -> make
>   gmake  all-am
>   gmake[1]: Entering directory
>   `/software/cyrus-sasl-2.1.21/source/cyrus-sasl-2.1.21/build-SunOS-
>    5.8/saslauthd'
>   source='../../saslauthd/auth_getpwent.c' object='auth_getpwent.o'
>    libtool=no \
>   depfile='.deps/auth_getpwent.Po'
>    tmpdepfile='.deps/auth_getpwent.TPo' \
>   depmode=gcc /bin/bash ../../saslauthd/config/depcomp \
>   gcc -DHAVE_CONFIG_H
>   -DSASLAUTHD_CONF_FILE_DEFAULT=\"/software/cyrus-sasl-2.1.21/etc/
saslauthd.conf\"

>   -I. -I../../saslauthd -I.. -I. -I../../saslauthd -I.
>   -I../../saslauthd/include -I./include -I../../saslauthd/../include
>   -I/software/openssl-0.9.7g/SunOS-5.8/include  -g -O2 -c `test -f
>   '../../saslauthd/auth_getpwent.c' || echo
>   '../../saslauthd/'`../../saslauthd/auth_getpwent.c
>   In file included from ../../saslauthd/auth_getpwent.c:53:
>   /usr/include/crypt.h:22: parse error before `('
>   /usr/include/crypt.h:22: parse error before `const'
>   gmake[1]: *** [auth_getpwent.o] Error 1
>   gmake[1]: Leaving directory
>   `/software/cyrus-sasl-2.1.21/source/cyrus-sasl-2.1.21/build-SunOS-
>    5.8/saslauthd'
>   gmake: *** [all] Error 2
>
> The reason here ist that
>
> /software/openssl-0.9.7g/SunOS-5.8/include/openssl/des_old.h
>
> defines (in line 174)
>
> #define des_crypt(b,s)\
>  DES_crypt((b),(s))
>
> which lead to
>
> extern char * DES_crypt(( const char * ),(  const char * )) ;
>
> in /usr/include/crypt.h:22
>
> This seems to be a reasonably well known issue, see e.g.
>
> http://www.opensubscriber.com/message/cyrus-
>    [hidden email]/1505445.html
> http://www.google.com/search?q=crypt.h+solaris+des_old.h
>
> Greetings
>
> Sven Utcke


--
Richard Levitte
[hidden email]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]