When i try to emerge apache it fails to install due compilation errors. Reproducible: Always Steps to Reproduce: 1. emerge -O1uav apache 2. 3. Actual Results: everything looks normal, until i get this error: ... Making all in os make[1]: Entering directory `/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os' Making all in unix make[2]: Entering directory `/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os/unix' make[3]: Entering directory `/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os/unix' /usr/share/apr-0/build/libtool --silent --mode=compile gcc -pthread -O3 -mcpu=pentium4 -funroll-loops -pipe -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/include/apr-0 -I/usr/include/apache2 -I. -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os/unix -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/server/mpm/prefork -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/modules/http -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/modules/filters -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/modules/proxy -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/modules/generators -I/usr/include/openssl -I/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/modules/dav/main -prefer-non-pic -static -c unixd.c && touch unixd.lo In file included from unixd.c:17: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_config.h:21:23: apr_hooks.h: No such file or directory /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_config.h:22:32: apr_optional_hooks.h: No such file or directory In file included from unixd.c:19: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:40:25: apr_buckets.h: No such file or directory /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:666:21: apr_uri.h: No such file or directory In file included from unixd.c:19: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:864: error: syntax error before "apr_uri_t" /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:864: warning: no semicolon at end of struct or union /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:914: error: syntax error before '}' token /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1095: error: syntax error before "apr_bucket_brigade" /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1095: warning: no semicolon at end of struct or union /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1099: error: syntax error before '}' token /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1099: warning: data definition has no type or storage class /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1102: error: syntax error before "apr_bucket_brigade" /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1102: warning: no semicolon at end of struct or union /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1103: warning: data definition has no type or storage class /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1112: error: syntax error before "core_output_filter_ctx_t" /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1112: warning: no semicolon at end of struct or union /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1113: warning: data definition has no type or storage class /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1114: error: syntax error before '}' token /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/httpd.h:1114: warning: data definition has no type or storage class In file included from unixd.c:20: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/http_config.h:20:23: apr_hooks.h: No such file or directory In file included from unixd.c:20: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/http_config.h:945: error: syntax error before "int" In file included from unixd.c:21: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/http_main.h:20:26: apr_optional.h: No such file or directory In file included from unixd.c:21: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/http_main.h:52: error: syntax error before "ap_signal_server" In file included from unixd.c:22: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/http_log.h:276: error: syntax error before "void" In file included from unixd.h:22, from unixd.c:23: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_listen.h:29: error: syntax error before "ap_listen_rec" /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_listen.h:39: error: syntax error before "ap_listen_rec" /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_listen.h:39: warning: no semicolon at end of struct or union /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_listen.h:57: error: syntax error before '}' token /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_listen.h:62: error: syntax error before '*' token /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_listen.h:62: warning: data definition has no type or storage class In file included from unixd.c:23: unixd.h:29:23: apr_hooks.h: No such file or directory In file included from unixd.c:23: unixd.h:49: error: syntax error before "ap_unix_identity_t" unixd.h:68: error: syntax error before '}' token unixd.h:68: warning: data definition has no type or storage class unixd.h:69: error: syntax error before "unixd_config" unixd.h:69: warning: data definition has no type or storage class unixd.h:93: error: syntax error before "ap_listen_rec" In file included from /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/server/mpm/prefork/mpm.h:19, from /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/mpm_common.h:37, from unixd.c:24: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/scoreboard.h:32:23: apr_hooks.h: No such file or directory In file included from /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/server/mpm/prefork/mpm.h:19, from /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/mpm_common.h:37, from unixd.c:24: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/scoreboard.h:187: error: syntax error before "int" unixd.c:54: error: syntax error before "unixd_config" unixd.c:54: warning: data definition has no type or storage class unixd.c: In function `set_group_privs': unixd.c:70: error: request for member `user_name' in something not a structure or union unixd.c:72: error: request for member `user_name' in something not a structure or union unixd.c:85: error: request for member `user_name' in something not a structure or union unixd.c:94: error: request for member `group_id' in something not a structure or union unixd.c:97: error: request for member `group_id' in something not a structure or union unixd.c:103: error: request for member `group_id' in something not a structure or union unixd.c:106: error: request for member `group_id' in something not a structure or union unixd.c: In function `unixd_setup_child': unixd.c:139: error: request for member `user_id' in something not a structure or union unixd.c:142: error: request for member `user_id' in something not a structure or union unixd.c: In function `unixd_set_user': unixd.c:170: error: request for member `user_name' in something not a structure or union unixd.c:171: error: request for member `user_id' in something not a structure or union unixd.c:173: error: request for member `user_id' in something not a structure or union unixd.c: In function `unixd_set_group': unixd.c:197: error: request for member `group_id' in something not a structure or union unixd.c: In function `unixd_pre_config': unixd.c:206: error: request for member `user_name' in something not a structure or union unixd.c:207: error: request for member `user_id' in something not a structure or union unixd.c:208: error: request for member `group_id' in something not a structure or union unixd.c:211: error: request for member `suexec_enabled' in something not a structure or union unixd.c:221: error: request for member `suexec_enabled' in something not a structure or union unixd.c: At top level: unixd.c:289: error: syntax error before '(' token unixd.c:308: error: syntax error before "if" unixd.c:312: error: conflicting types for `argv0' unixd.c:306: error: previous declaration of `argv0' unixd.c:312: error: `progname' undeclared here (not in a function) unixd.c:312: warning: data definition has no type or storage class unixd.c:314: error: syntax error before "if" unixd.c:328: error: conflicting types for `execgroup' unixd.c:305: error: previous declaration of `execgroup' unixd.c:328: error: `p' undeclared here (not in a function) unixd.c:328: error: `ugid' undeclared here (not in a function) unixd.c:328: warning: data definition has no type or storage class unixd.c:330: error: syntax error before "if" unixd.c:334: warning: data definition has no type or storage class unixd.c:335: error: syntax error before "if" unixd.c:341: error: conflicting types for `newargs' unixd.c:303: error: previous declaration of `newargs' unixd.c:341: error: `p' undeclared here (not in a function) unixd.c:341: warning: data definition has no type or storage class unixd.c:342: error: conflicting types for `newprogname' unixd.c:304: error: previous declaration of `newprogname' unixd.c:342: warning: data definition has no type or storage class unixd.c:343: error: conflicting types for `newargs' unixd.c:341: error: previous declaration of `newargs' unixd.c:343: warning: data definition has no type or storage class unixd.c:344: error: conflicting types for `newargs' unixd.c:343: error: previous declaration of `newargs' unixd.c:344: warning: data definition has no type or storage class unixd.c:345: error: conflicting types for `newargs' unixd.c:344: error: previous declaration of `newargs' unixd.c:345: warning: data definition has no type or storage class unixd.c:346: error: conflicting types for `newargs' unixd.c:345: error: previous declaration of `newargs' unixd.c:346: error: `p' undeclared here (not in a function) unixd.c:346: warning: passing arg 2 of `apr_pstrdup' makes pointer from integer without a cast unixd.c:346: warning: data definition has no type or storage class unixd.c:353: error: syntax error before "if" unixd.c:357: error: redefinition of `i' unixd.c:334: error: `i' previously defined here unixd.c:357: warning: data definition has no type or storage class unixd.c:358: error: syntax error before "do" unixd.c: In function `ap_os_create_privileged_process': unixd.c:372: warning: initialization makes pointer from integer without a cast unixd.c: In function `unixd_set_proc_mutex_perms': unixd.c:417: error: request for member `user_id' in something not a structure or union unixd.c:418: error: request for member `group_id' in something not a structure or union unixd.c:433: error: request for member `user_id' in something not a structure or union unixd.c: At top level: unixd.c:461: error: syntax error before "ap_listen_rec" unixd.c: In function `unixd_accept': unixd.c:467: error: `accepted' undeclared (first use in this function) unixd.c:467: error: (Each undeclared identifier is reported only once unixd.c:467: error: for each function it appears in.) unixd.c:468: error: `lr' undeclared (first use in this function) unixd.c:468: error: `ptrans' undeclared (first use in this function) {standard input}: Assembler messages: {standard input}:14: Error: symbol `i' is already defined make[3]: *** [unixd.lo] Error 1 make[3]: Leaving directory `/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os/unix' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os/unix' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/os' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.53 failed. !!! Function src_compile, Line 145, Exitcode 2 !!! problem compiling apache2 !!! If you need support, post the topmost build error, NOT this status message. Expected Results: it should have succesfully compiled and installed apache
The important lines from your report seem to be these: In file included from unixd.c:17: /opt/tmp/portage/apache-2.0.53/work/httpd-2.0.53/include/ap_config.h:21:23: apr_hooks.h: No such file or directory Having a look at them lets me wonder. apr_hooks.h (missing) is part of dev-util/apr, a package you shall have installed. Please tell me what version of apr *AND* apr-util you have installed *AND* please verify the existence of apr_hooks.h - which shall be located in /usr/include/apr-0/apr_hooks.h.
Waiting on user to supply more information about thier setup. resolving -> NEEDINFO