immortalwrt / packages

Community maintained packages for ImmortalWrt.
GNU General Public License v2.0
135 stars 223 forks source link

用最新源码编译zerotier时出错 #1186

Closed mitsukileung closed 1 month ago

mitsukileung commented 1 month ago

...... 2024-05-11T20:18:42.5117796Z 287 | memset(staticIps, 0, sizeof(InetAddress)ZT_MAX_ZT_ASSIGNED_ADDRESSES); 2024-05-11T20:18:42.5118540Z | ~~^~~~~~~~~~~~~~~~ 2024-05-11T20:18:42.5119007Z In file included from service/../node/Node.hpp:29: 2024-05-11T20:18:42.5119730Z service/../node/InetAddress.hpp:42:8: note: 'struct ZeroTier::InetAddress' declared here 2024-05-11T20:18:42.5120335Z 42 | struct InetAddress : public sockaddr_storage 2024-05-11T20:18:42.5120708Z | ^~~ 2024-05-11T20:18:42.7818405Z service/../node/Network.hpp: In constructor 'ZeroTier::Network::_IncomingConfigChunk::_IncomingConfigChunk()': 2024-05-11T20:18:42.7821726Z service/../node/Network.hpp:457:48: warning: 'void memset(void, int, size_t)' clearing an object of type 'struct ZeroTier::Network::_IncomingConfigChunk' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 2024-05-11T20:18:42.7824339Z 457 | _IncomingConfigChunk() { memset(this,0,sizeof(_IncomingConfigChunk)); } 2024-05-11T20:18:42.7825368Z | ~~^~~~~~~~~ 2024-05-11T20:18:42.7826893Z service/../node/Network.hpp:455:16: note: 'struct ZeroTier::Network::_IncomingConfigChunk' declared here 2024-05-11T20:18:42.7828050Z 455 | struct _IncomingConfigChunk 2024-05-11T20:18:42.7828700Z | ^~~~~~~~ 2024-05-11T20:18:44.4430484Z service/OneService.cpp: In lambda function: 2024-05-11T20:18:44.4433941Z service/OneService.cpp:2162:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2024-05-11T20:18:44.4435912Z 2162 | for (int i = 0; i < boundAddrs.size(); i++) { 2024-05-11T20:18:44.4436873Z | ^~~~~ 2024-05-11T20:18:44.4439243Z service/OneService.cpp:2171:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2024-05-11T20:18:44.4440402Z 2171 | for (int i = 0; i < surfaceAddrs.size(); i++) { 2024-05-11T20:18:44.4440857Z | ^~~~~~~ 2024-05-11T20:18:56.8155760Z x86_64-openwrt-linux-musl-g++ -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/workdir/openwrt/build_dir/target-x86_64_musl/ZeroTierOne-1.14.0=ZeroTierOne-1.14.0 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -ffunction-sections -fdata-sections -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include/fortify -Wall -Wno-deprecated -std=c++17 -pthread -Irustybits/target -isystem ext -Iext/prometheus-cpp-lite-1.0/core/include -Iext-prometheus-cpp-lite-1.0/3rdparty/http-client-lite/include -Iext/prometheus-cpp-lite-1.0/simpleapi/include -DNDEBUG -DZT_USE_MINIUPNPC -DZT_USE_SYSTEM_MINIUPNPC -DZT_USE_SYSTEM_NATPMP -DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=2 -DZT_SOFTWARE_UPDATE_DEFAULT="\"disable\"" -D_MT_ALLOCATOR_H -D_POOL_ALLOCATOR_H -D_EXTPTR_ALLOCATOR_H -D_DEBUG_ALLOCATOR_H -DZT_USE_X64_ASM_SALSA2012 -DZT_USE_FAST_X64_ED25519 -msse -msse2 -c -o osdep/LinuxEthernetTap.o osdep/LinuxEthernetTap.cpp 2024-05-11T20:18:59.4151965Z x86_64-openwrt-linux-musl-g++ -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/workdir/openwrt/build_dir/target-x86_64_musl/ZeroTierOne-1.14.0=ZeroTierOne-1.14.0 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -ffunction-sections -fdata-sections -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include/fortify -Wall -Wno-deprecated -std=c++17 -pthread -Irustybits/target -isystem ext -Iext/prometheus-cpp-lite-1.0/core/include -Iext-prometheus-cpp-lite-1.0/3rdparty/http-client-lite/include -Iext/prometheus-cpp-lite-1.0/simpleapi/include -DNDEBUG -DZT_USE_MINIUPNPC -DZT_USE_SYSTEM_MINIUPNPC -DZT_USE_SYSTEM_NATPMP -DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=2 -DZT_SOFTWARE_UPDATE_DEFAULT="\"disable\"" -D_MT_ALLOCATOR_H -D_POOL_ALLOCATOR_H -D_EXTPTR_ALLOCATOR_H -D_DEBUG_ALLOCATOR_H -DZT_USE_X64_ASM_SALSA2012 -DZT_USE_FAST_X64_ED25519 -msse -msse2 -c -o osdep/LinuxNetLink.o osdep/LinuxNetLink.cpp 2024-05-11T20:19:00.3403504Z osdep/LinuxNetLink.cpp: In member function 'void ZeroTier::LinuxNetLink::_routeAdded(nlmsghdr)': 2024-05-11T20:19:00.3405255Z osdep/LinuxNetLink.cpp:294:14: warning: unused variable 'ms' [-Wunused-variable] 2024-05-11T20:19:00.3406226Z 294 | char ms[24] = {0}; 2024-05-11T20:19:00.3406765Z | ^~ 2024-05-11T20:19:00.3424251Z osdep/LinuxNetLink.cpp: In member function 'void ZeroTier::LinuxNetLink::_routeDeleted(nlmsghdr*)': 2024-05-11T20:19:00.3425840Z osdep/LinuxNetLink.cpp:382:14: warning: unused variable 'ms' [-Wunused-variable] 2024-05-11T20:19:00.3426854Z 382 | char ms[24] = {0}; 2024-05-11T20:19:00.3427400Z | ^~ 2024-05-11T20:19:00.8490104Z x86_64-openwrt-linux-musl-g++ -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/workdir/openwrt/build_dir/target-x86_64_musl/ZeroTierOne-1.14.0=ZeroTierOne-1.14.0 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -ffunction-sections -fdata-sections -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include -I/workdir/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include/fortify -Wall -Wno-deprecated -std=c++17 -pthread -Irustybits/target -isystem ext -Iext/prometheus-cpp-lite-1.0/core/include -Iext-prometheus-cpp-lite-1.0/3rdparty/http-client-lite/include -Iext/prometheus-cpp-lite-1.0/simpleapi/include -DNDEBUG -DZT_USE_MINIUPNPC -DZT_USE_SYSTEM_MINIUPNPC -DZT_USE_SYSTEM_NATPMP -DZT_BUILD_PLATFORM=1 -DZT_BUILD_ARCHITECTURE=2 -DZT_SOFTWARE_UPDATE_DEFAULT="\"disable\"" -D_MT_ALLOCATOR_H -D_POOL_ALLOCATOR_H -D_EXTPTR_ALLOCATOR_H -D_DEBUG_ALLOCATOR_H -DZT_USE_X64_ASM_SALSA2012 -DZT_USE_FAST_X64_ED25519 -msse -msse2 -c -o osdep/PortMapper.o osdep/PortMapper.cpp 2024-05-11T20:19:00.9656643Z In file included from osdep/PortMapper.cpp:55: 2024-05-11T20:19:00.9658401Z /workdir/openwrt/staging_dir/target-x86_64_musl/usr/include/natpmp.h:52:10: fatal error: natpmp_declspec.h: No such file or directory 2024-05-11T20:19:00.9659640Z 52 | #include "natpmp_declspec.h" 2024-05-11T20:19:00.9660184Z | ^~~~~~~ 2024-05-11T20:19:00.9660675Z compilation terminated. 2024-05-11T20:19:00.9680903Z make[4]: [: osdep/PortMapper.o] Error 1 2024-05-11T20:19:00.9681762Z make[4]: Leaving directory '/workdir/openwrt/build_dir/target-x86_64_musl/ZeroTierOne-1.14.0' 2024-05-11T20:19:00.9683234Z make[3]: [Makefile:87: /workdir/openwrt/build_dir/target-x86_64_musl/ZeroTierOne-1.14.0/.built] Error 2 2024-05-11T20:19:00.9684603Z make[3]: Leaving directory '/workdir/openwrt/feeds/packages/net/zerotier' 2024-05-11T20:19:00.9686976Z time: package/feeds/packages/zerotier/compile#149.60#7.04#155.67 2024-05-11T20:19:00.9692310Z ERROR: package/feeds/packages/zerotier failed to build. 2024-05-11T20:19:00.9694628Z make[2]: [package/Makefile:129: package/feeds/packages/zerotier/compile] Error 1 2024-05-11T20:19:00.9699926Z make[2]: Leaving directory '/workdir/openwrt' 2024-05-11T20:19:00.9706624Z make[1]: [package/Makefile:123: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 2024-05-11T20:19:00.9710561Z make[1]: Leaving directory '/workdir/openwrt' 2024-05-11T20:19:00.9715481Z make: *** [/workdir/openwrt/include/toplevel.mk:233: world] Error 2

内核 6.6 ,master 分支

KyonCN commented 1 month ago

Same problem