1

配置错误:“void*”的大小小于“long”

这是我在为 powerpc 交叉编译 apache 时遇到的错误

4

3 回答 3

0

我在构建配置选项中添加了“ap_cv_void_ptr_lt_long=4”。然后配置脚本运行。

运行 ./configure 时查找以下行以找到正确的大小:

checking for inline... inline
checking for an ANSI C-conforming const... yes
checking whether setpgrp takes no argument... (cached) no
checking for socklen_t... yes
checking size of void*... 4
checking size of char... 1
checking size of int... 4
checking size of long... 4
checking size of short... 2
checking size of long long... 8
checking for INT64_C... yes
checking size of pid_t... 8
checking whether ssize_t and int are the same... yes
于 2015-02-17T14:49:27.480 回答
0

/etc/ld.so.conf 文件中似乎没有 /usr/local/lib 。

这样做后再试一次-

echo "/usr/local/lib" >> /etc/ld.so.conf

ldconfig
于 2019-04-03T11:12:42.247 回答
-1

你为powerpc 64编译了apache?

也许您必须在编译之前检查配置,以设置正确的配置选项。

于 2013-03-01T07:30:28.920 回答