Sam Varshavchik wrote:

[..]

> 
> Courier 0.53.0
> 
> Download: http://www.courier-mta.org/download.php
> 
> Changes:
> 
> • All the above changes
> 
> • maildirquota: Unclobber the Date: header.
> 
> • ldapaliasd:  Try to recover when the LDAP server closes the persistent
> socket, for inactivity.
> 

Compilation failed on Debian sarge:

checking for ldap.h... yes
configure: error: ldap.h header found, but a test compile failed -- check
ldapaddressbook/config.log for more details
configure: error: /bin/sh './configure' failed for ldapaddressbook
make: *** [build] Error 1

The config.log is attached. ldap.h is from openldap 2.1.30.

Please advise what is going wrong here.

Thanks
        Racke
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --prefix=/usr --mandir=${prefix}/share/man --with-piddir=/var/run/courier --sysconfdir=/etc/courier --libexecdir=${prefix}/lib/courier --datadir=${prefix}/lib/courier --localstatedir=/var/lib/courier --sbindir=${exec_prefix}/sbin --with-mailuser=daemon --with-mailgroup=daemon --without-socks --enable-workarounds-for-imap-client-bugs --with-authdaemonvar=/var/run/courier/authdaemon --with-db=gdbm --without-fcgi --with-htmllibdir=/usr/share/sqwebmail --with-ispell=/usr/bin/ispell --enable-imageurl=/sqwebmail --with-mailer=/usr/sbin/sendmail --enable-sendmail=/usr/sbin/sendmail --with-cachedir=/var/cache/sqwebmail --with-calendardir=/var/run/courier/calendar --with-webadmindir=/usr/share/courier/webadmin --enable-userdb --enable-syslog=1 --enable-unicode --disable-root-check --with-postgresql-includes=/usr/include/postgresql LDFLAGS=-lcrypt --with-makedatprog=/usr/lib/courier/courier/makedatprog --with-package=courier --with-version=0.53.0 --with-courierlogger=/usr/sbin/courierlogger --with-mailuid=1 --with-mailgid=1 --enable-trusted-groups=daemon --with-formdata --enable-utf7-folder-encoding --cache-file=/dev/null --srcdir=.

## --------- ##
## Platform. ##
## --------- ##

hostname = shinn
uname -m = i686
uname -r = 2.6.15.2
uname -s = Linux
uname -v = #1 PREEMPT Sun Feb 5 01:31:05 CET 2006

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/racke/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1538: checking for a BSD-compatible install
configure:1593: result: /usr/bin/install -c
configure:1604: checking whether build environment is sane
configure:1647: result: yes
configure:1712: checking for gawk
configure:1728: found /usr/bin/gawk
configure:1738: result: gawk
configure:1748: checking whether make sets $(MAKE)
configure:1768: result: yes
configure:1976: checking for gcc
configure:1992: found /usr/bin/gcc
configure:2002: result: gcc
configure:2246: checking for C compiler version
configure:2249: gcc --version </dev/null >&5
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2252: $? = 0
configure:2254: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
configure:2257: $? = 0
configure:2259: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2262: $? = 1
configure:2285: checking for C compiler default output file name
configure:2288: gcc   -lcrypt conftest.c  >&5
configure:2291: $? = 0
configure:2337: result: a.out
configure:2342: checking whether the C compiler works
configure:2348: ./a.out
configure:2351: $? = 0
configure:2368: result: yes
configure:2375: checking whether we are cross compiling
configure:2377: result: no
configure:2380: checking for suffix of executables
configure:2382: gcc -o conftest   -lcrypt conftest.c  >&5
configure:2385: $? = 0
configure:2410: result: 
configure:2416: checking for suffix of object files
configure:2437: gcc -c   conftest.c >&5
configure:2440: $? = 0
configure:2462: result: o
configure:2466: checking whether we are using the GNU C compiler
configure:2490: gcc -c   conftest.c >&5
configure:2496: $? = 0
configure:2500: test -z 
			 || test ! -s conftest.err
