LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-16-2006, 06:41 AM   #1
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Rep: Reputation: 15
Arrow CPP fails sanity check on debian


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...
Code:
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.60. Invocation command line was $ ./configure --prefix=/opt/wots/httpd-2.2.3 ## --------- ## ## Platform. ## ## --------- ## hostname = isgserver2006 uname -m = i686 uname -r = 2.6.16-2-686 uname -s = Linux uname -v = #1 Sat Jul 15 21:59:21 UTC 2006 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/bin/X11 ## ----------- ## ## Core tests. ## ## ----------- ## configure:2255: checking for chosen layout configure:2257: result: Apache configure:3053: checking for working mkdir -p configure:3069: result: yes configure:3086: checking build system type configure:3104: result: i686-pc-linux-gnulibc1 configure:3126: checking host system type configure:3141: result: i686-pc-linux-gnulibc1 configure:3163: checking target system type configure:3178: result: i686-pc-linux-gnulibc1 configure:3250: checking for APR configure:3332: result: reconfig ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-linux-gnulibc1 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_LDFLAGS_set= ac_cv_env_LDFLAGS_value= 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_host=i686-pc-linux-gnulibc1 ac_cv_mkdir_p=yes ac_cv_target=i686-pc-linux-gnulibc1 ## ----------------- ## ## Output variables. ## ## ----------------- ## APACHECTL_ULIMIT='' APR_BINDIR='' APR_CONFIG='' APR_INCLUDEDIR='' APR_VERSION='' APU_BINDIR='' APU_CONFIG='' APU_INCLUDEDIR='' APU_VERSION='' AP_BUILD_SRCLIB_DIRS='' AP_CLEAN_SRCLIB_DIRS='' AP_LIBS='' AWK='' BUILTIN_LIBS='' CC='' CFLAGS='' CORE_IMPLIB='' CORE_IMPLIB_FILE='' CPP='' CPPFLAGS='' CXX='' CXXFLAGS='' DEFS='' DSO_MODULES='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' EXTRA_CFLAGS='' EXTRA_CPPFLAGS='' EXTRA_CXXFLAGS='' EXTRA_INCLUDES='' EXTRA_LDFLAGS='' EXTRA_LIBS='' GREP='' HTTPD_LDFLAGS='' HTTPD_VERSION='' INCLUDES='' INSTALL='' INSTALL_DSO='' INSTALL_PROG_FLAGS='' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='' LTCFLAGS='' LTFLAGS='' LTLIBOBJS='' LT_LDFLAGS='' LYNX_PATH='' MKDEP='' MKINSTALLDIRS='' MK_IMPLIB='' MODULE_CLEANDIRS='' MODULE_DIRS='' MOD_ACTIONS_LDADD='' MOD_ALIAS_LDADD='' MOD_ASIS_LDADD='' MOD_AUTHNZ_LDAP_LDADD='' MOD_AUTHN_ALIAS_LDADD='' MOD_AUTHN_ANON_LDADD='' MOD_AUTHN_DBD_LDADD='' MOD_AUTHN_DBM_LDADD='' MOD_AUTHN_DEFAULT_LDADD='' MOD_AUTHN_FILE_LDADD='' MOD_AUTHZ_DBM_LDADD='' MOD_AUTHZ_DEFAULT_LDADD='' MOD_AUTHZ_GROUPFILE_LDADD='' MOD_AUTHZ_HOST_LDADD='' MOD_AUTHZ_OWNER_LDADD='' MOD_AUTHZ_USER_LDADD='' MOD_AUTH_BASIC_LDADD='' MOD_AUTH_DIGEST_LDADD='' MOD_AUTOINDEX_LDADD='' MOD_BUCKETEER_LDADD='' MOD_CACHE_LDADD='' MOD_CASE_FILTER_IN_LDADD='' MOD_CASE_FILTER_LDADD='' MOD_CERN_META_LDADD='' MOD_CGID_LDADD='' MOD_CGI_LDADD='' MOD_CHARSET_LITE_LDADD='' MOD_DAV_FS_LDADD='' MOD_DAV_LDADD='' MOD_DAV_LOCK_LDADD='' MOD_DBD_LDADD='' MOD_DEFLATE_LDADD='' MOD_DIR_LDADD='' MOD_DISK_CACHE_LDADD='' MOD_DUMPIO_LDADD='' MOD_ECHO_LDADD='' MOD_ENV_LDADD='' MOD_EXAMPLE_LDADD='' MOD_EXPIRES_LDADD='' MOD_EXT_FILTER_LDADD='' MOD_FILE_CACHE_LDADD='' MOD_FILTER_LDADD='' MOD_HEADERS_LDADD='' MOD_HTTP_LDADD='' MOD_IDENT_LDADD='' MOD_IMAGEMAP_LDADD='' MOD_INCLUDE_LDADD='' MOD_INFO_LDADD='' MOD_ISAPI_LDADD='' MOD_LDAP_LDADD='' MOD_LOGIO_LDADD='' MOD_LOG_CONFIG_LDADD='' MOD_LOG_FORENSIC_LDADD='' MOD_MEM_CACHE_LDADD='' MOD_MIME_LDADD='' MOD_MIME_MAGIC_LDADD='' MOD_NEGOTIATION_LDADD='' MOD_OPTIONAL_FN_EXPORT_LDADD='' MOD_OPTIONAL_FN_IMPORT_LDADD='' MOD_OPTIONAL_HOOK_EXPORT_LDADD='' MOD_OPTIONAL_HOOK_IMPORT_LDADD='' MOD_PROXY_AJP_LDADD='' MOD_PROXY_BALANCER_LDADD='' MOD_PROXY_CONNECT_LDADD='' MOD_PROXY_FTP_LDADD='' MOD_PROXY_HTTP_LDADD='' MOD_PROXY_LDADD='' MOD_REWRITE_LDADD='' MOD_SETENVIF_LDADD='' MOD_SO_LDADD='' MOD_SPELING_LDADD='' MOD_SSL_LDADD='' MOD_STATUS_LDADD='' MOD_SUEXEC_LDADD='' MOD_UNIQUE_ID_LDADD='' MOD_USERDIR_LDADD='' MOD_USERTRACK_LDADD='' MOD_VERSION_LDADD='' MOD_VHOST_ALIAS_LDADD='' MPM_LIB='' MPM_NAME='' MPM_SUBDIR_NAME='' NOTEST_CFLAGS='' NOTEST_CPPFLAGS='' NOTEST_CXXFLAGS='' NOTEST_LDFLAGS='' NOTEST_LIBS='' OBJEXT='' OS='' OS_DIR='' OS_SPECIFIC_VARS='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PCRE_CONFIG='' PICFLAGS='' PILDFLAGS='' PKGCONFIG='' PORT='' POST_SHARED_CMDS='' PRE_SHARED_CMDS='' RANLIB='' RM='' RSYNC='' SHELL='/bin/sh' SHLIBPATH_VAR='' SHLTCFLAGS='' SH_LDFLAGS='' SH_LIBS='' SH_LIBTOOL='' SSL_LIBS='' UTIL_LDFLAGS='' ab_LTFLAGS='' abs_srcdir='' ac_ct_CC='' ap_make_delimiter='' ap_make_include='' bindir='${exec_prefix}/bin' build='i686-pc-linux-gnulibc1' build_alias='' build_cpu='i686' build_os='linux-gnulibc1' build_vendor='pc' cgidir='${datadir}/cgi-bin' checkgid_LTFLAGS='' datadir='${prefix}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' errordir='${datadir}/error' exec_prefix='${prefix}' exp_bindir='/usr/local/apache2/bin' exp_cgidir='/usr/local/apache2/cgi-bin' exp_datadir='/usr/local/apache2' exp_errordir='/usr/local/apache2/error' exp_exec_prefix='/usr/local/apache2' exp_htdocsdir='/usr/local/apache2/htdocs' exp_iconsdir='/usr/local/apache2/icons' exp_includedir='/usr/local/apache2/include' exp_installbuilddir='/usr/local/apache2/build' exp_libdir='/usr/local/apache2/lib' exp_libexecdir='/usr/local/apache2/modules' exp_localstatedir='/usr/local/apache2' exp_logfiledir='/usr/local/apache2/logs' exp_mandir='/usr/local/apache2/man' exp_manualdir='/usr/local/apache2/manual' exp_proxycachedir='/usr/local/apache2/proxy' exp_runtimedir='/usr/local/apache2/logs' exp_sbindir='/usr/local/apache2/bin' exp_sysconfdir='/usr/local/apache2/conf' host='i686-pc-linux-gnulibc1' host_alias='' host_cpu='i686' host_os='linux-gnulibc1' host_vendor='pc' htdbm_LTFLAGS='' htdigest_LTFLAGS='' htdocsdir='${datadir}/htdocs' htmldir='${docdir}' htpasswd_LTFLAGS='' iconsdir='${datadir}/icons' includedir='${prefix}/include' infodir='${datarootdir}/info' installbuilddir='${datadir}/build' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/modules' localedir='${datarootdir}/locale' localstatedir='${prefix}' logfiledir='${localstatedir}/logs' logresolve_LTFLAGS='' mandir='${prefix}/man' manualdir='${datadir}/manual' nonssl_listen_stmt_1='' nonssl_listen_stmt_2='' oldincludedir='/usr/include' other_targets='' pdfdir='${docdir}' perlbin='' prefix='/usr/local/apache2' progname='' program_transform_name='s,x,x,' proxycachedir='${localstatedir}/proxy' psdir='${docdir}' rel_bindir='bin' rel_cgidir='cgi-bin' rel_datadir='' rel_errordir='error' rel_exec_prefix='' rel_htdocsdir='htdocs' rel_iconsdir='icons' rel_includedir='include' rel_installbuilddir='build' rel_libdir='lib' rel_libexecdir='modules' rel_localstatedir='' rel_logfiledir='logs' rel_mandir='man' rel_manualdir='manual' rel_proxycachedir='proxy' rel_runtimedir='logs' rel_sbindir='bin' rel_sysconfdir='conf' rotatelogs_LTFLAGS='' runtimedir='${localstatedir}/logs' sbindir='${exec_prefix}/bin' shared_build='' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/conf' target='i686-pc-linux-gnulibc1' target_alias='' target_cpu='i686' target_os='linux-gnulibc1' target_vendor='pc' configure: exit 1
I have every package installed that has the phrases gcc, g++, cpp, and c++, including the -dev, -dbg etc...

