配置错误:“void*”的大小小于“long”
这是我在为 powerpc 交叉编译 apache 时遇到的错误
我在构建配置选项中添加了“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
/etc/ld.so.conf 文件中似乎没有 /usr/local/lib 。
这样做后再试一次-
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
你为powerpc 64编译了apache?
也许您必须在编译之前检查配置,以设置正确的配置选项。