我想把apache2建在yocto上。但我犯了很多错误。
错误:此autoconf日志指示错误,它在确定系统功能时查看主机包含和/或库路径。修复后重新运行配置任务。
有人在谷歌上把我引到https://lists.yoctoproject.org/pipermail/yocto/2012-March/005125.html
因此,我查看了conf.log并找出了这些行:
cc1: warning: include location "/usr/local/include" is unsafe for
cross-compilation [-Wpoison-system-directories]
arm-poky-linux-gnueabi/4.9.2/ld: warning: library search path "/usr/local/lib"
is unsafe for cross-compilation我又搜索了一遍,但是,我还不能理解三件事:
apache2时才会出现此错误?我可以生成ngnix、cryptsetup等等。发布于 2016-08-05 20:27:34
通常,这些类型的错误来自于配置脚本,其中包含硬编码的路径(如/usr/local/include、/usr/include和其他各种变体)。因此,修复它的方法是修补configure.ac (当然,如果包中有configure ),删除这个路径。
例如,看看当前meta中的纯ftpd补丁程序,它解决了类似的问题:
--- a/configure.ac
+++ b/configure.ac
@@ -100,18 +100,6 @@ AC_ARG_VAR(PYTHON,local path to the python interpreter)
python_possible_path="/usr/bin:/usr/local/bin:/bin:/opt/python/bin:/opt/python/usr/bin:/opt/python/usr/local/bin"
AC_PATH_PROG(PYTHON,python,/usr/bin/env python,$python_possible_path)
-if test -d /usr/local/include; then
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
-fi
-
-if test -d /usr/kerberos/include; then
- CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
-fi
-
-if test -d /usr/local/lib; then
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
-fi
-
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
dnl Checks for header fileshttps://stackoverflow.com/questions/37799950
复制相似问题