在 Debian Wheezy 上编译 apache 2.4.33 时出现问题

在 Debian Wheezy 上编译 apache 2.4.33 时出现问题

我在 Debian 系统上编译 apache 的最新版本 2.4.33 时遇到了问题。

./configure --prefix=/usr/local/apache_2.4.33 --enable-suexec --with-suexec-caller=nobody --enable-module=so --with-suexec-docroot=/httpd --enable-rewrite --enable-ssl --with-mpm=prefork

make 输出的最后几行:

/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/local/include -g -O2 -pthread      -DLINUX -D_REENTRANT -D_GNU_SOURCE     -I. -I/home/user/install/httpd-2.4.33/os/unix -I/home/user/install/httpd-2.4.33/include -I/usr/local/apr/include/apr-1 -I/home/user/install/httpd-2.4.33/modules/aaa -I/home/user/install/httpd-2.4.33/modules/cache -I/home/user/install/httpd-2.4.33/modules/core -I/home/user/install/httpd-2.4.33/modules/database -I/home/user/install/httpd-2.4.33/modules/filters -I/home/user/install/httpd-2.4.33/modules/ldap -I/home/user/install/httpd-2.4.33/modules/loggers -I/home/user/install/httpd-2.4.33/modules/lua -I/home/user/install/httpd-2.4.33/modules/proxy -I/home/user/install/httpd-2.4.33/modules/session -I/home/user/install/httpd-2.4.33/modules/ssl -I/home/user/install/httpd-2.4.33/modules/test -I/home/user/install/httpd-2.4.33/server -I/home/user/install/httpd-2.4.33/modules/md -I/home/user/install/httpd-2.4.33/modules/arch/unix -I/home/user/install/httpd-2.4.33/modules/dav/main -I/home/user/install/httpd-2.4.33/modules/generators -I/home/user/install/httpd-2.4.33/modules/mappers -prefer-pic -c md_json.c && touch md_json.slo
md_json.c: In function ‘md_json_setb’:
md_json.c:279:5: warning: implicit declaration of function ‘json_boolean’ [-Wimplicit-function-declaration]
md_json.c:279:5: warning: passing argument 1 of ‘jselect_set_new’ makes pointer from integer without a cast [enabled by default]
md_json.c:217:21: note: expected ‘struct json_t *’ but argument is of type ‘int’
md_json.c: In function ‘md_json_geta’:
md_json.c:587:5: warning: implicit declaration of function ‘json_array_foreach’ [-Wimplicit-function-declaration]
md_json.c:587:39: error: expected ‘;’ before ‘{’ token
md_json.c: In function ‘md_json_itera’:
md_json.c:663:39: error: expected ‘;’ before ‘{’ token
md_json.c: In function ‘md_json_getsa’:
md_json.c:688:43: error: expected ‘;’ before ‘{’ token
md_json.c: In function ‘md_json_dupsa’:
md_json.c:711:43: error: expected ‘;’ before ‘{’ token
md_json.c: In function ‘md_json_readb’:
md_json.c:937:5: warning: implicit declaration of function ‘json_load_callback’ [-Wimplicit-function-declaration]
md_json.c:937:7: warning: assignment makes pointer from integer without a cast [enabled by default]
md_json.c: In function ‘md_json_readf’:
md_json.c:973:7: warning: assignment makes pointer from integer without a cast [enabled by default]
make[4]: *** [md_json.slo] Fehler 1
make[4]: Leaving directory `/home/user/install/httpd-2.4.33/modules/md'
make[3]: *** [shared-build-recursive] Fehler 1
make[3]: Leaving directory `/home/user/install/httpd-2.4.33/modules/md'
make[2]: *** [shared-build-recursive] Fehler 1
make[2]: Leaving directory `/home/user/install/httpd-2.4.33/modules'
make[1]: *** [shared-build-recursive] Fehler 1
make[1]: Leaving directory `/home/user/install/httpd-2.4.33'
make: *** [all-recursive] Fehler 1

截至 2.4.29 为止,此系统上没有编译问题。有人可以帮忙吗?

答案1

您可能缺少 mod_md 模块的依赖项。您libjansson-dev安装了吗?

相关内容