Hi there,
I'm having trouble compiling Apache 1.3.xx (tried 1.3.26 and 1.3.24)
with Suse Linux 7.2. To make sure it's not a problem with any module,
I configured Apache to use the standard installation; the only thing I
changed is the prefix (/usr/local/apache).
Anyway, it doesn't work for me. The problem is an "undefined reference
to `stat'". I keep getting the same error messages:
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=22 -DUSE_HSREGEX
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c -I./os/unix -I./include -DLINUX=22 -DUSE_HSREGEX
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` \
-o httpd buildmark.o modules.o modules/standard/libstandard.a
main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm
-lcrypt -lexpat
modules/standard/libstandard.a(mod_negotiation.o): In function
`find_content_length':
mod_negotiation.o(.text+0x21aa): undefined reference to `stat'
modules/standard/libstandard.a(mod_include.o): In function
`find_file':
mod_include.o(.text+0x2277): undefined reference to `stat'
modules/standard/libstandard.a(mod_cgi.o): In function
`log_scripterror':
mod_cgi.o(.text+0x226): undefined reference to `stat'
modules/standard/libstandard.a(mod_cgi.o): In function `log_script':
mod_cgi.o(.text+0x39f): undefined reference to `stat'
modules/standard/libstandard.a(mod_userdir.o): In function
`translate_userdir':
mod_userdir.o(.text+0x669): undefined reference to `stat'
main/libmain.a(http_config.o)(.text+0x214f): more undefined references
to `stat' follow
main/libmain.a(http_request.o): In function `check_symlinks':
http_request.o(.text+0x11d): undefined reference to `lstat'
http_request.o(.text+0x180): undefined reference to `stat'
main/libmain.a(http_request.o): In function `get_path_info':
http_request.o(.text+0x280): undefined reference to `stat'
main/libmain.a(http_request.o): In function `ap_sub_req_lookup_file':
http_request.o(.text+0x1430): undefined reference to `stat'
main/libmain.a(util.o): In function `ap_pcfg_openfile':
util.o(.text+0x18fa): undefined reference to `fstat'
main/libmain.a(util.o): In function `ap_is_directory':
util.o(.text+0x30b2): undefined reference to `stat'
main/libmain.a(util.o): In function `ap_is_rdirectory':
util.o(.text+0x3102): undefined reference to `lstat'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/hunger/downloads/apache_1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/hunger/downloads/apache_1.3.26'
make: *** [build] Error 2
sxflinux:~/downloads/apache_1.3.26 #
Anyone out there who can help?