Make is failing during Apache downgrade

tsteels2

New member
Joined
Feb 3, 2007
Messages
3
Hello.

Actually this error applied to the upgrade and downgrade on Apache. Whenever I try to upgrade or downgrade Apache using the instructions in the Knowledgebase, I get the following during the "./build all" phase:

gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_ebcdic.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_strtol.c
ap_strtol.c: In function `ap_strtol':
ap_strtol.c:129: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccRkS2kc.out file, please attach this to yo
ur bugreport.
make[3]: *** [ap_strtol.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.37/sr
c'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.37'
make: *** [build] Error 2

*** The make has failed, do you want to try to make again? (y,n):

I have not had a problem compiling other applications. Please assist urgently Apache won't even start. My system is a Pentium D 2.8, 2GB RAM, CentOS 4.4.

Tyrone Steels II
President and Co-Founder
The Steels Group
 
Here is the full output after I type "./build all":

[root@server customapache]# ./build clean
All clean!
[root@server customapache]# ./build all
Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/customapache/apache_1.3.37.tar.gz
Extracting /usr/local/directadmin/customapache/apache_1.3.37.tar.gz...
Done. Applying patches...
patching file ./mod_frontpage.c
patching file ./src/include/httpd.h
Hunk #1 succeeded at 759 (offset -47 lines).
patching file ./src/main/http_request.c
Hunk #1 succeeded at 146 (offset -42 lines).
Hunk #2 succeeded at 584 (offset 6 lines).
Hunk #3 succeeded at 547 (offset -42 lines).
patching file ./src/main/util.c
Hunk #1 succeeded at 666 (offset -42 lines).
patching file ./src/main/util_script.c
Hunk #1 succeeded at 1132 (offset -63 lines).
Increasing hard limit to 32768...
Setting up mod_ssl...
Found /usr/local/directadmin/customapache/mod_ssl-2.8.28-1.3.37.tar.gz
Extracting /usr/local/directadmin/customapache/mod_ssl-2.8.28-1.3.37.tar.gz...
Configuring mod_ssl-2.8.28-1.3.37...
Configuring mod_ssl/2.8.28 for Apache/1.3.37
+ Apache location: ../apache_1.3.37 (Version 1.3.37)
+ OpenSSL location: /usr
+ Auxiliary patch tool: ./etc/patch/patch (local)
+ Applying packages to Apache source tree:
o Extended API (EAPI)
o Distribution Documents
o SSL Module Source
o SSL Support
o SSL Configuration Additions
o SSL Module Documentation
o Addons
Done: source extension and patches successfully applied.

Configuring for Apache, Version 1.3.37
+ using installation path layout: Apache (config.layout)
+ on-the-fly added and activated frontpage module (modules/extra/mod_frontpage.
o)
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
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
o rewrite_module uses ConfigStart/End
disabling DBM support for mod_rewrite
(perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS)
o ssl_module uses ConfigStart/End
+ SSL interface: mod_ssl/2.8.28
+ SSL interface build type: DSO
+ SSL interface compatibility: enabled
+ SSL interface experimental code: disabled
+ SSL interface conservative code: disabled
+ SSL interface vendor extensions: disabled
+ SSL interface plugin: Built-in SDBM
+ SSL library path: /usr
+ SSL library version: OpenSSL 0.9.7a Feb 19 2003
+ SSL library type: installed package (stand-alone)
+ enabling Extended API (EAPI)
+ using builtin Expat
+ using -ldl for vendor DSO support
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/experimental
Creating Makefile in src/modules/standard
Creating Makefile in src/modules/extra
Creating Makefile in src/modules/proxy
Creating Makefile in src/modules/example
Creating Makefile in src/modules/ssl

Now proceed with the following commands:
$ cd ../apache_1.3.37
$ make
$ make certificate
$ make install
Done Configuration.
Trying to make apache...
===> src
make[1]: Entering directory `/usr/local/directadmin/customapache/apache_1.3.37'
make[2]: Entering directory `/usr/local/directadmin/customapache/apache_1.3.37/s
rc'
===> src/regex
sh ./mkh -i _REGEX_H_ regex2.h regcomp.c regerror.c regexec.c regfree.c > ../in
clude/hsregex.h
gcc -I. -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REW
RITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `.
./apaci` -DPOSIX_MISTAKE -c -o regcomp.o regcomp.c
gcc -I. -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REW
RITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `.
./apaci` -DPOSIX_MISTAKE -c -o regexec.o regexec.c
gcc -I. -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REW
RITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `.
./apaci` -DPOSIX_MISTAKE -c -o regerror.o regerror.c
gcc -I. -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REW
RITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `.
./apaci` -DPOSIX_MISTAKE -c -o regfree.o regfree.c
rm -f libregex.a
ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o
ranlib libregex.a
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DB
M_REWRITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat
-lite `../../apaci` os.c
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DB
M_REWRITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../../lib/expat
-lite `../../apaci` os-inline.c
rm -f libos.a
ar cr libos.a os.o os-inline.o
ranlib libos.a
<=== src/os/unix
===> src/ap
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_cpystrn.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_execve.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_fnmatch.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_getpass.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_md5c.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_signal.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_slack.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_snprintf.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_sha1.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_checkpass.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_base64.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_ebcdic.c
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWR
ITEMAP -DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite `..
/apaci` ap_strtol.c
ap_strtol.c: In function `ap_strtol':
ap_strtol.c:129: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccYFO4cg.out file, please attach this to yo
ur bugreport.
make[3]: *** [ap_strtol.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.37/sr
c'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/directadmin/customapache/apache_1.3.37'
make: *** [build] Error 2

*** The make has failed, do you want to try to make again? (y,n):
 
Please slap me. Forgot to update gcc in my troubleshooting process. Upgraded gcc and problem fixed.
 
Back
Top