Advertise

Tuesday, May 25, 2010

Apache httpd-2.2.15 Compilation error make[3]: Leaving directory `/usr/local/src/httpd-2.2.15/os/unix' make[2]: *** [all-recursive] Error 1

HI All

I was getting Error while compiling the Apache in the Fedora 13.And Error is as below

Error=============================================================================

Error Log

unixd.c:54: error: expected declaration specifiers before ‘unixd_config_rec’
unixd.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:215: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:227: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:241: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:323: error: storage class specified for parameter ‘_hooks’
unixd.c:327: error: expected declaration specifiers before ‘AP_IMPLEMENT_HOOK_RUN_FIRST’
unixd.c:402: error: expected declaration specifiers or ‘...’ before ‘apr_proc_t’
unixd.c:405: error: expected declaration specifiers or ‘...’ before ‘apr_procattr_t’
unixd.c:406: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
unixd.c:418: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘proc_mutex_mech’
unixd.c:431: error: expected ‘)’ before ‘*’ token
unixd.c:484: error: expected ‘)’ before ‘*’ token
unixd.c:496: error: expected declaration specifiers or ‘...’ before ‘ap_listen_rec’
unixd.c:498: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/usr/local/src/apache/include/http_config.h:975: error: old-style parameter declarations in prototyped function definition
/usr/local/src/apache/include/http_config.h:975: error: parameter name omitted
unixd.c:642: error: expected ‘{’ at end of input
make[3]: *** [unixd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/httpd-2.2.15/os/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/httpd-2.2.15/os/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.2.15/os'
make: *** [all-recursive] Error 1




Error=============================================================================


And the solution for the above issue is as mentioned Below

I have selected httpd-2.0.63 from the apache mirror and then i have compiled it and i was able to fix the issue.

Hope it should help some one who is facing similar issue.

No comments:

Post a Comment