bmx-routing / bmx7

BMX7 / SEMTOR Securely Entrusted Mesh Routing Protocol
GNU General Public License v2.0
63 stars 15 forks source link

build with mbedtls v2.16.0 fails #41

Closed SvenRoederer closed 5 years ago

SvenRoederer commented 5 years ago

OpenWrt went up mbedtls v2.16.0 in https://github.com/openwrt/openwrt/commit/e8f230251654edc43432c20f49ee33b67cabf6c9 which breaks building bmx7. The problems is caused by

bmx7-r2018042501/crypt.c:191: undefined reference to `MBEDTLS_DEPRECATED_STRING_CONSTANT'

the relevant log you can see in :

axn commented 5 years ago

So the solution is to define -DCRYPTLIB=MBEDTLS_2_8_0 when compiling bmx7 with a mbedTls version greater 2.8.0 (such as 2.16.0) as commented in https://github.com/openwrt-routing/packages/pull/450 Assuming that issue can be closed, please reopen otherwise

db4rne commented 5 years ago

This is fixed now for OpenWRT, but no other distro with a recent version of mbedTLS. With Arch Linux for example, I hit the same bug. If the fix doesn't break old distros, maybe we could just make the flag the default?

axn commented 5 years ago

Ok, I'll take care of making -DCRYPTLIB=MBEDTLS_2_8_0 the default in bmx7 master branch. If a distro doesn't have this version it could still define a lower one when upgrading its BMx7 package next time

Am 26. Februar 2019 22:10:09 MEZ schrieb Arne notifications@github.com:

This is fixed now for OpenWRT, but no other distro with a recent version of mbedTLS. With Arch Linux for example, I hit the same bug. If the fix doesn't break old distros, maybe we could just make the flag the default?

-- You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub: https://github.com/bmx-routing/bmx7/issues/41#issuecomment-467614813

-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

axn commented 5 years ago

Applied default CRYPTLIB=MBEDTLS_2_8_0 in master branch via https://github.com/bmx-routing/bmx7/commit/3db1586dc5818a326e01672595329d2c13a5b13a