DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to compile Apache 2 (among other things) on debian etch, but I can't seem to get past this error:
Code:
APR Version: 1.2.7 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-gnulibc1 setting CPPFLAGS to "-DLINUX=2" adding "-D_REENTRANT" to CPPFLAGS adding "-D_GNU_SOURCE" to CPPFLAGS (Default will be unix) checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... /lib/cpp configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. configure failed for srclib/apr
My config.log tells me nothing useful that I can see, but here it is anyways...
I guess the solution is to dump debian and install ubuntu? Don't have this problem on ubuntu, everything works fine...
this is debian specific, it must be.
I highly doubt it I compile on a regular basis and it works fine do you have a URL to the tarball you are trying to compile? BTW why are compiling apache anyways?
Yes, the reason I am trying to compile is for performance improvements. We have an in-house work order tracking system running at our shop that uses lots of cgi and perl, as well as some mysql, which I intend to compile next, and I would like to compile apache 2 and mysql to a custom directory to include all of my Web and CGI files in one single directory, apart from the system's installed version of apache 2. I have accomplished this already on my home Ubuntu system, but here at work, I am having this silly-ass problem on debian etch server.
Here is link to tarball, (latest version off of apaches web site)
and here is what I have installed as far as gcc...
Code:
ii g++ 4.1.1-5 The GNU C++ compiler
ii g++-2.95 2.95.4-27 The GNU C++ compiler
ii g++-3.3 3.3.6-13 The GNU C++ compiler
ii g++-3.4 3.4.6-1 The GNU C++ compiler
ii g++-4.0 4.0.3-3 The GNU C++ compiler
ii g++-4.1 4.1.1-5 The GNU C++ compiler
ii libg++2.8.1.3-dev 2.95.4-27 The GNU C++ extension library - development
ii libg++2.8.1.3-glibc2.2 2.95.4-27 The GNU C++ extension library - runtime vers
ii lib64stdc++6 4.1.1-5 The GNU Standard C++ Library v3 (64bit)
ii libflac++5 1.1.2-5 Free Lossless Audio Codec - C++ runtime libr
ii libsigc++-1.2-5c2 1.2.7-2 type-safe Signal Framework for C++ - runtime
ii libsigc++-2.0-0c2a 2.0.16-3 type-safe Signal Framework for C++ - runtime
ii libstdc++2.10-dev 2.95.4-27 The GNU stdc++ library (development files)
ii libstdc++2.10-glibc2.2 2.95.4-27 The GNU stdc++ library
ii libstdc++5 3.3.6-13 The GNU Standard C++ Library v3
ii libstdc++5-3.3-dev 3.3.6-13 The GNU Standard C++ Library v3 (development
ii libstdc++6 4.1.1-5 The GNU Standard C++ Library v3
ii libstdc++6-4.0-dev 4.0.3-3 The GNU Standard C++ Library v3 (development
ii libstdc++6-4.1-dev 4.1.1-5 The GNU Standard C++ Library v3 (development
ii libstdc++6-dev 3.4.6-1 The GNU Standard C++ Library v3 (development
ii cpp 4.1.1-5 The GNU C preprocessor (cpp)
ii cpp-2.95 2.95.4-27 The GNU C preprocessor
ii cpp-3.3 3.3.6-13 The GNU C preprocessor
ii cpp-3.4 3.4.6-1 The GNU C preprocessor
ii cpp-4.0 4.0.3-3 The GNU C preprocessor
ii cpp-4.1 4.1.1-5 The GNU C preprocessor
ii cpp-4.1-doc 4.1.1-5 Documentation for the GNU C preprocessor (cp
ii cpp-doc 4.1.1-5 Documentation for the GNU C preprocessor (cp
ii libpcrecpp0 6.4-2 Perl 5 Compatible Regular Expression Library
ii build-essential 11.2 informational list of build-essential packag
ii autoconf 2.60-1 automatic configure script builder
ii gcc 4.1.1-5 The GNU C compiler
ii gcc-2.95 2.95.4-27 The GNU C compiler
ii gcc-3.3 3.3.6-13 The GNU C compiler
ii gcc-3.3-base 3.3.6-13 The GNU Compiler Collection (base package)
ii gcc-3.4 3.4.6-1 The GNU C compiler
ii gcc-3.4-base 3.4.6-1 The GNU Compiler Collection (base package)
ii gcc-4.0 4.0.3-3 The GNU C compiler
ii gcc-4.0-base 4.0.3-3 The GNU Compiler Collection (base package)
ii gcc-4.0-doc 4.0.3-3 Documentation for the GNU compilers (gcc, go
ii gcc-4.1 4.1.1-5 The GNU C compiler
ii gcc-4.1-base 4.1.1-5 The GNU Compiler Collection (base package)
ii gcc272 2.7.2.3-19 The GNU C compiler.
ii lib64gcc1 4.1.1-5 GCC support library (64bit)
ii libgcc1 4.1.1-5 GCC support library
ii automake1.4 1.4-p6-11 A tool for generating GNU Standards-complian
ii automake1.9 1.9.6-5 A tool for generating GNU Standards-complian
ii libsafe-hole-perl 0.10-1 Perl module which makes a "hole" in the Safe
ii make 3.81-2 The GNU version of the "make" utility.
And here are other files I have installed
Code:
ii linux-headers-2.6.15 2.6.15-8 All header files for Linux kernel 2.6.15
ii linux-headers-2.6.15-1 2.6.15-8 Common header files for Linux kernel 2.6.15
ii linux-headers-2.6.15-1-486 2.6.15-8 Header files for Linux kernel 2.6.15 on 486-
ii linux-headers-2.6.15-1-686 2.6.15-8 Header files for Linux kernel 2.6.15 on PPro
ii linux-headers-2.6.15-1-686-smp 2.6.15-8 Header files for Linux kernel 2.6.15 on PPro
ii linux-headers-2.6.15-1-k7 2.6.15-8 Header files for Linux kernel 2.6.15 on AMD
ii linux-headers-2.6.15-1-k7-smp 2.6.15-8 Header files for Linux kernel 2.6.15 on AMD
ii linux-headers-2.6.16-2 2.6.16-17 Common header files for Linux kernel 2.6.16
ii linux-headers-2.6.16-2-486 2.6.16-17 Header files for Linux kernel 2.6.16 on 486-
ii linux-headers-2.6.16-2-686 2.6.16-17 Header files for Linux kernel 2.6.16 on PPro
ii linux-headers-2.6.16-2-686-smp 2.6.16-17 Header files for Linux kernel 2.6.16 on PPro
ii linux-headers-2.6.16-2-all 2.6.16-17 All header files for Linux kernel 2.6.16
ii linux-headers-2.6.16-2-all-i386 2.6.16-17 All header files for Linux kernel 2.6.16
ii linux-headers-2.6.16-2-k7 2.6.16-17 Header files for Linux kernel 2.6.16 on AMD
ii linux-headers-2.6.16-2-k7-smp 2.6.16-17 Header files for Linux kernel 2.6.16 on AMD
ii linux-headers-2.6.16-2-vserver 2.6.16-17 Common header files for Linux kernel 2.6.16
ii linux-headers-2.6.16-2-vserver-686 2.6.16-17 Header files for Linux kernel 2.6.16 on PPro
ii linux-headers-2.6.16-2-vserver-k7 2.6.16-17 Header files for Linux kernel 2.6.16 on AMD
ii linux-headers-2.6.16-2-xen 2.6.16-17 Common header files for Linux kernel 2.6.16
ii linux-headers-2.6.16-2-xen-686 2.6.16-17 Header files for Linux kernel 2.6.16 on PPro
ii linux-headers-2.6.16-2-xen-k7 2.6.16-17 Header files for Linux kernel 2.6.16 on AMD
ii linux-headers-2.6.16-2-xen-vserver 2.6.16-17 Common header files for Linux kernel 2.6.16
ii linux-headers-2.6.16-2-xen-vserver-686 2.6.16-17 Header files for Linux kernel 2.6.16 on PPro
ii linux-kernel-headers 2.6.17.6-1 Linux Kernel Headers for development
ii linux-source-2.6.15 2.6.15-8 Linux kernel source for version 2.6.15 with
ii linux-source-2.6.16 2.6.16-17 Linux kernel source for version 2.6.16 with
I can't think of anything else I need...
/lib/cpp links to /usr/bin/cpp
I can compile a simple c++ program with g++ (hello world)
I have also tried this on earlier kernel version, 2.6.15, to no avail, have not tried on 2.4 kernel, but really don't want to either if I don't have to, 2.6 should not be the problem...
I will gladly post any other info you request...
My config.log does not list any error, it just says exit status at the bottom.
Please any more help would be appreciated, as it will be a pain to back up 200 GB worth of data off of this computer just to re-install os. I would rather use debian than ubuntu here anyways.
Thanks for your response Stephen,
Hopefully I can get somewhere.
The configure works here I am using the amd64 port with my default compiler being gcc-4.0.
Code:
>$ ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring Apache Portable Runtime library ...
[chop a bunch due to forum size length complaint]
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 whether setpgrp takes no argument... yes
checking for socklen_t... yes
checking for void*... yes
checking size of void*... 8
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... 8
checking for short... yes
checking size of short... 2
checking for long long... yes
checking size of long long... 8
checking for INT64_C... yes
checking size of ssize_t... 8
checking size of size_t... 8
checking size of off_t... 8
checking which type to use for apr_off_t... off_t
checking size of pid_t... 4
checking whether byte ordering is bigendian... no
checking for strnicmp... no
checking for strncasecmp... yes
checking for stricmp... no
checking for strcasecmp... yes
checking for strdup... yes
checking for strstr... yes
checking for memchr... yes
checking for strtol... 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 OS.h usability... no
checking OS.h presence... no
checking for OS.h... no
checking for sem_close... yes
checking for sem_unlink... yes
checking for sem_post... yes
checking for sem_wait... yes
checking for create_sem... no
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 robust cross-process mutex support... no
decision on apr_lock implementation method... SysV IPC semget()
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 OS UUID Support...
checking uuid.h usability... no
checking uuid.h presence... no
checking for uuid.h... no
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... no
checking for uuid/uuid.h... no
checking sys/uuid.h usability... no
checking sys/uuid.h presence... no
checking for sys/uuid.h... no
checking for library containing uuid_create... no
checking for library containing uuid_generate... no
checking for uuid_create... no
checking for uuid_generate... no
checking for os uuid usability... no
Checking for Time Support...
checking for struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
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 whether TCP_NODELAY and TCP_CORK can both be enabled... yes
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 whether SCTP is supported... no
checking for struct ip_mreq... yes
checking for set_h_errno... no
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 for sockaddr_storage... yes
checking for working AI_ADDRCONFIG... 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_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 -lcrypt -lpthread -ldl"
restoring INCLUDES to ""
setting EXTRA_INCLUDES to ""
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
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_GNU_SOURCE"
setting LDFLAGS to " "
Configuring Apache Portable Runtime Utility library...
checking for APR-util... reconfig
configuring package in srclib/apr-util now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.2.7
checking for chosen layout... apr-util
Applying apr-util hints file rules for x86_64-unknown-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_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 for default DBM... sdbm (default)
checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
checking sqlite3.h usability... no
checking sqlite3.h presence... no
checking for sqlite3.h... no
checking sqlite.h usability... no
checking sqlite.h presence... no
checking for sqlite.h... no
checking for Expat in /usr... yes
setting APRUTIL_EXPORT_LIBS to "-lexpat"
setting APRUTIL_LDFLAGS to ""
setting APRUTIL_LIBS to "/usr/lib/libexpat.la"
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for type of inbuf parameter to iconv... char **
checking for iconv.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for CODESET in langinfo.h... yes
checking for library containing crypt... -lcrypt
checking if system crypt() function is threadsafe... no
checking for crypt_r... yes
checking style of crypt_r... struct_crypt_data
adding "/home/stephen/archives/tar/httpd-2.2.3/srclib/apr/libapr-1.la" to APRUTIL_LIBS
adding "-lrt" to APRUTIL_LIBS
adding "-lcrypt" to APRUTIL_LIBS
adding "-lpthread" to APRUTIL_LIBS
adding "-ldl" to APRUTIL_LIBS
configure: creating ./config.status
config.status: creating Makefile
config.status: creating export_vars.sh
config.status: creating build/pkg/pkginfo
config.status: creating apr-util.pc
config.status: creating apu-1-config
config.status: creating include/private/apu_select_dbm.h
config.status: creating include/apr_ldap.h
config.status: creating include/apu.h
config.status: creating include/apu_want.h
config.status: creating test/Makefile
config.status: creating include/private/apu_config.h
config.status: executing default commands
srclib/apr-util configured properly
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
configure: Configuring PCRE regular expression library
configuring package in srclib/pcre now
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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcre.h
config.status: creating pcre-config
config.status: creating config.h
config.status: executing default commands
srclib/pcre configured properly
setting AP_LIBS to "/home/stephen/archives/tar/httpd-2.2.3/srclib/pcre/libpcre.la"
setting INCLUDES to "-I$(top_builddir)/srclib/pcre"
Configuring Apache httpd ...
adding "-I." to INCLUDES
adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
adding "-I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME)" to INCLUDES
adding "-I$(top_srcdir)/modules/http" to INCLUDES
adding "-I$(top_srcdir)/modules/filters" to INCLUDES
adding "-I$(top_srcdir)/modules/proxy" to INCLUDES
adding "-I$(top_srcdir)/include" to INCLUDES
adding "-I$(top_srcdir)/modules/generators" to INCLUDES
adding "-I$(top_srcdir)/modules/mappers" to INCLUDES
adding "-I$(top_srcdir)/modules/database" to INCLUDES
adding "-I/home/stephen/archives/tar/httpd-2.2.3/srclib/apr/include" to INCLUDES
adding "-I/home/stephen/archives/tar/httpd-2.2.3/srclib/apr-util/include" to INCLUDES
Applying OS-specific hints for httpd ...
forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /bin/rm
checking for pkg-config... /usr/bin/pkg-config
checking for rsync... no
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... no
checking for links... no
checking for elinks... no
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 for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for void pointer length... no
checking for tm_gmtoff in struct tm... yes
checking whether to enable mod_authn_file... yes (default)
checking whether to enable mod_authn_dbm... no
checking whether to enable mod_authn_anon... no
checking whether to enable mod_authn_dbd... no
checking whether to enable mod_authn_default... yes (default)
checking whether to enable mod_authn_alias... no
checking whether to enable mod_authz_host... yes (default)
checking whether to enable mod_authz_groupfile... yes (default)
checking whether to enable mod_authz_user... yes (default)
checking whether to enable mod_authz_dbm... no
checking whether to enable mod_authz_owner... no
checking whether to enable mod_authnz_ldap... no
checking whether to enable mod_authz_default... yes (default)
checking whether to enable mod_auth_basic... yes (default)
checking whether to enable mod_auth_digest... no
checking whether to enable mod_isapi... no
checking whether to enable mod_file_cache... no
checking whether to enable mod_cache... no
checking whether to enable mod_disk_cache... no
checking whether to enable mod_mem_cache... no
checking whether to enable mod_dbd... no
checking whether to enable mod_bucketeer... no
checking whether to enable mod_dumpio... no
checking whether to enable mod_echo... no
checking whether to enable mod_example... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_ext_filter... no
checking whether to enable mod_include... yes (default)
checking whether to enable mod_filter... yes (default)
checking whether to enable mod_charset_lite... no
checking whether to enable mod_deflate... no
checking whether to enable mod_ldap... no
checking whether to enable mod_log_config... yes (default)
checking whether to enable mod_log_forensic... no
checking whether to enable mod_logio... no
checking whether to enable mod_env... yes (default)
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_ident... no
checking whether to enable mod_usertrack... no
checking whether to enable mod_unique_id... no
checking whether to enable mod_setenvif... yes (default)
checking whether to enable mod_version... no
checking whether to enable mod_proxy... no
checking whether to enable mod_proxy_connect... no
checking whether to enable mod_proxy_ftp... no
checking whether to enable mod_proxy_http... no
checking whether to enable mod_proxy_ajp... no
checking whether to enable mod_proxy_balancer... no
adding "-I$(top_srcdir)/modules/proxy/../generators" to INCLUDES
checking whether to enable mod_ssl... no
adding "-I$(top_srcdir)/modules/ssl" to INCLUDES
checking whether to enable mod_optional_hook_export... no
checking whether to enable mod_optional_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
checking for target platform... unix
checking for rlim_t... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/sem.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking for setsid... yes
checking for killpg... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for unistd.h... (cached) yes
checking for syslog... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for times... yes
checking which MPM to use... prefork
checking whether to enable mod_http... yes
checking whether to enable mod_mime... yes (default)
checking for extra modules... none
checking whether to enable mod_dav... no
adding "-I$(top_srcdir)/modules/dav/main" to INCLUDES
checking whether to enable mod_status... yes (default)
checking whether to enable mod_autoindex... yes (default)
checking whether to enable mod_asis... yes (default)
checking whether to enable mod_info... no
checking whether to enable mod_suexec... no
checking whether to enable mod_cgi... yes (default)
checking whether to enable mod_cgid... no
checking whether to enable mod_dav_fs... no
checking whether to enable mod_dav_lock... no
checking whether to enable mod_vhost_alias... no
checking whether to enable mod_negotiation... yes (default)
checking whether to enable mod_dir... yes (default)
checking whether to enable mod_imagemap... no
checking whether to enable mod_actions... yes (default)
checking whether to enable mod_speling... no
checking whether to enable mod_userdir... yes (default)
checking whether to enable mod_alias... yes (default)
checking whether to enable mod_rewrite... no
setting HTTPD_LDFLAGS to "-export-dynamic"
checking whether to enable mod_so... yes
Restore user-defined environment settings...
restoring CPPFLAGS to ""
setting EXTRA_CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
restoring CFLAGS to ""
setting EXTRA_CFLAGS to " -g -O2 -pthread"
restoring CXXFLAGS to ""
setting EXTRA_CXXFLAGS to ""
restoring LDFLAGS to ""
setting EXTRA_LDFLAGS to " "
restoring LIBS to ""
setting EXTRA_LIBS to "-lm "
restoring INCLUDES to ""
setting EXTRA_INCLUDES to "-I$(top_builddir)/srclib/pcre -I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME) -I$(top_srcdir)/modules/http -I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers -I$(top_srcdir)/modules/database -I/home/stephen/archives/tar/httpd-2.2.3/srclib/apr/include -I/home/stephen/archives/tar/httpd-2.2.3/srclib/apr-util/include -I$(top_srcdir)/modules/proxy/../generators -I$(top_srcdir)/modules/ssl -I$(top_srcdir)/modules/dav/main"
Construct makefiles and header files...
creating config_vars.mk
configure: creating ./config.status
creating modules/aaa/Makefile
creating modules/arch/win32/Makefile
creating modules/cache/Makefile
creating modules/database/Makefile
creating modules/debug/Makefile
creating modules/echo/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/ldap/Makefile
creating modules/loggers/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating server/mpm/Makefile
creating server/mpm/prefork/Makefile
creating modules/http/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/dav/lock/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/Makefile
creating server/Makefile
creating support/Makefile
creating srclib/pcre/Makefile
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands
I think you may want to try and see if you can get the new 2.2 packages from experimental that were announced yesterday on the debian-dev mailing list.
Code:
Hi all,
As of today, Apache 2.2 is available from experimental (packagename:
apache2-mpm-{worker,prefork} etc). New features include LFS support, and
improved caching. For more info, see:
http://httpd.apache.org/docs/2.2/new_features_2_2.html and
http://httpd.apache.org/docs/2.2/upgrading.html . Note especially the
changes in authentication.
Now with that much data at stake I would be hesitant to even try the upgrade at all but its your server.
OK now, something is definitely wrong... I even tried to download the source for GCC and re-compile it... I can't even do that because of the same error.
Code:
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[1]: *** [configure-fastjar] Error 1
isgserver2006:/home/jeff/httpd-2.2.3# update-alternatives --display cpp
cpp - status is auto.
link currently points to /usr/bin/cpp
/usr/bin/cpp - priority 10
Current `best' version is /usr/bin/cpp.
isgserver2006:/home/jeff/httpd-2.2.3#
I take it that /usr/bin/gcc points to the gcc-4.1 as well if so then I would try export CC=/usr/bin/ggc-4.0 in the directory just before the ./configure after having ln -sfn /usr/bin/cpp-4.0 /usr/bin/cpp just to get everything linked properly and to be using the older gcc-4.0 for the compile because that is a mess they should all be point to the same version either this or changing the /lib/cpp to point to the 4.1 version and forget the export & link commands I mention.
Hi,
the only reason it was like that is because I was fiddling around with it trying to make it work... Everything from the beginning all pointed to 4.1, and still gave me the same error, however, I gave what you said a try and still to no avail...
Code:
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 1.2.7
checking for chosen layout... apr
checking for gcc... /usr/bin/gcc-4.0
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 /usr/bin/gcc-4.0 accepts -g... yes
checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed
Applying APR hints file rules for i686-pc-linux-gnulibc1
setting CPPFLAGS to "-DLINUX=2"
adding "-D_REENTRANT" to CPPFLAGS
adding "-D_GNU_SOURCE" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr
OK, I have found the solution in case anyone else has this problem. The solution was that I backed all of my data up to a 500 GB USB Drive, cleaned off the HD, and installed Ubuntu Dapper... This took care of the problem.
Now Apache and MySQL both compile flawlessly first time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.