You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sander van Zoest <sa...@covalent.net> on 2001/02/05 07:19:18 UTC

httpd-2.0: ./configure --shadow? --with-apr=/path/to/apr?

Hi,

Is there a way in 2.0 to build apache from outside the tree? So let's say
you have the source on a RO fs, such as a CD-ROM. Is there a way to compile
onto the disk or am I forced to copy all the source files on the a RW
surface?

The Apache 1.3 way to handle this was to use the --shadow flag on configure
which was very useful, is there any such thing in 2.0?

Also a --with-apr=/path/to/apr would be a nice addition. I could code them
up if these options don't exist yet.

Cheers,

--
Sander van Zoest                                         [sander@covalent.net]
Covalent Technologies, Inc.                           http://www.covalent.net/
(415) 536-5218                                 http://www.vanzoest.com/sander/


Re: httpd-2.0: ./configure --shadow? --with-apr=/path/to/apr?

Posted by Sander van Zoest <sa...@covalent.net>.
On Sun, 4 Feb 2001, Greg Stein wrote:

> On Sun, Feb 04, 2001 at 10:19:18PM -0800, Sander van Zoest wrote:
> Yup. Standard --srcdir=/your/cdrom/path switch to configure.

Hmm..

after checking out head of httpd-2.0 and putting apr, apr-util and apr-iconv
in place. running ./buildconf and ./configure with the above flag I get
an error stating that it can't find APR and that I should use the
--with-apr function.

seems like an issue with apr-util's configure. I might check it out later
if no one gets to it first.

-<snip>-
checking for rm... (cached) rm
checking for APR... not found
configure: error: APR could not be located. Please use the --with-apr option.
configure failed for srclib/apr-util
--

see the full ./configure below.

--
Sander van Zoest                                         [sander@covalent.net]
Covalent Technologies, Inc.                           http://www.covalent.net/
(415) 536-5218                                 http://www.vanzoest.com/sander/


full ./configure after ./buildconf
---
[sander@escher] ttypi:httpd/httpd-2.0> /work/cvs/local/asf/httpd/httpd-2.0/confi gure --with-mpm=prefork --srcdir=/work/cvs/local/asf/httpd/httpd-2.0 --prefix=/work/install/asf/httpd/httpd-2.0
creating cache ./config.cache
checking host system type... i386-unknown-freebsdelf4.2
checking target system type... i386-unknown-freebsdelf4.2
checking build system type... i386-unknown-freebsdelf4.2
Applying APR hints file rules for i386-unknown-freebsdelf4.2
  Adding "-lcrypt" to LIBS
Applying Apache hints file rules for i386-unknown-freebsdelf4.2
  Forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
