[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: pb build 2.2.6 on Solaris



Greg Matthews wrote:
looks like it is using the solaris crypt header rather than the openssl
one.

No the openssl file is named crypto.h.

The problem is caused by the file $OPENSSL_BASE/include/openssl/des_old.h.
It contains:
+++
#define des_crypt(b,s)\
        DES_crypt((b),(s))
+++
That is what causes the problem...

Cheers

Jean-Frederic


On Wed, 2004-03-17 at 17:39, jean-frederic clere wrote:

Hi,

I have the following error when building on Solaris8/SPARC:
+++
cc -O -I../../include -I/export/home3/jfclere/PlusCD/work/openldap-2.2.6/include -I/opt/SMAWPlus/include -I/opt/SMAWPlus/openssl/include -I/opt/SMAWPlus/include/db4.2 -I/opt/SMAWPlus/include -I/opt/SMAWPlus/openssl/include -I/opt/SMAWPlus/include/db4.2 -c -o passwd.o passwd.c
"/usr/include/crypt.h", line 22: syntax error before or at: (
"/usr/include/crypt.h", line 22: syntax error before or at: const
"/usr/include/crypt.h", line 22: syntax error before or at: )
"/usr/include/crypt.h", line 22: warning: syntax error: empty declaration
"passwd.c", line 762: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "passwd.c", line 717
argument : pointer to char
"passwd.c", line 766: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "passwd.c", line 717
argument : pointer to char
"passwd.c", line 1324: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "passwd.c", line 717
argument : pointer to char
"passwd.c", line 1328: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char : "passwd.c", line 717
argument : pointer to char
cc: acomp failed for passwd.c
gmake[2]: *** [passwd.o] Error 2
gmake[2]: Leaving directory `/export/home3/jfclere/PlusCD/work/openldap-2.2.6/libraries/liblutil'
gmake[1]: *** [all-common] Error 1
gmake[1]: Leaving directory `/export/home3/jfclere/PlusCD/work/openldap-2.2.6/libraries'
+++


Any hints? - I have commented out the #include <crypt.h> in include/ac/crypt.h, that helps -

crypt.h contains something like:
+++
extern int crypt_close(int *);
extern char *des_crypt(const char *, const char *); (That is the line 22!).
extern void des_encrypt(char *, int);
+++

Cheers

Jean-Frederic