LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling Apache 2 on Debian Etch (http://www.linuxquestions.org/questions/linux-software-2/compiling-apache-2-on-debian-etch-474222/)

grapnell 08-15-2006 07:42 PM

Compiling Apache 2 on Debian Etch
 
Hi, I am trying to compile Apache 2 on Debian Etch, but I keep getting the following error, even though I have all gcc, g++, cpp, and c++ packages installed.

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

Any help appreciated
--Jeff

w3bd3vil 08-15-2006 08:28 PM

Quote:

configure: error: C preprocessor "/lib/cpp" fails sanity check
this means that, there something wrong with the time? do you have the correct time set on your pc? check the time of creation of /lib/cpp

why dont you do it the easy way
apt-get install apache2
that should install all dependencies automatically, and save you the headache.

grapnell 08-15-2006 08:39 PM

That is how I have it now, but the thing is that I would like to compile it from source for performance improvements... it is for a web-based in-house order tracking system at our shop, and its based mostly on CGI/perl... also uses some mysql, which I intend to compile from source next, after installing apache. Also, I want to install everything in a custom directory, to help maintaining and version tracking easier.

Apache 2 compiles fine on ubuntu, but I only get this on Debian Etch..

The clock is set to the correct time... I guess Im not sure why that would matter, but is there something else I should check here?

Thanks again for help
--Jeff

grapnell 08-15-2006 08:41 PM

In checking the time of creation for /lib/cpp, I also found that /lib/cpp links to /etc/alternatives/cpp

Code:

lrwxrwxrwx 1 root root 21 2006-08-15 19:25 /lib/cpp -> /etc/alternatives/cpp
Would this have anything to do with it?

Thanks again
--Jeff

w3bd3vil 08-15-2006 09:04 PM

last time I had a sanity check error it was because of the time on my machine
I had changed the date to 16/8/05,while looking at the calendar and the file on the machine which gave sanity check error was compiled on 16/07/06.
thats the reason I told you to check that.

could you paste config.log here

grapnell 08-15-2006 09:10 PM

Sure here it is
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

--Jeff

grapnell 08-15-2006 09:12 PM

I guess I am just not understanding the problem here, I am not sure if there is an specifif error in the config.log... I am probably overlooking something simple.

--Jeff

w3bd3vil 08-15-2006 09:15 PM

one thing I noticed here is the link to /lib/cpp should have been somewhere like /usr/bin/cpp.
what happens when you type in the command /lib/cpp?

grapnell 08-15-2006 09:20 PM

When typing /lib/cpp, it just hangs there doing nothing until I press Ctrl-Z

appears to be in some sort of infinite loop... this is probably the problem, how could I correct this... there is not /bin/cpp... I have every packing installed containing the words g++, cpp, c++ or gcc from within synaptic, even the -dev, -dbg, -pic etc... I have all libstdc and libstdc++ packages installed, i have build-essential installed as well as all of the recommended packages. Im not sure what else to try.

Thanks again for your input

--Jeff

w3bd3vil 08-15-2006 09:22 PM

a new line comes and you can type anything ctrl-c to exit, thats normal. so dont think the problem is there.

grapnell 08-15-2006 09:24 PM

Code:

isgserver2006:/home/jeff/httpd-2.2.3# ls /usr/bin | grep cpp
cpp
cpp-2.95
cpp-3.3
cpp-3.4
cpp-4.0
cpp-4.1
i486-linux-gnu-cpp
i486-linux-gnu-cpp-3.3
i486-linux-gnu-cpp-3.4
i486-linux-gnu-cpp-4.0
i486-linux-gnu-cpp-4.1
isgserver2006:/home/jeff/httpd-2.2.3#

I re-linked the /lib/cpp to /usr/bin/cpp and still same error

grapnell 08-15-2006 10:22 PM

i have un-installed and purged all g++, c++, cpp and gcc packages, and re-installed all, same error

grapnell 08-15-2006 11:27 PM

For the life of me, I cannot find out what this sanity check error means... Nothing is making any difference. Everything I try, same error.

--Jeff

grapnell 08-16-2006 09:52 AM

Please, Anyone -- Anything...

Jeff

w3bd3vil 08-16-2006 12:25 PM

try installing the devel packages
kernel-devel
gcc-devel
gc++-devel
all those devel packages


All times are GMT -5. The time now is 01:11 AM.