I'm trying to compile openldap-2.0.14 (using redhat's 2.0.11 RPM as a starting point and I get this error: checking for cc option to accept ANSI C... no configure: error: OpenLDAP requires compiler to support STDC constructs. I'm running something that was originally a redhat system but has been upgraded in various ways. my gcc is gcc-2.96-52. Here's the rest of the configure output in case there's a clue in here somewhere: + ./configure --target=i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-ldbm --enable-passwd --with-ldbm-api=gdbm --enable-shell --enable-local --enable-cldap --disable-rlookups --with-kerberos=k5 --enable-kbind --with-tls --with-cyrus-sasl --enable-wrappers --enable-cleartext --enable-crypt --enable-kpasswd --enable-spasswd --libexecdir=/usr/sbin --localstatedir=/var/run --without-slapd --with-slurpd --without-ldapd --with-threads --disable-shared --enable-static Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved. Restrictions apply, see COPYRIGHT and LICENSE files. Configuring OpenLDAP 2.0.14-Release ... checking host system type... i686-pc-linux-gnu checking target system type... i386-redhat-linux-gnu checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for mawk... mawk checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for gnutar... no checking for gtar... gtar checking configure arguments... done checking for cc... cc checking for ranlib... ranlib checking for gcc... (cached) cc checking whether the C compiler (cc -I/usr/kerberos/include -O2 -march=i386 -mcpu=i686 -D_REENTRANT -fPIC -I/usr/kerberos/include -L/usr/kerberos/lib) works... yes checking whether the C compiler (cc -I/usr/kerberos/include -O2 -march=i386 -mcpu=i686 -D_REENTRANT -fPIC -I/usr/kerberos/include -L/usr/kerberos/lib) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking for object suffix... o checking for executable suffix... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.lo... yes checking if cc supports -fno-rtti -fno-exceptions ... yes checking if cc static flag -static works... -static checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for objdir... .libs checking for dlopen in -ldl... yes checking for dlfcn.h... no checking whether a program can dlopen itself... no creating libtool not updating unwritable cache ./config.cache checking for mawk... (cached) mawk checking whether ln works... yes checking whether ln -s works... (cached) yes checking for sendmail... /usr/sbin/sendmail checking for vi... /usr/bin/emacs checking for finger... /usr/bin/finger checking how to run the C preprocessor... /lib/cpp checking for AIX... no checking for POSIXized ISC... no checking for minix/config.h... no checking for Cygwin environment... no checking for mingw32 environment... no checking for EMX OS/2 environment... no checking for executable suffix... no checking for object suffix... o checking for be_app in -lbe... no checking for cc option to accept ANSI C... no configure: error: OpenLDAP requires compiler to support STDC constructs. error: Bad exit status from /var/tmp/rpm-tmp.96844 (%build) On the other hand, if anybody has already built an RPM of 2.0.14, it would save me some real effort to get a copy. Chris -- Chris Garrigues http://www.DeepEddy.Com/~cwg/ virCIO http://www.virCIO.Com 4314 Avenue C Austin, TX 78751-3709 +1 512 374 0500 My email address is an experiment in SPAM elimination. For an explanation of what we're doing, see http://www.DeepEddy.Com/tms.html Nobody ever got fired for buying Microsoft, but they could get fired for relying on Microsoft.
Attachment:
pgp1PaTjkuTr8.pgp
Description: PGP signature