Making all in peruser make[3]: Entering directory `/home/janno/rpmbuild/BUILD/httpd-2.4.6/server/mpm/peruser' make[4]: Entering directory `/home/janno/rpmbuild/BUILD/httpd-2.4.6/server/mpm/peruser' /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/os/unix -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/include -I/usr/include/apr-1 -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/aaa -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/cache -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/core -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/database -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/filters -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/ldap -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/server -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/loggers -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/lua -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/proxy -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/session -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/ssl -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/test -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/server -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/arch/unix -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/dav/main -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/generators -I/home/janno/rpmbuild/BUILD/httpd-2.4.6/modules/mappers -fPIE -prefer-non-pic -static -c peruser.c && touch peruser.lo peruser.c: In function 'clean_child_exit': peruser.c:577:9: warning: variable 'retval' set but not used [-Wunused-but-set-variable] int retval; ^ peruser.c: In function 'sig_coredump': peruser.c:780:5: warning: implicit declaration of function 'unixd_killpg' [-Wimplicit-function-declaration] unixd_killpg(getpid(), sig); ^ peruser.c:772:9: warning: variable 'retval' set but not used [-Wunused-but-set-variable] int retval; ^ peruser.c: In function 'wait_for_workers': peruser.c:1134:9: warning: implicit declaration of function 'child_clone' [-Wimplicit-function-declaration] child_clone(processor->id); ^ peruser.c: In function 'peruser_process_connection': peruser.c:1463:49: error: dereferencing pointer to incomplete type net->in_ctx = apr_palloc(conn->pool, sizeof(*net->in_ctx)); ^ peruser.c:1464:16: error: dereferencing pointer to incomplete type net->in_ctx->b = bb; ^ peruser.c:1465:16: error: dereferencing pointer to incomplete type net->in_ctx->tmpbb = apr_brigade_create(net->in_ctx->b->p, ^ peruser.c:1465:56: error: dereferencing pointer to incomplete type net->in_ctx->tmpbb = apr_brigade_create(net->in_ctx->b->p, ^ peruser.c:1466:56: error: dereferencing pointer to incomplete type net->in_ctx->b->bucket_alloc); ^ peruser.c: In function 'peruser_setup_child': peruser.c:1937:9: warning: implicit declaration of function 'unixd_setup_child' [-Wimplicit-function-declaration] return unixd_setup_child(); ^ peruser.c: In function 'child_main': peruser.c:2108:51: error: 'ap_lock_fname' undeclared (first use in this function) rv = apr_proc_mutex_child_init(&accept_mutex, ap_lock_fname, pchild); ^ peruser.c:2108:51: note: each undeclared identifier is reported only once for each function it appears in peruser.c:2066:15: warning: variable 'current_conn' set but not used [-Wunused-but-set-variable] conn_rec *current_conn; ^ peruser.c: At top level: peruser.c:2447:13: warning: conflicting types for 'child_clone' [enabled by default] static void child_clone(int child_num) ^ peruser.c:2447:13: error: static declaration of 'child_clone' follows non-static declaration peruser.c:1134:9: note: previous implicit declaration of 'child_clone' was here child_clone(processor->id); ^ peruser.c: In function 'perform_idle_server_maintenance': peruser.c:2791:12: warning: unused variable 'up_time' [-Wunused-variable] time_t up_time = apr_time_sec(now - ap_scoreboard_image->global->restart_time); ^ peruser.c:2786:12: warning: unused variable 'idle_time' [-Wunused-variable] time_t idle_time; ^ peruser.c:2785:24: warning: unused variable 'retval' [-Wunused-variable] int i, stop_child, retval; ^ peruser.c:2785:12: warning: unused variable 'stop_child' [-Wunused-variable] int i, stop_child, retval; ^ peruser.c: In function 'ap_mpm_run': peruser.c:2949:5: error: 'ap_lock_fname' undeclared (first use in this function) ap_lock_fname = apr_psprintf(_pconf, "%s.%" APR_PID_T_FMT, ^ peruser.c:2954:32: error: 'ap_accept_lock_mech' undeclared (first use in this function) ap_accept_lock_mech, _pconf); ^ peruser.c:2968:9: warning: implicit declaration of function 'unixd_set_proc_mutex_perms' [-Wimplicit-function-declaration] rv = unixd_set_proc_mutex_perms(accept_mutex); ^ peruser.c:3009:5: warning: implicit declaration of function 'ap_get_server_version' [-Wimplicit-function-declaration] ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf, ^ peruser.c:3009:5: warning: format '%s' expects argument of type 'char *', but argument 8 has type 'int' [-Wformat=] peruser.c:3033:9: error: too few arguments to function 'ap_wait_or_timeout' ap_wait_or_timeout(&exitwhy, &status, &pid, pconf); ^ peruser.c:614:6: note: declared here void ap_wait_or_timeout(apr_exit_why_e *status, int *exitcode, apr_proc_t *ret, ^ peruser.c:3173:9: error: too few arguments to function 'ap_reclaim_child_processes' ap_reclaim_child_processes(1); /* Start with SIGTERM */ ^ In file included from peruser.c:100:0: /home/janno/rpmbuild/BUILD/httpd-2.4.6/include/mpm_common.h:106:18: note: declared here AP_DECLARE(void) ap_reclaim_child_processes(int terminate, ^ peruser.c:3265:9: error: too few arguments to function 'ap_reclaim_child_processes' ap_reclaim_child_processes(0); /* Not when just starting up */ ^ In file included from peruser.c:100:0: /home/janno/rpmbuild/BUILD/httpd-2.4.6/include/mpm_common.h:106:18: note: declared here AP_DECLARE(void) ap_reclaim_child_processes(int terminate, ^ peruser.c:2933:19: warning: unused variable 'status' [-Wunused-variable] unsigned char status; ^ peruser.c: In function 'peruser_pre_config': peruser.c:3370:5: warning: implicit declaration of function 'unixd_pre_config' [-Wimplicit-function-declaration] unixd_pre_config(ptemp); ^ peruser.c:3389:5: error: 'ap_lock_fname' undeclared (first use in this function) ap_lock_fname = DEFAULT_LOCKFILE; ^ peruser.c: In function 'peruser_post_config': peruser.c:3537:16: error: 'unixd_config' undeclared (first use in this function) senv.uid = unixd_config.user_id; ^ peruser.c: In function 'peruser_status_hook': peruser.c:3824:24: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Wformat=] senv->availability); ^ peruser.c:3824:24: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long unsigned int' [-Wformat=] peruser.c:3824:24: warning: format '%d' expects argument of type 'int', but argument 10 has type 'long unsigned int' [-Wformat=] peruser.c: In function 'cf_ServerEnvironment': peruser.c:4165:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] processor_name = name; ^ peruser.c:4184:17: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] tmp = child_add(CHILD_TYPE_PROCESSOR, CHILD_STATUS_STANDBY, ^ peruser.c: At top level: peruser.c:4639:45: error: 'UNIX_DAEMON_COMMANDS' undeclared here (not in a function) static const command_rec peruser_cmds[] = { UNIX_DAEMON_COMMANDS, ^ peruser.c:1959:12: warning: 'check_signal' defined but not used [-Wunused-function] static int check_signal(int signum) ^ peruser.c:1978:12: warning: 'peruser_header_field' defined but not used [-Wunused-function] static int peruser_header_field(peruser_header *h, const char *fieldname, ^ peruser.c: In function 'peruser_setup_child': peruser.c:1863:13: warning: ignoring return value of 'nice', declared with attribute warn_unused_result [-Wunused-result] nice(senv->nice_lvl); ^ make[4]: *** [peruser.lo] Error 1 make[4]: Leaving directory `/home/janno/rpmbuild/BUILD/httpd-2.4.6/server/mpm/peruser' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/janno/rpmbuild/BUILD/httpd-2.4.6/server/mpm/peruser' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/janno/rpmbuild/BUILD/httpd-2.4.6/server/mpm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/janno/rpmbuild/BUILD/httpd-2.4.6/server' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.QcTPb5 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QcTPb5 (%build)