configure:2503: $? = 0
configure:2506: test -s conftest.o
configure:2509: $? = 0
configure:2522: result: yes
configure:2528: checking whether gcc accepts -g
configure:2549: gcc -c -g  conftest.c >&5
configure:2555: $? = 0
configure:2559: test -z 
			 || test ! -s conftest.err
configure:2562: $? = 0
configure:2565: test -s conftest.o
configure:2568: $? = 0
configure:2579: result: yes
configure:2596: checking for gcc option to accept ANSI C
configure:2666: gcc  -c -g -O2  conftest.c >&5
configure:2672: $? = 0
configure:2676: test -z 
			 || test ! -s conftest.err
configure:2679: $? = 0
configure:2682: test -s conftest.o
configure:2685: $? = 0
configure:2703: result: none needed
configure:2721: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2727: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2871: checking for style of include used by make
configure:2899: result: GNU
configure:2927: checking dependency style of gcc
configure:3017: result: gcc3
configure:3035: checking for library containing strerror
configure:3065: gcc -o conftest -g -O2  -lcrypt conftest.c  >&5
configure:3071: $? = 0
configure:3075: test -z 
			 || test ! -s conftest.err
configure:3078: $? = 0
configure:3081: test -s conftest
configure:3084: $? = 0
configure:3154: result: none required
configure:3166: checking how to run the C preprocessor
configure:3201: gcc -E  conftest.c
configure:3207: $? = 0
configure:3239: gcc -E  conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:3245: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3284: result: gcc -E
configure:3308: gcc -E  conftest.c
configure:3314: $? = 0
configure:3346: gcc -E  conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:3352: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3396: checking for egrep
configure:3406: result: grep -E
configure:3412: checking for AIX
configure:3434: result: no
configure:3440: checking for ANSI C header files
configure:3465: gcc -c -g -O2  conftest.c >&5
configure:3471: $? = 0
configure:3475: test -z 
			 || test ! -s conftest.err
configure:3478: $? = 0
configure:3481: test -s conftest.o
configure:3484: $? = 0
configure:3570: gcc -o conftest -g -O2  -lcrypt conftest.c  >&5
configure:3573: $? = 0
configure:3575: ./conftest
configure:3578: $? = 0
configure:3593: result: yes
configure:3617: checking for sys/types.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for sys/stat.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for stdlib.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for string.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for memory.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for strings.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for inttypes.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for stdint.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3617: checking for unistd.h
configure:3633: gcc -c -g -O2  conftest.c >&5
configure:3639: $? = 0
configure:3643: test -z 
			 || test ! -s conftest.err
configure:3646: $? = 0
configure:3649: test -s conftest.o
configure:3652: $? = 0
configure:3663: result: yes
configure:3685: checking minix/config.h usability
configure:3697: gcc -c -g -O2  conftest.c >&5
conftest.c:53:26: minix/config.h: No such file or directory
configure:3703: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:3726: result: no
configure:3730: checking minix/config.h presence
configure:3740: gcc -E  conftest.c
conftest.c:19:26: minix/config.h: No such file or directory
configure:3746: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <minix/config.h>
configure:3766: result: no
configure:3801: checking for minix/config.h
configure:3808: result: no
configure:3915: checking build system type
configure:3933: result: i686-pc-linux-gnu
configure:3941: checking host system type
configure:3955: result: i686-pc-linux-gnu
configure:3963: checking for a sed that does not truncate output
configure:4017: result: /bin/sed
configure:4031: checking for ld used by gcc
configure:4098: result: /usr/bin/ld
configure:4107: checking if the linker (/usr/bin/ld) is GNU ld
configure:4122: result: yes
configure:4127: checking for /usr/bin/ld option to reload object files
configure:4134: result: -r
configure:4152: checking for BSD-compatible nm
configure:4194: result: /usr/bin/nm -B
configure:4198: checking whether ln -s works
configure:4202: result: yes
configure:4209: checking how to recognise dependent libraries
configure:4381: result: pass_all
configure:4603: checking dlfcn.h usability
configure:4615: gcc -c -g -O2  conftest.c >&5
configure:4621: $? = 0
configure:4625: test -z 
			 || test ! -s conftest.err
