Comments (6)
-fno-stack-protector
would have been my guess as well (from searching on the Internet).
ZT uses -fstack-protector in its own Makefile. I assume that it is not properly overwritten. and you need to patch it out of the Makefile or you can first try to edit the Makefile in the ZT build directory somewhere in openwrt/build_dir/ (oder lede/build_dir/)
from zerotier-openwrt.
@mwarning gave it a try, but no success. The command that is failing seems to be the following:
powerpc-openwrt-linux-musl-g++ -Os -pipe -mcpu=464fp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap /home/riptide_wave/source/build_dir/target-powerpc_464fp_musl-1.1.15/zerotier-1.1.14:zerotier-1.1.14 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/riptide_wave/source/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/include -I/home/riptide_wave/source/staging_dir/target-powerpc_464fp_musl-1.1.15/include -I/home/riptide_wave/source/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/usr/include -I/home/riptide_wave/source/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/include/fortify -I/home/riptide_wave/source/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/include -fno-builtin -nostdinc++ -I/home/riptide_wave/source/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/include/uClibc++ -DGCC_HASCLASSVISIBILITY -Wall -fPIE -fvisibility=hidden -Wall -Wno-unused-result -Wreorder -fPIE -fno-rtti -pthread -DNDEBUG -D_FORTIFY_SOURCE=2 -L/home/riptide_wave/source/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/lib -L/home/riptide_wave/source/staging_dir/target-powerpc_464fp_musl-1.1.15/lib -L/home/riptide_wave/source/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/usr/lib -L/home/riptide_wave/source/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro -L/home/riptide_wave/source/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/lib/uClibc++ -pthread -o zerotier-one node/C25519.o node/CertificateOfMembership.o node/Cluster.o node/DeferredPackets.o node/Identity.o node/IncomingPacket.o node/InetAddress.o node/Multicaster.o node/Network.o node/NetworkConfig.o node/Node.o node/OutboundMulticast.o node/Packet.o node/Path.o node/Peer.o node/Poly1305.o node/Salsa20.o node/SelfAwareness.o node/SHA512.o node/Switch.o node/Topology.o node/Utils.o osdep/BackgroundResolver.o osdep/ManagedRoute.o osdep/Http.o osdep/OSUtils.o service/ClusterGeoIpService.o service/ControlPlane.o ext/lz4/lz4.o ext/http-parser/http_parser.o ext/json-parser/json.o service/OneService.o one.o osdep/LinuxEthernetTap.o -fno-builtin -nodefaultlibs -Wl,-Bstatic -luClibc++ -Wl,-Bdynamic -lpthread -lm -lc -lsupc++ -lc -lgcc -lgcc_eh -lgcc_s -lpthread -lm -fno-stack-protector
I even tried with PKG_CC_STACKPROTECTOR_NONE=y being set in my LEDE config (which removes the occurrence of -fstack-protector
in the above cmd), but that had no affect as well.
It also seems the only reverence to stack-protector are at https://github.com/zerotier/ZeroTierOne/blob/830250759cd4c14ca2ae5ddf24f0a0427f258622/make-linux.mk#L109, and 2 lines below as well. Even with these removed or replaced with -fno-stack-protector
the issue continues.
from zerotier-openwrt.
That line contains both -fstack-protector and -fno-stack-protector. Not sure what happens.
from zerotier-openwrt.
Yeah, as mentioned I was able to remove that with PKG_CC_STACKPROTECTOR_NONE=y
being set in my LEDE config, but even then the same issue occurs. :/
from zerotier-openwrt.
The above PR was submitted to resolve the issue.
from zerotier-openwrt.
Great to see that you were able to fix it.
from zerotier-openwrt.
Related Issues (20)
- not found ztXXXXXXXX interface HOT 9
- 更新
- Zeronsd - compile and add to feed in openwrt HOT 4
- 版本太旧了,请更新到最新版本的zerotier HOT 1
- Very high memory and CPU usage HOT 2
- Backport 1.10.1 to OpenWRT 22.03 HOT 6
- Unable to view apple airport express and apple timecapsule device over zerotier HOT 1
- ARM build missing libstdc++10 dependency HOT 1
- Can I run this, going to my normal full tunnel exit point HOT 1
- How can I running zerotier without NAT mode? HOT 5
- cannot access devices on LAN after follow thru the installation guide. HOT 5
- Please update to the latest version ZeroTier 1.12 +
- Zerotier Multipath not working HOT 9
- Openwrt does not support allocating ipv6 prefixes of ZeroTier "6PLANE" (/80 routable for each device) with a length of 80.
- Use openwrt with zerotier as a gateway
- Please upgrade ZEROTIER to the latest version !!! HOT 1
- openwrt-3.10.14 ,barrier_breaker/14.07/ HOT 1
- Can you support the compilation of this source code? Openwrt-3.10.14 HOT 2
- how to compile latest ZT?? HOT 6
- zerotier-cli shows ‘Segmentation fault’ on version 1.8.6 with arm_cortex-a7-neon and arm_cortex-a15_neon-vfpv4 and ARMv6 HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerotier-openwrt.