When I run
./configure --prefix=/apache

in either Apache 1.3.6 or Apache 1.3.9, I receive the very strange error
message;

Configureing for Apache, Version 1.3.9
 + using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makfile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.
 Aborting!

Now, the system is just re-installed with RedHat 6.0, and
gcc --version
gives
egcs-2.91.66
and I have also tried the new 2.95.1 version, but to no avail.

The weird side of this is that I have compiled Apache 1.3.6 and 1.3.9
previously on other computers, installed from the same RedHat 6.0 CD.

If I bypass the "sanity" check, I will end up with a linking error;

gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci` -o
httpd buildmark.o modules.o modules/standard/libstandard.a
main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a
lib/expat-lite/libexpat.a -lmap/libap.a(ap_chackpass.o): In function
`ap_validate_password`:
ap_checkpass.o(.text+0x7c): undefined reference to `crypt'
collect2: ld returned 1 exit status

I had this problem earlier for some small program, and was told to add
-lcrypt to the linking flags, which helped. So does it in Apache.
BUT, what is going on...

Niclas

Reply via email to