configure:4628: $? = 0
configure:4631: test -s conftest.o
configure:4634: $? = 0
configure:4644: result: yes
configure:4648: checking dlfcn.h presence
configure:4658: gcc -E  conftest.c
configure:4664: $? = 0
configure:4684: result: yes
configure:4719: checking for dlfcn.h
configure:4726: result: yes
configure:4791: checking for g++
configure:4807: found /usr/bin/g++
configure:4817: result: g++
configure:4833: checking for C++ compiler version
configure:4836: g++ --version </dev/null >&5
g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4839: $? = 0
configure:4841: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
configure:4844: $? = 0
configure:4846: g++ -V </dev/null >&5
g++: `-V' option must have argument
configure:4849: $? = 1
configure:4852: checking whether we are using the GNU C++ compiler
configure:4876: g++ -c   conftest.cc >&5
configure:4882: $? = 0
configure:4886: test -z 
			 || test ! -s conftest.err
configure:4889: $? = 0
configure:4892: test -s conftest.o
configure:4895: $? = 0
configure:4908: result: yes
configure:4914: checking whether g++ accepts -g
configure:4935: g++ -c -g  conftest.cc >&5
configure:4941: $? = 0
configure:4945: test -z 
			 || test ! -s conftest.err
configure:4948: $? = 0
configure:4951: test -s conftest.o
configure:4954: $? = 0
configure:4965: result: yes
configure:5007: g++ -c -g -O2  conftest.cc >&5
configure:5013: $? = 0
configure:5017: test -z 
			 || test ! -s conftest.err
configure:5020: $? = 0
configure:5023: test -s conftest.o
configure:5026: $? = 0
configure:5052: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:24: error: `exit' undeclared (first use this function)
conftest.cc:24: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
configure:5058: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }
configure:5007: g++ -c -g -O2  conftest.cc >&5
configure:5013: $? = 0
configure:5017: test -z 
			 || test ! -s conftest.err
configure:5020: $? = 0
configure:5023: test -s conftest.o
configure:5026: $? = 0
configure:5052: g++ -c -g -O2  conftest.cc >&5
configure:5058: $? = 0
configure:5062: test -z 
			 || test ! -s conftest.err
