circlesquare
Verified User
- Joined
- May 24, 2007
- Messages
- 22
Hi everyone, I have a RedHat Enterprise 4 server and am currently trying to upgrade from apache 1.3 to 2.0 using customapache, however when I try to run ./build apache_2 I get this problem:
I have also attempted to compile the latest version of the APR but had the same problem..
Does anyone have any idea how to resolve this?
Thanks,
Mike
Code:
Trying to make Apache 2...
Making all in srclib
make[1]: Entering directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib'
Making all in apr
make[2]: Entering directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr'
Making all in strings
make[3]: Entering directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr/strings'
make[4]: Entering directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr/strings'
/bin/sh /usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I../include -I../include/arch/unix -c apr_cpystrn.c && touch apr_cpystrn.lo
apr_cpystrn.c:46: error: conflicting types for 'apr_cpystrn'
../include/apr_strings.h:191: error: previous declaration of 'apr_cpystrn' was here
apr_cpystrn.c:46: error: conflicting types for 'apr_cpystrn'
../include/apr_strings.h:191: error: previous declaration of 'apr_cpystrn' was here
apr_cpystrn.c:88: error: conflicting types for 'apr_tokenize_to_argv'
../include/apr_strings.h:210: error: previous declaration of 'apr_tokenize_to_argv' was here
apr_cpystrn.c:88: error: conflicting types for 'apr_tokenize_to_argv'
../include/apr_strings.h:210: error: previous declaration of 'apr_tokenize_to_argv' was here
apr_cpystrn.c:226: error: conflicting types for 'apr_collapse_spaces'
../include/apr_strings.h:199: error: previous declaration of 'apr_collapse_spaces' was here
apr_cpystrn.c:226: error: conflicting types for 'apr_collapse_spaces'
../include/apr_strings.h:199: error: previous declaration of 'apr_collapse_spaces' was here
make[4]: *** [apr_cpystrn.lo] Error 1
make[4]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr/strings'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.0.59/srclib'
make: *** [all-recursive] Error 1
*** The make has failed, do you want to try to make again? (y,n):
I have also attempted to compile the latest version of the APR but had the same problem..
Code:
wget http://apache.mirrors.webazilla.nl/apr/apr-1.2.8.tar.gz
tar zxf apr-1.2.8.tar.gz
cd apr-1.2.8
./configure --prefix=/usr/local/apr-httpd/
make
Code:
make[1]: Entering directory `/usr/local/directadmin/customapache/apr-1.2.8'
/bin/sh /usr/local/directadmin/customapache/apr-1.2.8/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I./include -I/usr/local/directadmin/customapache/apr-1.2.8/include/arch/unix -I./include/arch/unix -I/usr/local/directadmin/customapache/apr-1.2.8/include -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
/bin/sh /usr/local/directadmin/customapache/apr-1.2.8/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I./include -I/usr/local/directadmin/customapache/apr-1.2.8/include/arch/unix -I./include/arch/unix -I/usr/local/directadmin/customapache/apr-1.2.8/include -o strings/apr_cpystrn.lo -c strings/apr_cpystrn.c && touch strings/apr_cpystrn.lo
strings/apr_cpystrn.c:46: error: conflicting types for 'apr_cpystrn'
./include/apr_strings.h:194: error: previous declaration of 'apr_cpystrn' was here
strings/apr_cpystrn.c:46: error: conflicting types for 'apr_cpystrn'
./include/apr_strings.h:194: error: previous declaration of 'apr_cpystrn' was here
strings/apr_cpystrn.c:88: error: conflicting types for 'apr_tokenize_to_argv'
./include/apr_strings.h:214: error: previous declaration of 'apr_tokenize_to_argv' was here
strings/apr_cpystrn.c:88: error: conflicting types for 'apr_tokenize_to_argv'
./include/apr_strings.h:214: error: previous declaration of 'apr_tokenize_to_argv' was here
strings/apr_cpystrn.c:220: error: conflicting types for 'apr_collapse_spaces'
./include/apr_strings.h:203: error: previous declaration of 'apr_collapse_spaces' was here
strings/apr_cpystrn.c:220: error: conflicting types for 'apr_collapse_spaces'
./include/apr_strings.h:203: error: previous declaration of 'apr_collapse_spaces' was here
make[1]: *** [strings/apr_cpystrn.lo] Error 1
make[1]: Leaving directory `/usr/local/directadmin/customapache/apr-1.2.8'
make: *** [all-recursive] Error 1
Does anyone have any idea how to resolve this?
Thanks,
Mike
Last edited: