|
本帖最后由 lp123sun 于 2019-12-13 09:34 编辑
openwrt-18.06添加lean包编译到ipt2socks报错:
make[3]: Entering directory `/root/openwrt-18.06/package/lean/ipt2socks'
rm -f /root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e/.built
touch /root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e:ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/root/openwrt-18.06/staging_dir/target-x86_64_musl/usr/include -I/root/openwrt-18.06/staging_dir/target-x86_64_musl/include -I/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/usr/include -I/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/include/fortify -I/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e:ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/root/openwrt-18.06/staging_dir/target-x86_64_musl/usr/include -I/root/openwrt-18.06/staging_dir/target-x86_64_musl/include -I/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/usr/include -I/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/include/fortify -I/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/include " LDFLAGS="-L/root/openwrt-18.06/staging_dir/target-x86_64_musl/usr/lib -L/root/openwrt-18.06/staging_dir/target-x86_64_musl/lib -L/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/usr/lib -L/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/lib -znow -zrelro " make -C /root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e:ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" LIBS="-l:libuv_a.a" ;
make[4]: Entering directory `/root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e'
x86_64-openwrt-linux-musl-gcc -std=c99 -Wall -Wextra -O3 -pthread -s -o ipt2socks ipt2socks.o lrucache.o netutils.o -l:libuv_a.a
/root/openwrt-18.06/staging_dir/toolchain-x86_64_gcc-7.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/7.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: cannot find -l:libuv_a.a
collect2: error: ld returned 1 exit status
make[4]: *** [ipt2socks] Error 1
make[4]: Leaving directory `/root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e'
make[3]: *** [/root/openwrt-18.06/build_dir/target-x86_64_musl/ipt2socks/ipt2socks-1.0.2-e6c9b60444bfe2f30830619aacbc67d26ee1015e/.built] Error 2
make[3]: Leaving directory `/root/openwrt-18.06/package/lean/ipt2socks'
time: package/lean/ipt2socks/compile#0.08#0.04#1.25
make[2]: *** [package/lean/ipt2socks/compile] Error 2
make[2]: Leaving directory `/root/openwrt-18.06'
make[1]: *** [/root/openwrt-18.06/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/root/openwrt-18.06'
make: *** [world] Error 2
引用的libuv_a.a文件,好像就不存在,能手动指定libuv吗
系统里面已经安装有libuv了:
Package 1:libuv-devel-1.33.0-2.el7.x86_64 already installed and latest version
Package 1:libuv-1.33.0-2.el7.x86_64 already installed and latest version
|
|