configure:5065: $? = 0
configure:5068: test -s conftest.o
configure:5071: $? = 0
configure:5096: checking dependency style of g++
configure:5186: result: gcc3
configure:5213: checking how to run the C++ preprocessor
configure:5244: g++ -E  conftest.cc
configure:5250: $? = 0
configure:5282: g++ -E  conftest.cc
conftest.cc:23:28: ac_nonexistent.h: No such file or directory
configure:5288: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5327: result: g++ -E
configure:5351: g++ -E  conftest.cc
configure:5357: $? = 0
configure:5389: g++ -E  conftest.cc
conftest.cc:23:28: ac_nonexistent.h: No such file or directory
configure:5395: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5492: checking for g77
configure:5521: result: no
configure:5492: checking for f77
configure:5521: result: no
configure:5492: checking for xlf
configure:5521: result: no
configure:5492: checking for frt
configure:5521: result: no
configure:5492: checking for pgf77
configure:5521: result: no
configure:5492: checking for fort77
configure:5521: result: no
configure:5492: checking for fl32
configure:5521: result: no
configure:5492: checking for af77
configure:5521: result: no
configure:5492: checking for f90
configure:5521: result: no
configure:5492: checking for xlf90
configure:5521: result: no
configure:5492: checking for pgf90
configure:5521: result: no
configure:5492: checking for epcf90
configure:5521: result: no
configure:5492: checking for f95
configure:5521: result: no
configure:5492: checking for fort
configure:5521: result: no
configure:5492: checking for xlf95
configure:5521: result: no
configure:5492: checking for ifc
configure:5521: result: no
configure:5492: checking for efc
configure:5521: result: no
configure:5492: checking for pgf95
configure:5521: result: no
configure:5492: checking for lf95
configure:5521: result: no
configure:5492: checking for gfortran
configure:5521: result: no
configure:5536: checking for Fortran 77 compiler version
configure:5536:  --version </dev/null >&5
./configure: line 1: --version: command not found
configure:5539: $? = 127
configure:5541:  -v </dev/null >&5
./configure: line 1: -v: command not found
configure:5544: $? = 127
configure:5546:  -V </dev/null >&5
./configure: line 1: -V: command not found
configure:5549: $? = 127
configure:5557: checking whether we are using the GNU Fortran 77 compiler
configure:5571:  -c  conftest.F >&5
./configure: line 1: -c: command not found
configure:5577: $? = 127
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
| 
|       end
configure:5603: result: no
configure:5609: checking whether  accepts -g
configure:5621:  -c -g conftest.f >&5
./configure: line 1: -c: command not found
configure:5627: $? = 127
configure: failed program was:
|       program main
| 
|       end
configure:5652: result: no
configure:5682: checking the maximum length of command line arguments
configure:5774: result: 32768
configure:5785: checking command to parse /usr/bin/nm -B output from gcc object
configure:5881: gcc -c -g -O2  conftest.c >&5
configure:5884: $? = 0
configure:5888: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ 	]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][ 	]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
configure:5891: $? = 0
configure:5943: gcc -o conftest -g -O2  -lcrypt conftest.c conftstm.o >&5
configure:5946: $? = 0
configure:5984: result: ok
configure:5988: checking for objdir
configure:6003: result: .libs
configure:6093: checking for ar
configure:6109: found /usr/bin/ar
configure:6120: result: ar
configure:6173: checking for ranlib
configure:6189: found /usr/bin/ranlib
configure:6200: result: ranlib
configure:6253: checking for strip
configure:6269: found /usr/bin/strip
configure:6280: result: strip
configure:6567: checking if gcc static flag  works
configure:6595: result: yes
configure:6613: checking if gcc supports -fno-rtti -fno-exceptions
configure:6634: gcc -c -g -O2  -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:6638: $? = 0
configure:6648: result: no
configure:6663: checking for gcc option to produce PIC
configure:6867: result: -fPIC
configure:6875: checking if gcc PIC flag -fPIC works
configure:6896: gcc -c -g -O2  -fPIC -DPIC conftest.c >&5
configure:6900: $? = 0
configure:6910: result: yes
configure:6934: checking if gcc supports -c -o file.o
configure:6958: gcc -c -g -O2  -o out/conftest2.o conftest.c >&5
configure:6962: $? = 0
configure:6981: result: yes
configure:7007: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
configure:7902: result: yes
configure:7928: checking whether -lc should be explicitly linked in
configure:7933: gcc -c -g -O2  conftest.c >&5
configure:7936: $? = 0
configure:7950: gcc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep  -lc  \>/dev/null 2\>\&1
configure:7953: $? = 0
configure:7965: result: no
configure:7973: checking dynamic linker characteristics
configure:8536: result: GNU/Linux ld.so
configure:8540: checking how to hardcode library paths into programs
configure:8565: result: immediate
configure:8579: checking whether stripping libraries is possible
configure:8584: result: yes
configure:9414: checking if libtool supports shared libraries
configure:9416: result: yes
configure:9419: checking whether to build shared libraries
configure:9440: result: yes
configure:9443: checking whether to build static libraries
configure:9447: result: yes
configure:9539: creating libtool
configure:10117: checking for ld used by g++
configure:10184: result: /usr/bin/ld
configure:10193: checking if the linker (/usr/bin/ld) is GNU ld
configure:10208: result: yes
configure:10259: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:11146: result: yes
configure:11164: g++ -c -g -O2  conftest.cc >&5
configure:11167: $? = 0
configure:11263: checking for g++ option to produce PIC
configure:11531: result: -fPIC
configure:11539: checking if g++ PIC flag -fPIC works
configure:11560: g++ -c -g -O2  -fPIC -DPIC conftest.cc >&5
configure:11564: $? = 0
configure:11574: result: yes
configure:11598: checking if g++ supports -c -o file.o
configure:11622: g++ -c -g -O2  -o out/conftest2.o conftest.cc >&5
configure:11626: $? = 0
configure:11645: result: yes
configure:11671: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:11696: result: yes
configure:11767: checking dynamic linker characteristics
configure:12330: result: GNU/Linux ld.so
configure:12334: checking how to hardcode library paths into programs
configure:12359: result: immediate
configure:12373: checking whether stripping libraries is possible
configure:12378: result: yes
configure:19918: checking for ANSI C header files
configure:20071: result: yes
configure:20095: checking sys/wait.h usability
configure:20107: gcc -c -g -O2  conftest.c >&5
configure:20113: $? = 0
configure:20117: test -z 
			 || test ! -s conftest.err