BTW, My system time is set correctly.

I am at a complete and total loss.. Everything goes just fine on my Ubuntu machine, I only get this error on the Debian Etch server..

Any help would be appreciated.

--Jeff
 
Old 08-16-2006, 08:32 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Make sure you have the build-essential package installed you may have missed some small package that is needed.
 
Old 08-16-2006, 09:44 AM   #3
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I have that installed... along with every other package including the words g++, gcc, cc, cpp, c++, make, autoconf, automake, every possible one.

-Jeff
 
Old 08-16-2006, 09:46 AM   #4
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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.
 
Old 08-16-2006, 10:04 AM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by grapnell
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?
 
Old 08-16-2006, 10:37 AM   #6
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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)

http://apache.tradebit.com/pub/httpd/httpd-2.2.3.tar.gz

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.
 
Old 08-16-2006, 10:59 AM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
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.
 
Old 08-16-2006, 11:01 AM   #8
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Its not just apache though, its anything I try to compile using ./configure i get this error...

--Jeff
 
Old 08-16-2006, 11:04 AM   #9
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
What exactly is a "sanity check," and what is it trying to tell me when it says that?

--Jeff
 
Old 08-16-2006, 11:34 AM   #10
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
What in the world gives?
 
Old 08-16-2006, 11:46 AM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Ok what do these commands show you.

