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

Re: pb build 2.2.6 on Solaris



I have built openldap 2.2.6 on Solaris 9 just fine using gcc.  You may
want to try that:
setenv CC gcc
or
export CC=gcc (if you use bash).

If you do not have gcc you can get it from www.sunfreeware.com.  I use my
own compiled gcc.

If you use encap (www.encap.org) I will be willing to send you my prebuilt
binaries for openldap, sasl, heimdal, db.

I have install notes that you can find at:

www.math.gatech.edu/~dijuremo/ldap

It includes Berkeley db, heimdal, sasl, Certificate Authority and newly
posted Mit-Kerberos server howto (DO NOT USE MIT-Kerberos on your openldap
server, use heimdal).

Diego

On Thu, 18 Mar 2004, Greg Matthews wrote:

> looks like it is using the solaris crypt header rather than the openssl
> one.
>
> 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
> --
> Greg Matthews
> iTSS Wallingford	01491 692445
>