configure:20120: $? = 0
configure:20123: test -s conftest.o
configure:20126: $? = 0
configure:20136: result: yes
configure:20140: checking sys/wait.h presence
configure:20150: gcc -E  conftest.c
configure:20156: $? = 0
configure:20176: result: yes
configure:20211: checking for sys/wait.h
configure:20218: result: yes
configure:20257: checking ldap.h usability
configure:20269: gcc -c -g -O2  conftest.c >&5
configure:20275: $? = 0
configure:20279: test -z 
			 || test ! -s conftest.err
configure:20282: $? = 0
configure:20285: test -s conftest.o
configure:20288: $? = 0
configure:20298: result: yes
configure:20302: checking ldap.h presence
configure:20312: gcc -E  conftest.c
configure:20318: $? = 0
configure:20338: result: yes
configure:20373: checking for ldap.h
configure:20380: result: yes
configure:20416: gcc -o conftest -g -O2  -lcrypt conftest.c  -lldap >&5
conftest.c: In function `main':
conftest.c:32: error: `NULL' undeclared (first use in this function)
conftest.c:32: error: (Each undeclared identifier is reported only once
conftest.c:32: error: for each function it appears in.)
configure:20422: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| /* end confdefs.h.  */
| 
| #include <ldap.h>
| 
| int
| main ()
| {
| 
| 	LDAP *p=NULL;
| 
| 	ldap_search(p, "", 0, NULL, NULL, 0);
| 
|   ;
|   return 0;
| }
configure:20445: error: ldap.h header found, but a test compile failed -- check ldapaddressbook/config.log for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-lcrypt
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_f77_compiler_gnu=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_ldap_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_wait_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_prog_f77_g=no
ac_cv_prog_make_make_set=yes
ac_cv_search_strerror='none required'
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_LDCXX=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_SED=/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ 	]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ 	][ 	]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
lt_cv_sys_max_cmd_len=32768
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"yes"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ 	]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ 	][ 	]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /var/tmp/debaux-racke/courier/courier-0.53.0/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/debaux-racke/courier/courier-0.53.0/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /var/tmp/debaux-racke/courier/courier-0.53.0/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/debaux-racke/courier/courier-0.53.0/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/debaux-racke/courier/courier-0.53.0/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
F77=''
FFLAGS=''
HAVE_OPENLDAP_FALSE=''
HAVE_OPENLDAP_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-lcrypt'
LIBOBJS=''
LIBS=' -lldap'
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/debaux-racke/courier/courier-0.53.0/missing --run makeinfo'
OBJEXT='o'
OPENLDAP_LIBS=''
PACKAGE='ldapaddressbook'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='0.10'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_F77=''
ac_ct_RANLIB='ranlib'
ac_ct_STRIP='strip'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/lib/courier'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/var/tmp/debaux-racke/courier/courier-0.53.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${prefix}/lib/courier'
localstatedir='/var/lib/courier'
mandir='${prefix}/share/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc/courier'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_DLFCN_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define STDC_HEADERS 1
#define STDC_HEADERS 1
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1

Reply via email to