checking for rm... /bin/rm
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for ANSI C header files... yes
checking for string.h... yes
checking for stdlib.h... yes
checking for ctype.h... yes
checking for limits.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for arpa/inet.h... yes
checking for netdb.h... yes
checking for pwd.h... yes
checking for grp.h... yes
checking for strings.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for working const... yes
checking for initgroups... yes
checking for gethostbyname in -lnsl... no
checking for gethostname in -lnsl... no
checking for socket in -lsocket... no
checking for chosen layout... Apache
mkdir modules
mkdir modules/aaa
checking whether to enable mod_access... yes
checking whether to enable mod_auth... yes
checking whether to enable mod_auth_anon... no
checking whether to enable mod_auth_dbm... no
checking whether to enable mod_auth_db... no
checking whether to enable mod_auth_digest... no
mkdir modules/cache
checking whether to enable mod_file_cache... no
mkdir modules/dav
mkdir modules/dav/fs
checking whether to enable mod_dav_fs... no
mkdir modules/dav/main
checking whether to enable mod_dav... no
mkdir modules/echo
checking whether to enable mod_echo... no
mkdir modules/experimental
checking whether to enable mod_charset_lite... no
checking whether to enable mod_cache... no
checking whether to enable mod_disk_cache... no
checking whether to enable mod_ext_filter... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_generic_hook_export... no
checking whether to enable mod_generic_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
mkdir modules/filters
checking whether to enable mod_include... yes
mkdir modules/generators
checking whether to enable mod_status... no
checking whether to enable mod_autoindex... yes
checking whether to enable mod_asis... yes
checking whether to enable mod_info... no
checking whether to enable mod_suexec... no
checking whether to enable mod_cgi... yes
checking whether to enable mod_cgid... no
mkdir modules/http
checking whether to enable mod_core... yes
checking whether to enable mod_mime... yes
mkdir modules/loggers
checking whether to enable mod_log_config... yes
mkdir modules/mappers
checking whether to enable mod_vhost_alias... no
checking whether to enable mod_negotiation... yes
checking whether to enable mod_dir... yes
checking whether to enable mod_imap... yes
checking whether to enable mod_actions... yes
checking whether to enable mod_speling... no
checking whether to enable mod_userdir... yes
checking whether to enable mod_alias... yes
checking whether to enable mod_rewrite... no
checking whether to enable mod_so... no
updating cache ./config.cache
mkdir modules/metadata
checking whether to enable mod_env... yes
checking whether to enable mod_mime_magic... no
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... no
checking whether to enable mod_headers... no
checking whether to enable mod_usertrack... no
checking whether to enable mod_unique_id... no
checking whether to enable mod_setenvif... yes
mkdir modules/proxy
checking whether to enable mod_proxy... no
checking for target platform... unix
checking for setsid... yes
checking for killpg... yes
checking for sys_siglist declaration in signal.h or unistd.h... yes
checking for gethostname in -lnsl... (cached) no
checking for socket in -lsocket... (cached) no
checking for gethostbyaddr in -lnsl... no
checking for crypt in -lcrypt... yes
checking for ANSI C header files... (cached) yes
checking for bstring.h... no
checking for crypt.h... no
checking for unistd.h... (cached) yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/processor.h... no
checking for rlim_t... yes
checking for tm_gmtoff in struct tm... no
checking for syslog... yes
checking for sys/times.h... yes
checking for times... yes
checking which MPM to use... prefork
checking whether sigwait takes one argument... no
checking whether to enable mod_status... no
checking whether to enable mod_autoindex... yes
checking whether to enable mod_asis... yes
checking whether to enable mod_info... no
checking whether to enable mod_suexec... no
checking whether to enable mod_cgi... yes
checking whether to enable mod_cgid... no
checking for ranlib... (cached) ranlib
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC 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 if gcc static flag -static works... -static
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/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/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsdelf4.2 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
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking whether byte ordering is bigendian... no
updating cache ./config.cache
configuring package in srclib/apr now
mkdir srclib
mkdir srclib/apr
loading cache ../.././config.cache
checking host system type... i386-unknown-freebsdelf4.2
checking target system type... i386-unknown-freebsdelf4.2
checking build system type... i386-unknown-freebsdelf4.2
Configuring APR library
Platform: i386-unknown-freebsdelf4.2
APR hints file rules for i386-unknown-freebsdelf4.2 already applied
(Default will be unix)
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... yes
checking for mawk... (cached) awk
checking for rm... rm
checking for ar... ar
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking whether system uses EBCDIC... no
checking for sh... /bin/sh
performing libtool configuration...
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache ../.././config.cache
loading cache ../.././config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC 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 if gcc static flag -static works... -static
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/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/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsdelf4.2 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
creating libtool
updating cache ../.././config.cache
loading cache ../.././config.cache

Check for compiler flags...
Checking for Shared Memory Support...
mkdir shmem
mkdir shmem/unix
mkdir shmem/unix/mm
updating cache ../.././config.cache
configuring package in shmem/unix/mm now
loading cache ../../../../.././config.cache
checking host system type... i386-unknown-freebsdelf4.2
checking target system type... i386-unknown-freebsdelf4.2
checking build system type... i386-unknown-freebsdelf4.2
Platform = i386-unknown-freebsdelf4.2
Configuring (Shared Memory Library), Version 1.1.1 (30-Apr-2000)
Copyright (c) 1999-2000 Ralf S. Engelschall, All Rights Reserved.
Platform: i386-unknown-freebsdelf4.2

Build Tools:
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for compilation debug mode... disabled
checking whether make sets ${MAKE}... (cached) yes
Calling ltconfig with PLATFORM=i386-unknown-freebsdelf4.2
checking for ranlib... ranlib
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC 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 if gcc static flag -static works... -static
checking whether ln -s works... yes
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsdelf4.2 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
creating libtool

Platform Environment:
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for errno.h... yes
checking for limits.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... (cached) yes
decision on mandatory system headers... all fine
checking for memory.h... yes
checking for memcpy... yes
checking for memset... yes
checking for bcopy... yes
checking for _POSIX_PATH_MAX in limits.h... yes
checking for PATH_MAX in limits.h... yes
checking for MAXPATHLEN in sys/param.h... yes
checking for _POSIX_CHILD_MAX in limits.h... yes
checking for CHILD_MAX in limits.h... yes

