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

Compile error with gcc 3.3.1 on solaris 8



All,

I'm attempting make openldap-2.1.23, and I'm getting a parse error.  I'm using GCC 3.3.1 on Solaris 8.  Below is my ./configure and my environment variables.  I suspect however that GCC is to blame for this one but I'm wondering if anyone can confirm or has come across the same error.

Thanks,
Elliot


CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.1/include"
LDFLAGS="-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.1/lib"

./configure --enable-crypt --enable-lmpasswd --enable-spasswd --enable-rewrite --enable-bdb --enable-ldap --enable-meta --enable-monitor --enable-null --enable-perl --enable-shell --with-tls --with-cyrus-sasl --without-x

Making all in /usr/local/src/openldap-2.1.23/libraries
  Entering subdirectory liblutil
gcc -g -O2 -I../../include -I../../include   -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.1/include  -I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.1/include -c  passwd.c
In file included from ../../include/ac/crypt.h:21,
                 from passwd.c:50:
/usr/include/crypt.h:22: error: parse error before '(' token
/usr/include/crypt.h:22: error: parse error before "const"
*** Error code 1
make: Fatal error: Command failed for target `passwd.o'
Current working directory /usr/local/src/openldap-2.1.23/libraries/liblutil
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /usr/local/src/openldap-2.1.23/libraries
*** Error code 1
make: Fatal error: Command failed for target `all-common'