Время там вообще не критично, плохо если есть другие проблемы которые не бросаются в глаза.
Я просмотрел все патчи в openwrt на musl. Их там порядка 8-10.
Ничего критичного, кроме этого
Бинарники собранные с OpenWrt SDK 21/22/23 можно тут взять Releases · spvkgn/zapret-openwrt · GitHub
@bolvan
Сегодня попробую прикрутить тот патч для musl из опенрврт
Если там есть armv6 с soft float, то можно все тулчейны брать из openwrt.
С linux они совместимы. Если нет /etc/TZ, нормально принимается /etc/localtime
Согласен, так было бы проще. Может есть смысл забить на soft float ? Почему-то опенврт этот вариант игнорируют.
По поводу скрипта даже не знал, спасибо, нашел, сделал.
Что касаемо дебага, а он разве не для автохостлиста?
Нельзя. Есть модели без hard float. Уже однажды присылали иссуе с падением.
Устройств с ARM великое множество. Не обязательно на openwrt.
Но можно легко собрать недостающий тулчейн, поставив там банально в .config CONFIG_SOFT_FLOAT=y
И кэшировать его на гитхабе. Остальное брать прямо с openwrt сайта
download
unpack
echo CONFIG_SOFT_FLOAT=y >.config
echo CONFIG_MAKE_TOOLCHAIN=y >>.config
make defconfig
make toolchain -j 8
welcome
про дебаг подробно в ридмишки
Спойлер
--debug
позволяет выводить подробный лог действий на консоль, в syslog или в файл. Может быть важен порядок следования опций. --debug
лучше всего указывать в самом начале. Опции анализируются последовательно.
компилирую на свежем debian12 командой make package/{tpws,nfqws,mdig,ip2net}/compile > err.log
установил apt install python3-distutils ncurses-dev gawk wget
выдаёт ошибку make[2]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_m - Pastebin.com
чего-то ещё не хватает?
make package/tpws/compile V=99
подробности покажет
вот всё что есть
Спойлер
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'eip197-mini-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2x-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8152-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'amdgpu-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'radeon-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-gpio-button-hotplug', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'nu801', which does not exist
WARNING: Makefile 'package/zapret/nfqws/Makefile' has a dependency on 'libnetfilter-queue', which does not exist
WARNING: Makefile 'package/zapret/nfqws/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/zapret/nfqws/Makefile' has a dependency on 'zlib', which does not exist
WARNING: Makefile 'package/zapret/tpws/Makefile' has a dependency on 'zlib', which does not exist
WARNING: Makefile 'package/zapret/tpws/Makefile' has a dependency on 'libcap', which does not exist
tmp/.config-package.in:70:warning: ignoring type redefinition of 'PACKAGE_libc' from 'bool' to 'tristate'
tmp/.config-package.in:98:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'bool' to 'tristate'
tmp/.config-package.in:219:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'bool' to 'tristate'
tmp/.config-package.in:247:warning: ignoring type redefinition of 'PACKAGE_librt' from 'bool' to 'tristate'
Config-build.in:1251:warning: defaults for choice values not supported
Config-build.in:1255:warning: defaults for choice values not supported
Config-build.in:1259:warning: defaults for choice values not supported
make[1]: *** No rule to make target 'make'. Stop.
make: *** [/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/include/toplevel.mk:225: make] Ошибка 2
Ему наплевать на musl. Есть target platform, есть host platform.
На host должен быть минимально необходимый набор тулзов, остальное он сам соберет.
x86_64-openwrt-linux-musl-gcc -s -std=gnu99 -Os -o tpws *.c -lz -lpthread
make[3]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws'
make[2]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/zapret/tpws'
time: package/zapret/tpws/compile#1.15#0.20#1.33
ERROR: package/zapret/tpws failed to build.
x86_64-openwrt-linux-musl-gcc -s -std=gnu99 -Os -o tpws *.c -lz -lpthread
ошибку не выдал. значит он скорее всего собирается.
и скорее всего в build_dir/target-…/tpws есть EXEшник tpws, а в bin/packages/.../base/tpws*ipk
но дальше идет какая-то ошибка упаковки
я скорее всего не то кинул, там выше я поправил сообщение, возможно в чём-то другом проблема.
вот всё что есть в папке tpws
root@vbox:/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64# ls /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws
andr epoll-shim gzip.h helpers.h hostlist.h ipset.h Makefile params.h pools.h protocol.h redirect.h resolver.h sec.h tamper.c tpws.c tpws_conn.h uthash.h
BSDmakefile gzip.c helpers.c hostlist.c ipset.c macos params.c pools.c protocol.c redirect.c resolver.c sec.c socks.h tamper.h tpws_conn.c tpws.h
make package/tpws/clean
make package/tpws/compile V=99
должно показывать подробный процесс сборки
вот что вернули эти команды
Спойлер
make[2]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/scripts/config'
#
# No change to .config
#
make[1]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64'
make[2]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/toolchain'
echo "libc" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
touch -r /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain/.built /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain/.autoremove 2>/dev/null >/dev/null
find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' -print0 | xargs -r -0 rm -rf
make[2]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/toolchain'
time: package/toolchain/compile#0.19#0.09#0.23
make[2]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/zapret/tpws'
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.prepared_9524d99e02a39d0ace91be0eafa79c02_18f1e190c5d53547fed41a3eaa76e9e9_check
mkdir -p /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws
cp -fpR ./tpws/* /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.prepared_9524d99e02a39d0ace91be0eafa79c02_18f1e190c5d53547fed41a3eaa76e9e9
rm -f /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.configured_*
rm -f /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/stamp/.tpws_installed
(cd /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/./; if [ -x ./configure ]; then find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.guess | xargs -r chmod u+w; find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.guess | xargs -r -n1 cp --remove-destination /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/scripts/config.guess; find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.sub | xargs -r chmod u+w; find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.sub | xargs -r -n1 cp --remove-destination /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/scripts/config.sub; 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 -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws=tpws -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 CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws=tpws -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws=tpws -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -znow -zrelro " ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.built
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.built_check
make -C /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws 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 -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws=tpws -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
make[3]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws'
x86_64-openwrt-linux-musl-gcc -s -std=gnu99 -Os -o tpws *.c -lz -lpthread
make[3]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws'
make[2]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/zapret/tpws'
time: package/zapret/tpws/compile#1.31#0.26#1.55
ERROR: package/zapret/tpws failed to build.
make[1]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64'
нет, опять не то, не понимаю почему он не записывает в файл весь вывод, вот что на самом деле было
Спойлер
Config-build.in:1255:warning: defaults for choice values not supported [47/159]
Config-build.in:1259:warning: defaults for choice values not supported
#
# No change to .config
#
make[1]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64'
make[2]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/toolchain'
Makefile:735: WARNING: skipping libgomp -- package has no install section
echo "libc" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
touch -r /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain/.built /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain/.autor
emove 2>/dev/null >/dev/null
find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' -print0 | xargs -r -0 r
m -rf
make[2]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/toolchain'
time: package/toolchain/compile#0.19#0.04#0.22
make[2]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/zapret/tpws'
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.prepared_9524d99e02a39d0ace91be0eafa79c02_18f1e190c5d53547fed41a3eaa76e9e9_check
mkdir -p /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws
cp -fpR ./tpws/* /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.prepared_9524d99e02a39d0ace91be0eafa79c02_18f1e190c5d53547fed41a3eaa76e9e9
rm -f /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.configured_*
rm -f /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/stamp/.tpws_installed
(cd /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/./; if [ -x ./configure ]; then find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_m
usl/tpws/ -name config.guess | xargs -r chmod u+w; find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.guess | xargs -r -n1 cp --remove-destination /opt/zapret/openwrt
-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/scripts/config.guess; find /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.sub | xargs -r chmod u+w; find /opt/zapret/o
penwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/ -name config.sub | xargs -r -n1 cp --remove-destination /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/scripts/config.sub; 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 -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_m
usl/tpws=tpws -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-l
inux-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-openw
rt-linux-musl-size CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws=tpws -Wformat -Werror=format-security
-fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64
_musl/tpws=tpws -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_mus
l/usr/include -I/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain
-x86_64_gcc-12.3.0_musl/include " LDFLAGS="-L/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/
staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -znow -zrelro " ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix="" --program-suffix="" -
-prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.built
touch /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.built_check
make -C /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws 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
-ffile-prefix-map=/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws=tpws -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-open
wrt-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
make[3]: Entering directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws'
x86_64-openwrt-linux-musl-gcc -s -std=gnu99 -Os -o tpws *.c -lz -lpthread
cc1: note: someone does not honour COPTS correctly, passed 0 times
x86_64-openwrt-linux-musl-gcc -s -std=gnu99 -Os -o tpws *.c -lz -lpthread
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from gzip.c:1:
gzip.h:4:10: fatal error: zlib.h: No such file or directory
4 | #include <zlib.h>
| ^~~~~~~~
compilation terminated.
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from hostlist.c:3:
gzip.h:4:10: fatal error: zlib.h: No such file or directory
4 | #include <zlib.h>
| ^~~~~~~~
compilation terminated.
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from ipset.c:3:
gzip.h:4:10: fatal error: zlib.h: No such file or directory
4 | #include <zlib.h>
| ^~~~~~~~
compilation terminated.
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from sec.c:5:
sec.h:11:10: fatal error: sys/capability.h: No such file or directory
11 | #include <sys/capability.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
cc1: note: someone does not honour COPTS correctly, passed 0 times
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from tpws.c:43:
sec.h:11:10: fatal error: sys/capability.h: No such file or directory
11 | #include <sys/capability.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
cc1: note: someone does not honour COPTS correctly, passed 0 times
make[3]: *** [Makefile:12: tpws] Error 1
make[3]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws'
make[2]: *** [Makefile:35: /opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/tpws/.built] Error 2
make[2]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/package/zapret/tpws'
time: package/zapret/tpws/compile#1.11#0.26#1.73
ERROR: package/zapret/tpws failed to build.
make[1]: *** [package/Makefile:129: package/zapret/tpws/compile] Error 1
make[1]: Leaving directory '/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64'
make: *** [/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64/include/toplevel.mk:225: package/tpws/compile] ゙ネᄌᄆᄎᄚ 2
видимо не хватает файла sys/capability.h
Не выполнена установка зависимостей из пункта 2
зависимости я устанавливал, это странно.
выполнил apt-get install libcap-dev
потом ещё раз выполнил команды из пункта 2 и всё скомпилировалось без проблем
Спойлер
root@vbox:/opt/zapret/openwrt-sdk-23.05.4-x86-64_gcc-12.3.0_musl.Linux-x86_64# ls -l bin/packages/*/base
ᄌツᄒᄈᄒ 312
-rw-r--r-- 1 root root 5344 ᄑᄒマ 17 15:19 ip2net_1_x86_64.ipk
-rw-r--r-- 1 root root 15769 ᄑᄒマ 17 15:18 libcap_2.69-1_x86_64.ipk
-rw-r--r-- 1 root root 20977 ᄑᄒマ 17 15:18 libcap-bin_2.69-1_x86_64.ipk
-rw-r--r-- 1 root root 8242 ᄑᄒマ 17 15:18 libmnl0_1.0.5-1_x86_64.ipk
-rw-r--r-- 1 root root 11361 ᄑᄒマ 17 15:19 libnfnetlink0_1.0.2-1_x86_64.ipk
-rw-r--r-- 1 root root 6192 ᄑᄒマ 17 15:19 mdig_1_x86_64.ipk
-rw-r--r-- 1 root root 62777 ᄑᄒマ 17 15:19 nfqws_1_x86_64.ipk
-rw-r--r-- 1 root root 44841 ᄑᄒマ 17 15:18 tpws_1_x86_64.ipk
-rw-r--r-- 1 root root 44233 ᄑᄒマ 17 15:18 zlib_1.2.13-1_x86_64.ipk
-rw-r--r-- 1 root root 80764 ᄑᄒマ 17 15:18 zlib-dev_1.2.13-1_x86_64.ipk
Нет. Они не нужны на host системе.
Зависимости должны быть в SDK под target систему
Это ненормально, что оно ищет хедеры с хост системы