Virtual Memory Page Size:
checking for unistd.h... (cached) yes
checking for kernel/OS.h... no
checking for getpagesize... yes
checking for sysconf... yes
checking for _SC_PAGESIZE in unistd.h... yes
checking for B_PAGE_SIZE in kernel/OS.h... no
decision on memory page size determination... POSIX.1 sysconf(_SC_PAGESIZE)

Shared Memory Implementation:
checking for sys/mman.h... yes
checking for MAP_ANON in sys/mman.h... yes
checking for mmap... yes
checking for munmap... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for /dev/zero... yes
checking for sys/ipc.h... yes
checking for sys/shm.h... yes
checking for sys/file.h... yes
checking for shmget... yes
checking for shmat... yes
checking for shmdt... yes
checking for shmctl... yes
checking for kernel/OS.h... (cached) no
checking for create_area... no
decision on shared memory allocation method... 4.4BSD-style mmap() via MAP_ANON
checking for shared memory maximum segment size... 64MB (soft limit)

Mutual Exclusion Implementation:
checking for sys/ipc.h... (cached) yes
checking for sys/sem.h... yes
checking for sys/file.h... (cached) yes
checking for semget... yes
checking for semctl... yes
checking for LOCK_EX in sys/file.h... yes
checking for F_SETLK in fcntl.h... yes
checking for IPC_PRIVATE in sys/ipc.h... yes
checking for SEM_UNDO in sys/sem.h... yes
checking for kernel/OS.h... (cached) no
checking for create_sem... no
checking whether union semun is defined in sys/sem.h... yes
decision on mutex implementation method... SVR4-style fcntl() on temporary file

Output Substitution:
updating cache ../../../../.././config.cache
creating ./config.status
creating Makefile
creating mm-config
creating mm_conf.h

