[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

db42-support-patch on Apache fails

From: John L. Poole <john_poole_at_editionspoole.com>
Date: 2004-04-20 18:14:31 CEST

I have tried to install the Subversion server in two different Linux
environments and still run into the same problem with the configure
script not being able to find the Berkeley database.

Here's what I did:
Installed the latest version of Berkeley (4.2.52.NC plus it's two
patches: 4.2.52.1 & 2) using all the defaults settings; built it
(configure, make, make install) in /usr/local/src.

Downloaded and installed the current Apache release (httpd-2.0.49).
Patched the Apache release with your patch db42-support-patch.txt.
attempted to configure Apache and the configuration failed:

configure: error: Berkeley db4 not found

The Apache patch session and configuration report are attached.

John Poole
john_poole@editionspoole.com
john.poole@oracle.com

[root@daphne httpd-2.0.49]# patch -p0 < db42-support-patch.txt
patching file srclib/apr-util/configure
Hunk #1 succeeded at 16607 (offset 3221 lines).
Hunk #2 succeeded at 32199 (offset 5013 lines).
[root@daphne httpd-2.0.49]# ./configure --enable-dav --enable-so --with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-dbm=db42
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
 
Configuring Apache Portable Runtime library ...
 
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying APR hints file rules for i686-pc-linux-gnu
  setting CPPFLAGS to "-DLINUX=2"
  adding "-D_REENTRANT" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... rm
checking for as... as
checking for cpp... cpp
checking for ar... ar
checking for egrep... grep -E
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether system uses EBCDIC... no
performing libtool configuration...
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
 
Check for compiler flags...
checking for res_init in -lresolv... no
checking for gethostbyname in -lnsl... yes
checking for library containing gethostname... none required
checking for socket in -lsocket... no
checking for library containing crypt... -lcrypt
checking for main in -ltruerand... no
checking for library containing modf... none required
checking for library containing sqrt... -lm
 
Checking for Threads...
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for CFLAGS needed for pthreads... -pthread
  adding "-pthread" to CFLAGS
checking for LIBS needed for pthreads... -lpthread
  adding "-lpthread" to LIBS
checking for pthread.h... (cached) yes
checking whether pthread_getspecific takes two arguments... no
checking whether pthread_attr_getdetachstate takes one argument... no
checking for pthread_key_delete... yes
checking for pthread_rwlock_init... yes
checking for pthread_rwlock_t... yes-with-XOPEN_SOURCE
  adding "-D_XOPEN_SOURCE=500" to CPPFLAGS
  adding "-D_BSD_SOURCE" to CPPFLAGS
  adding "-D_SVID_SOURCE" to CPPFLAGS
APR will use threads
checking for readdir in -lc_r... no
checking for gethostbyname in -lc_r... no
checking for gethostbyaddr in -lc_r... no
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking for sigsuspend... yes
checking for sigwait... yes
checking for poll... yes
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for getgrnam_r... yes
checking for getgrgid_r... yes
 
Checking for Shared Memory Support...
checking for library containing shm_open... -lrt
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mutex.h usability... no
checking sys/mutex.h presence... no
checking for sys/mutex.h... no
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking kernel/OS.h usability... no
checking kernel/OS.h presence... no
checking for kernel/OS.h... no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking for mmap... yes
checking for munmap... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for shmget... yes
checking for shmat... yes
checking for shmdt... yes
checking for shmctl... yes
checking for create_area... no
checking for MAP_ANON in sys/mman.h... yes
checking for /dev/zero... yes
checking for mmap that can map /dev/zero... yes
decision on anonymous shared memory allocation method... 4.4BSD-style mmap() via MAP_ANON
decision on namebased memory allocation method... SysV IPC shmget()
checking for alloca... no
checking for calloc... yes
checking for strcasecmp... yes
checking for stricmp... no
checking for setsid... yes
checking for isinf... yes
checking for isnan... yes
checking for getenv... yes
checking for putenv... yes
checking for setenv... yes
checking for unsetenv... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for writev... yes
checking for sendfilev in -lsendfile... no
checking for sendfile... yes
checking for send_file... no
checking for sendfilev... no
checking for utime... yes
checking for utimes... yes
checking for sigaction... yes
checking whether sys_siglist is declared... yes
checking for fork... yes
checking for inet_addr... yes
checking for inet_network... yes
checking for _getch... no
checking for strerror_r... yes
checking for type of return code from strerror_r... pointer
checking for crypt_r... yes
checking style of crypt_r... struct_crypt_data_gnu_source
  adding "-D_GNU_SOURCE" to CPPFLAGS
checking for mmap... (cached) yes
checking for memmove... yes
checking for getpass... yes
checking for getpassphrase... no
checking for gmtime_r... yes
checking for localtime_r... yes
checking for hstrerror... yes
checking for mkstemp... yes
checking whether sigwait takes one argument... no
checking for inode member of struct dirent... d_fileno
checking for file type member of struct dirent... d_type
checking for ANSI C header files... (cached) yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking ByteOrder.h usability... no
checking ByteOrder.h presence... no
checking for ByteOrder.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dir.h usability... no
checking dir.h presence... no
checking for dir.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking for dlfcn.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking osreldate.h usability... no
checking osreldate.h presence... no
checking for osreldate.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sysapi.h usability... no
checking sysapi.h presence... no
checking for sysapi.h... no
checking sysgtime.h usability... no
checking sysgtime.h presence... no
checking for sysgtime.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking tpfeq.h usability... no
checking tpfeq.h presence... no
checking for tpfeq.h... no
checking tpfio.h usability... no
checking tpfio.h presence... no
checking for tpfio.h... no
checking for unistd.h... (cached) yes
checking unix.h usability... no
checking unix.h presence... no
checking for unix.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for kernel/OS.h... (cached) no
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/sctp.h usability... no
checking netinet/sctp.h presence... no
checking for netinet/sctp.h... no
checking netinet/sctp_uio.h usability... no
checking netinet/sctp_uio.h presence... no
checking for netinet/sctp_uio.h... no
checking for sys/file.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/mman.h... (cached) yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for netinet/tcp.h... yes
checking for h_errno in netdb.h... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for ssize_t... yes
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for size_t... (cached) yes
checking whether setpgrp takes no argument... yes
checking for socklen_t... yes
checking whether system defines INADDR_NONE... yes
checking for void*... yes
checking size of void*... 4
checking for char... yes
checking size of char... 1
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for short... yes
checking size of short... 2
checking for long double... yes
checking size of long double... 12
checking for long long... yes
checking size of long long... 8
checking for INT64_C... yes
checking size of ssize_t... 4
checking size of size_t... 4
checking size of off_t... 4
checking which type to use for apr_off_t... long
checking size of pid_t... 4
checking for strnicmp... no
checking for strncasecmp... yes
checking for stricmp... (cached) no
checking for strcasecmp... (cached) yes
checking for strdup... yes
checking for strstr... yes
checking for memchr... yes
checking for strtoll... yes
 
Checking for DSO...
checking for NSLinkModule... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
  adding "-ldl" to LIBS
checking for dlsym... yes
 
Checking for Processes...
checking for waitpid... yes
checking for Variable Length Arrays... yes
checking struct rlimit... yes
 
Checking for Locking...
checking for semget... yes
checking for semctl... yes
checking for flock... yes
checking for semaphore.h... (cached) yes
checking for sem_close... yes
checking for sem_unlink... yes
checking for sem_post... yes
checking for sem_wait... yes
checking for working sem_open... yes
checking for union semun in sys/sem.h... no
checking for LOCK_EX in sys/file.h... yes
checking for F_SETLK in fcntl.h... yes
checking for SEM_UNDO in sys/sem.h... yes
checking for POLLIN in poll.h sys/poll.h... yes
checking for PTHREAD_PROCESS_SHARED in pthread.h... yes
checking for pthread_mutexattr_setpshared... yes
checking for working PROCESS_SHARED locks... yes
checking for pthread_mutexattr_setrobust_np... no
checking for pthread_mutexattr_setrobust_np with _POSIX_THREAD_PRIO_INHERIT... no
decision on apr_lock implementation method... pthread mutex
checking if all interprocess locks affect threads... no
checking if POSIX sems affect threads in the same process... no
checking if SysV sems affect threads in the same process... no
checking if fcntl locks affect threads in the same process... no
checking if flock locks affect threads in the same process... no
checking for entropy source... /dev/random
 
Checking for Time Support...
checking for tm_gmtoff in struct tm... yes
 
Checking for Networking support...
checking for in_addr in netinet/in.h... yes
checking if fd == socket on this platform... yes
checking style of gethostbyname_r routine... glibc2
checking 3rd argument to the gethostbyname_r routines... char
checking if TCP_NODELAY setting is inherited from listening sockets... yes
checking if O_NONBLOCK setting is inherited from listening sockets... no
checking for TCP_CORK in netinet/tcp.h... yes
checking for TCP_NOPUSH in netinet/tcp.h... no
checking for SO_ACCEPTFILTER in sys/socket.h... no
checking if SCTP protocol is supported... no
checking for set_h_errno... no
checking for presence of retrans/retry fields in res_state/resolv.h ... yes
 
Checking for IPv6 Networking support...
checking for library containing getaddrinfo... none required
checking for library containing gai_strerror... none required
checking for library containing getnameinfo... none required
checking for gai_strerror... yes
checking for working getaddrinfo... yes
checking for negative error codes for getaddrinfo... yes
checking for working getnameinfo... yes
checking for sockaddr_in6... yes
checking whether getnameinfo resolves IPv4-mapped IPv6 addresses... yes
checking if APR supports IPv6... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
 
Restore user-defined environment settings...
  restoring CPPFLAGS to ""
  setting EXTRA_CPPFLAGS to "-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
  restoring CFLAGS to ""
  setting EXTRA_CFLAGS to "-g -O2 -pthread"
  restoring LDFLAGS to ""
  setting EXTRA_LDFLAGS to ""
  restoring LIBS to ""
  setting EXTRA_LIBS to "-lrt -lm -lcrypt -lnsl -lpthread -ldl"
  restoring INCLUDES to ""
  setting EXTRA_INCLUDES to ""
 
Construct Makefiles and header files.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating strings/Makefile
config.status: creating passwd/Makefile
config.status: creating tables/Makefile
config.status: creating build/Makefile
config.status: creating file_io/unix/Makefile
config.status: creating network_io/unix/Makefile
config.status: creating threadproc/unix/Makefile
config.status: creating misc/unix/Makefile
config.status: creating locks/unix/Makefile
config.status: creating time/unix/Makefile
config.status: creating mmap/unix/Makefile
config.status: creating shmem/unix/Makefile
config.status: creating user/unix/Makefile
config.status: creating memory/unix/Makefile
config.status: creating atomic/unix/Makefile
config.status: creating poll/unix/Makefile
config.status: creating support/unix/Makefile
config.status: creating dso/unix/Makefile
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating apr-config
config.status: creating include/arch/unix/apr_private.h
config.status: executing default commands
srclib/apr configured properly
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to " -g -O2 -pthread"
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
  setting LDFLAGS to " "
  setting INCLUDES to " -I/usr/local/src/httpd-2.0.49/srclib/apr/include "
 
Configuring Apache Portable Runtime Utility library...
 
checking for APR-util... reconfig
configuring package in srclib/apr-util now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for working mkdir -p... yes
APR-util Version: 0.9.5
checking for chosen layout... apr-util
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to " -g -O2 -pthread"
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking gdbm.h usability... yes
checking gdbm.h presence... yes
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
checking checking for Berkeley DB 4.2 in /usr/local/BerkeleyDB.4.2...
checking db4/db.h usability... yes
checking db4/db.h presence... yes
checking for db4/db.h... yes
checking for db-4.2... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db-4.2... no
checking db4/db.h usability... yes
checking db4/db.h presence... yes
checking for db4/db.h... yes
checking for db4... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db4... no
checking db4/db.h usability... yes
checking db4/db.h presence... yes
checking for db4/db.h... yes
checking for db... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db... no
configure: error: Berkeley db4 not found
configure failed for srclib/apr-util
[root@daphne httpd-2.0.49]#

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 21 18:03:46 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.