c++ - 使用arm-musl交叉编译,ERROR> proc_open : hidden symbol `__init_array_end' in proc_open is referenced > by DSO

标签 c++ c cross-compiling

我正在尝试将lighttpd编译为处理器arm的静态,以便可以在Android设备上运行。我正在用交叉编译器arm-musl-linuxeabi编译lighttpd,我在https://bitbucket.org/GregorR/musl-cross/downloads下载它,当我运行 make 时,出现如下错误:

/home/ramly/working/arm-linux-musleabi/bin/../lib/gcc/arm-linux-musleabi/4.7.2/../../../../arm-linux-musleabi/bin/ld: proc_open: hidden symbol `__init_array_end' in proc_open is referenced by DSO /home/ramly/working/arm-linux-musleabi/bin/../lib/gcc/arm-linux-musleabi/4.7.2/../../../../arm-linux-musleabi/bin/ld: final link failed: Bad value

我的配置:

$ CFLAGS='-static' CC=arm-musl-linuxeabi-gcc AR=arm-musl-linuxeabi-ar RANLIB=arm-musl-linuxeabi-ranlib STRIP=arm-musl-linuxeabi-strip CXX=arm-musl-linuxeabi-g++ ./configure --host=arm-musl-linuxeabi --target=arm-musl-linuxeabi --prefix=/home/ramly/binary/lighttpd --with-sysroot=/home/ramly/working/arm-linux-musleabi/arm-linux-musleabi --without-mysql --without-pcre --without-zlib --without-bzip2 --without-openssl --disable-ipv6 --enable-static --disable-shared

如果我运行configure,我成功了,没有问题,没有错误,但是在configure之后,我运行make。

如何解决?我的机器是 Ubuntu 12.04 桌面版。

谢谢。

最佳答案

这是您使用的 musl 版本中的错误。已修复 commit d432b2c057fc64256645422382c2f7e32c45b3cc ;后续的0.9.10版本及更新版本已修复该错误。

关于c++ - 使用arm-musl交叉编译,ERROR> proc_open : hidden symbol `__init_array_end' in proc_open is referenced > by DSO,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15334731/

相关文章:

c++ - 正确设置 "setprecision"

C 程序 : matching array of strings when length is known at compile time versus when it's not known

c++ - 为 iOS7 编译 BlueZ?

C++宏副作用

C++ 逻辑错误 : Trying to Generate Unique ObjectIDs for all Instances Created, 计数器注册不正确

c - 使用 C 访问 Twitter Streaming API

c - "@"在 C/C++ 的宏中意味着什么?

python - 将 python-pillow 添加到 buildroot

c++ - CV - 自动变量的限定符

c - 使用指针而不是数组