Now please type `make' to compile. Good luck.

shmem/unix/mm configured properly
loading cache ../.././config.cache
checking for Shared memory support... anonymous
checking for MM_SHMT_MMFILE in /work/cvs/local/asf/httpd/apr/shmem/unix/mm/mm_conf.h... no
checking for gethostbyname in -lnsl... (cached) no
checking for library containing gethostname... none required
checking for socket in -lsocket... (cached) no
checking for library containing crypt... -lcrypt
checking for main in -ltruerand... no
checking for iconv in -liconv... no
checking for strcasecmp... yes
checking for stricmp... no
checking for setsid... (cached) yes
checking for nl_langinfo... no
checking for sigaction... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for writev... yes
checking for sendfile... yes
checking for send_file... no
checking for fork... yes
checking for getpass... yes
checking for inet_addr... yes
checking for inet_network... yes
checking for _getch... no
checking for gmtime_r... yes
checking for localtime_r... yes
checking for iconv... no
checking for mmap... (cached) yes
checking for hstrerror... yes
checking for memmove... yes
checking for bzero... yes
checking for ANSI C header files... (cached) yes
checking for ByteOrder.h... no
checking for conio.h... no
checking for crypt.h... (cached) no
checking for ctype.h... (cached) yes
checking for dir.h... no
checking for dirent.h... yes
checking for errno.h... (cached) yes
checking for net/errno.h... no
checking for fcntl.h... (cached) yes
checking for grp.h... (cached) yes
checking for io.h... no
checking for limits.h... (cached) yes
checking for malloc.h... no
checking for memory.h... (cached) yes
checking for netdb.h... (cached) yes
checking for osreldate.h... yes
checking for process.h... no
checking for pwd.h... (cached) yes
checking for sys/syslimits.h... yes
checking for sys/sem.h... (cached) yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sysapi.h... no
checking for sysgtime.h... no
checking for termios.h... yes
checking for time.h... yes
checking for sys/time.h... (cached) yes
checking for tpfeq.h... no
checking for tpfio.h... no
checking for sys/uio.h... yes
checking for unistd.h... (cached) yes
checking for poll.h... yes
checking for sys/poll.h... yes
checking for unix.h... no
checking for arpa/inet.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for netinet/tcp.h... (cached) yes
checking for iconv.h... no
checking for langinfo.h... no
checking for sys/file.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/sendfile.h... no
checking for sys/signal.h... yes
checking for sys/socket.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for dlfcn.h... yes
checking for dl.h... no
checking for kernel/OS.h... (cached) no
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 working const... (cached) yes
checking for size_t... (cached) yes
checking whether setpgrp takes no argument... no
checking for socklen_t... yes
checking whether system defines INADDR_NONE... yes
checking size of char... 1
checking size of int... 4
checking size of long... 4
checking size of short... 2
checking size of long double... 12
checking size of long long... 8
checking size of ssize_t... 4
checking size of size_t... 4
checking size of off_t... 8
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 DSO...
checking for dlopen in -ldl... no
checking for dlopen... yes

Checking for Threads...
Don't enable threads
APR will be non-threaded
checking for poll... yes
checking for getpwnam_r... no
checking for getpwuid_r... no
checking for getgrgid_r... no

Checking for Processes...
checking for waitpid... yes
checking struct rlimit... yes

Checking for Locking...
checking for semget... (cached) yes
checking for semctl... (cached) yes
checking for union semun in sys/sem.h... yes
checking for LOCK_EX in sys/file.h... (cached) yes
checking for F_SETLK in fcntl.h... (cached) yes
checking for CODESET in langinfo.h... no
checking for POLLIN in poll.h sys/poll.h... yes
decision on apr_lock implementation method... SVR4-style fcntl()
checking if interprocess lock affects threads... no
checking for /dev/random... /dev/random

Checking for Time Support...
checking for tm_gmtoff in struct tm... (cached) no

Checking for Networking support...
checking for in_addr in netinet/in.h... yes
checking if fd == socket on this platform... yes
checking for sockaddr sa_len... yes
checking for gethostbyname() which handles numeric address strings... yes
checking for TCP_CORK in netinet/tcp.h... no
checking for TCP_NOPUSH in netinet/tcp.h... yes

Checking for IPv6 Networking support...
checking for library containing getaddrinfo... none required
checking for library containing getnameinfo... none required
checking for working getaddrinfo... yes
checking for getnameinfo... yes
checking for getipnodebyname... yes
checking for getipnodebyaddr... yes
checking for sockaddr_in6... yes
checking if APR supports IPv6... yes

Construct Makefiles and header files.
mkdir file_io
mkdir network_io
mkdir threadproc
mkdir misc
mkdir locks
mkdir time
mkdir mmap
mkdir i18n
mkdir user
mkdir dso
mkdir include
mkdir include/arch
mkdir include/arch/unix
updating cache ../.././config.cache
creating ./config.status
creating Makefile
creating lib/Makefile
creating strings/Makefile
creating passwd/Makefile
creating tables/Makefile
creating file_io/unix/Makefile
creating network_io/unix/Makefile
creating threadproc/unix/Makefile
creating misc/unix/Makefile
creating locks/unix/Makefile
creating time/unix/Makefile
creating mmap/unix/Makefile
creating shmem/unix/Makefile
creating i18n/unix/Makefile
creating user/unix/Makefile
creating dso/unix/Makefile
creating test/Makefile
creating include/apr.h
creating APRVARS
creating helpers/rules.mk
creating include/arch/unix/apr_private.h
srclib/apr configured properly
loading cache ./config.cache
updating cache ./config.cache
configuring package in srclib/apr-util now
mkdir srclib/apr-util
loading cache ../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for mawk... (cached) awk
checking for rm... (cached) rm
checking for APR... not found
configure: error: APR could not be located. Please use the --with-apr option.
configure failed for srclib/apr-util
[sander@escher] ttypi:httpd/httpd-2.0>


Re: httpd-2.0: ./configure --shadow? --with-apr=/path/to/apr?

Posted by Greg Stein <gs...@lyra.org>.
On Sun, Feb 04, 2001 at 10:19:18PM -0800, Sander van Zoest wrote:
> Is there a way in 2.0 to build apache from outside the tree? So let's say
> you have the source on a RO fs, such as a CD-ROM. Is there a way to compile
> onto the disk or am I forced to copy all the source files on the a RW
> surface?
> 
> The Apache 1.3 way to handle this was to use the --shadow flag on configure
> which was very useful, is there any such thing in 2.0?

Yup. Standard --srcdir=/your/cdrom/path switch to configure.

> Also a --with-apr=/path/to/apr would be a nice addition. I could code them
> up if these options don't exist yet.

That isn't going to work so well. We have a lot of pieces that assume apr
and aprutil is located at srclib/apr/. The hardest to deal with is that
configure.in includes stuff from apr. That means you have a catch-22 with
passing /path/to/apr to configure since you can't create configure without
that path. :-)

For the moment, I believe APR can/should remain at a fixed location. As we
get our configure process cleaned up, then moving it may become a bit easier
(read: easier to figure out :-)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/