Code:
HappyTux:/home/stephen# ll /lib/cpp
lrwxrwxrwx 1 root root 21 2006-08-10 20:17 /lib/cpp -> /etc/alternatives/cpp
HappyTux:/home/stephen# 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.
HappyTux:/home/stephen# ll /usr/bin/cpp
lrwxrwxrwx 1 root root 7 2006-08-10 20:17 /usr/bin/cpp -> cpp-4.0
 
Old 08-16-2006, 11:51 AM   #12
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Hi

Code:
isgserver2006:/home/jeff/httpd-2.2.3# ls -l /lib/cpp
lrwxrwxrwx 1 root root 16 2006-08-16 12:46 /lib/cpp -> /usr/bin/cpp-4.0
isgserver2006:/home/jeff/httpd-2.2.3#
Code:
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#
Code:
isgserver2006:/home/jeff/httpd-2.2.3# ls -l /usr/bin/cpp
lrwxrwxrwx 1 root root 7 2006-08-16 09:26 /usr/bin/cpp -> cpp-4.1
isgserver2006:/home/jeff/httpd-2.2.3#
Note, I have tried linking /lib/cpp, and /usr/bin/cpp to other versions of cpp before 4.1, but they all give me the same error.

Thanks,
--Jeff
 
Old 08-16-2006, 12:14 PM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
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.
 
