On RedHat Linux 9.0, with Apache 1.3.27, PHP 4.3.2, and mod_perl 1.28,
I'm getting a compile error. These, near as I know, are the latest
"stable" versions of everything - which is why I suspect I'm running
into this problem:
make: Entering directory `/usr/local/src/apache_1.3.27/src/support'
gcc -c -I../os/unix -I../include -DLINUX=22 -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
htpasswd.c:145: conflicting types for `getline'
/usr/include/stdio.h:473: previous declaration of `getline'
make: *** [htpasswd.o] Error 1
make: Leaving directory `/usr/local/src/apache_1.3.27/src/support'
make: *** [build-support] Error 1
make: Leaving directory `/usr/local/src/apache_1.3.27'
make: *** [build] Error 2
I've seen posts that point the finger at mod_perl. This may be the
case as I've managed to compile another Apache server without mod_perl
on a different system (RH 9 with PHP). However, I'm thinking it's more
along the lines of a compiler (IOW, RedHat's use of gcc 3.2.2) issue.
What I could really use is a solution to get past this point - I'd
rather like to avoid "downgrading" either my OS or compiler. I also
kind of need the support tools including htpasswd, so skipping them in
the compile is highly undesired. ./configure options or even Makefile
modifications are preferred. Code patches are acceptable, even to some
extent expected, but I'm a lazy systems admin, not a programmer ...
Of course, any assistance at all (as repeated and varied searches on
groups.google and www.google only verify the problem's existence and
have yet to provide a solution) is welcome and appreciated.
Eric Stewart - take out the "spamisbad." if you'd like to email me