Old 08-16-2006, 12:45 PM   #14
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
config.log (for craps and scraggles)
Code:
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.60.  Invocation command line was

  $ ./configure 

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

hostname = isgserver2006
uname -m = i686
uname -r = 2.6.15-1-686
uname -s = Linux
uname -v = #2 Mon Mar 6 15:27:08 UTC 2006

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

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

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin/X11


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

configure:2255: checking for chosen layout
configure:2257: result: Apache
configure:3053: checking for working mkdir -p
configure:3069: result: yes
configure:3086: checking build system type
configure:3104: result: i686-pc-linux-gnu
configure:3126: checking host system type
configure:3141: result: i686-pc-linux-gnu
configure:3163: checking target system type
configure:3178: result: i686-pc-linux-gnu
configure:3250: checking for APR
configure:3332: result: reconfig

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/ggc-4.0
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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
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_host=i686-pc-linux-gnu
ac_cv_mkdir_p=yes
ac_cv_target=i686-pc-linux-gnu

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

APACHECTL_ULIMIT=''
APR_BINDIR=''
APR_CONFIG=''
APR_INCLUDEDIR=''
APR_VERSION=''
APU_BINDIR=''
APU_CONFIG=''
APU_INCLUDEDIR=''
APU_VERSION=''
AP_BUILD_SRCLIB_DIRS=''
AP_CLEAN_SRCLIB_DIRS=''
AP_LIBS=''
AWK=''
BUILTIN_LIBS=''
CC='/usr/bin/ggc-4.0'
CFLAGS=''
CORE_IMPLIB=''
CORE_IMPLIB_FILE=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFS=''
DSO_MODULES=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_CFLAGS=''
EXTRA_CPPFLAGS=''
EXTRA_CXXFLAGS=''
EXTRA_INCLUDES=''
EXTRA_LDFLAGS=''
EXTRA_LIBS=''
GREP=''
HTTPD_LDFLAGS=''
HTTPD_VERSION=''
INCLUDES=''
INSTALL=''
INSTALL_DSO=''
INSTALL_PROG_FLAGS=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTCFLAGS=''
LTFLAGS=''
LTLIBOBJS=''
LT_LDFLAGS=''
LYNX_PATH=''
MKDEP=''
MKINSTALLDIRS=''
MK_IMPLIB=''
MODULE_CLEANDIRS=''
MODULE_DIRS=''
MOD_ACTIONS_LDADD=''
MOD_ALIAS_LDADD=''
MOD_ASIS_LDADD=''
MOD_AUTHNZ_LDAP_LDADD=''
MOD_AUTHN_ALIAS_LDADD=''
MOD_AUTHN_ANON_LDADD=''
MOD_AUTHN_DBD_LDADD=''
MOD_AUTHN_DBM_LDADD=''
MOD_AUTHN_DEFAULT_LDADD=''
MOD_AUTHN_FILE_LDADD=''
MOD_AUTHZ_DBM_LDADD=''
MOD_AUTHZ_DEFAULT_LDADD=''
MOD_AUTHZ_GROUPFILE_LDADD=''
MOD_AUTHZ_HOST_LDADD=''
MOD_AUTHZ_OWNER_LDADD=''
MOD_AUTHZ_USER_LDADD=''
MOD_AUTH_BASIC_LDADD=''
MOD_AUTH_DIGEST_LDADD=''
MOD_AUTOINDEX_LDADD=''
MOD_BUCKETEER_LDADD=''
MOD_CACHE_LDADD=''
MOD_CASE_FILTER_IN_LDADD=''
MOD_CASE_FILTER_LDADD=''
MOD_CERN_META_LDADD=''
MOD_CGID_LDADD=''
MOD_CGI_LDADD=''
MOD_CHARSET_LITE_LDADD=''
MOD_DAV_FS_LDADD=''
MOD_DAV_LDADD=''
MOD_DAV_LOCK_LDADD=''
MOD_DBD_LDADD=''
MOD_DEFLATE_LDADD=''
MOD_DIR_LDADD=''
MOD_DISK_CACHE_LDADD=''
MOD_DUMPIO_LDADD=''
MOD_ECHO_LDADD=''
MOD_ENV_LDADD=''
MOD_EXAMPLE_LDADD=''
MOD_EXPIRES_LDADD=''
MOD_EXT_FILTER_LDADD=''
MOD_FILE_CACHE_LDADD=''
MOD_FILTER_LDADD=''
MOD_HEADERS_LDADD=''
MOD_HTTP_LDADD=''
MOD_IDENT_LDADD=''
MOD_IMAGEMAP_LDADD=''
MOD_INCLUDE_LDADD=''
MOD_INFO_LDADD=''
MOD_ISAPI_LDADD=''
MOD_LDAP_LDADD=''
MOD_LOGIO_LDADD=''
MOD_LOG_CONFIG_LDADD=''
MOD_LOG_FORENSIC_LDADD=''
MOD_MEM_CACHE_LDADD=''
MOD_MIME_LDADD=''
MOD_MIME_MAGIC_LDADD=''
MOD_NEGOTIATION_LDADD=''
MOD_OPTIONAL_FN_EXPORT_LDADD=''
MOD_OPTIONAL_FN_IMPORT_LDADD=''
MOD_OPTIONAL_HOOK_EXPORT_LDADD=''
MOD_OPTIONAL_HOOK_IMPORT_LDADD=''
MOD_PROXY_AJP_LDADD=''
MOD_PROXY_BALANCER_LDADD=''
MOD_PROXY_CONNECT_LDADD=''
MOD_PROXY_FTP_LDADD=''
MOD_PROXY_HTTP_LDADD=''
MOD_PROXY_LDADD=''
MOD_REWRITE_LDADD=''
MOD_SETENVIF_LDADD=''
MOD_SO_LDADD=''
MOD_SPELING_LDADD=''
MOD_SSL_LDADD=''
MOD_STATUS_LDADD=''
MOD_SUEXEC_LDADD=''
MOD_UNIQUE_ID_LDADD=''
MOD_USERDIR_LDADD=''
MOD_USERTRACK_LDADD=''
MOD_VERSION_LDADD=''
MOD_VHOST_ALIAS_LDADD=''
MPM_LIB=''
MPM_NAME=''
MPM_SUBDIR_NAME=''
NOTEST_CFLAGS=''
NOTEST_CPPFLAGS=''
NOTEST_CXXFLAGS=''
NOTEST_LDFLAGS=''
NOTEST_LIBS=''
OBJEXT=''
OS=''
OS_DIR=''
OS_SPECIFIC_VARS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PCRE_CONFIG=''
PICFLAGS=''
PILDFLAGS=''
PKGCONFIG=''
PORT=''
POST_SHARED_CMDS=''
PRE_SHARED_CMDS=''
RANLIB=''
RM=''
RSYNC=''
SHELL='/bin/sh'
SHLIBPATH_VAR=''
SHLTCFLAGS=''
SH_LDFLAGS=''
SH_LIBS=''
SH_LIBTOOL=''
SSL_LIBS=''
UTIL_LDFLAGS=''
ab_LTFLAGS=''
abs_srcdir=''
ac_ct_CC=''
ap_make_delimiter=''
ap_make_include=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cgidir='${datadir}/cgi-bin'
checkgid_LTFLAGS=''
datadir='${prefix}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
errordir='${datadir}/error'
exec_prefix='${prefix}'
exp_bindir='/usr/local/apache2/bin'
exp_cgidir='/usr/local/apache2/cgi-bin'
exp_datadir='/usr/local/apache2'
exp_errordir='/usr/local/apache2/error'
exp_exec_prefix='/usr/local/apache2'
exp_htdocsdir='/usr/local/apache2/htdocs'
exp_iconsdir='/usr/local/apache2/icons'
exp_includedir='/usr/local/apache2/include'
exp_installbuilddir='/usr/local/apache2/build'
exp_libdir='/usr/local/apache2/lib'
exp_libexecdir='/usr/local/apache2/modules'
exp_localstatedir='/usr/local/apache2'
exp_logfiledir='/usr/local/apache2/logs'
exp_mandir='/usr/local/apache2/man'
exp_manualdir='/usr/local/apache2/manual'
exp_proxycachedir='/usr/local/apache2/proxy'
exp_runtimedir='/usr/local/apache2/logs'
exp_sbindir='/usr/local/apache2/bin'
exp_sysconfdir='/usr/local/apache2/conf'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htdbm_LTFLAGS=''
htdigest_LTFLAGS=''
htdocsdir='${datadir}/htdocs'
htmldir='${docdir}'
htpasswd_LTFLAGS=''
iconsdir='${datadir}/icons'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
installbuilddir='${datadir}/build'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localedir='${datarootdir}/locale'
localstatedir='${prefix}'
logfiledir='${localstatedir}/logs'
logresolve_LTFLAGS=''
mandir='${prefix}/man'
manualdir='${datadir}/manual'
nonssl_listen_stmt_1=''
nonssl_listen_stmt_2=''
oldincludedir='/usr/include'
other_targets=''
pdfdir='${docdir}'
perlbin=''
prefix='/usr/local/apache2'
progname=''
program_transform_name='s,x,x,'
proxycachedir='${localstatedir}/proxy'
psdir='${docdir}'
rel_bindir='bin'
rel_cgidir='cgi-bin'
rel_datadir=''
rel_errordir='error'
rel_exec_prefix=''
rel_htdocsdir='htdocs'
rel_iconsdir='icons'
rel_includedir='include'
rel_installbuilddir='build'
rel_libdir='lib'
rel_libexecdir='modules'
rel_localstatedir=''
rel_logfiledir='logs'
rel_mandir='man'
rel_manualdir='manual'
rel_proxycachedir='proxy'
rel_runtimedir='logs'
rel_sbindir='bin'
rel_sysconfdir='conf'
rotatelogs_LTFLAGS=''
runtimedir='${localstatedir}/logs'
sbindir='${exec_prefix}/bin'
shared_build=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/conf'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

configure: exit 1
Thanks again...
--Jeff

Last edited by grapnell; 08-16-2006 at 12:48 PM.
 
Old 08-16-2006, 01:18 PM   #15
grapnell
Member
 
Registered: Mar 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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.

Thanks for everyones help,
--Jeff
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPP Fails Sanity Check when compiling grapnell Linux - Software 4 08-16-2006 10:03 AM
cpp fails sanity check??? dinolinux Debian 2 07-30-2005 11:43 AM
cpp fails sanity check? linux-rulz Linux - Software 4 05-16-2005 04:00 AM
/lib/cpp fails sanity check? NonSumPisces Linux - Software 2 10-02-2004 07:46 AM
??? c++ prprocessor /lib/cpp fails sanity check ???? Killah Linux - Newbie 7 03-30-2004 02:39 PM


All times are GMT -5. The time now is 01:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration