Skip to contentSkip to conversation

batman 2023.1 fails to compile with implicit func kstrtou64 on debian 5.10.0

DISCUSSION MK 2 participants 3 messages Sep 6, 2023

lore
Share & tools
lore

MK

author
#0 lore raw

Hi list!

I tried to compile batman-adv-2023.1 for a standard debian bullseye kernel 5.10.0-25 but it fails with:

batman-adv/gateway_common.c:55:8: error: implicit declaration of function ‘kstrtou64’ [-Werror=implicit-function-declaration]
55 | ret = kstrtou64(buff, 10, &lthroughput);
cc1: some warnings being treated as errors

Tried make CFLAGS="-Wno-error=implicit-function-declaration" but that doesn't help. Successfully compiled on 5.15.0 (ubuntu LTS).

Any ideas on this?

Martin

#1 lore raw

On Wednesday, 6 September 2023 17:50:26 CEST MK wrote:
[...]

Quoted 7 lines

batman-adv/gateway_common.c:55:8: error: implicit declaration of function ‘kstrtou64’ [-Werror=implicit-function-declaration]

    55 |  ret = kstrtou64(buff, 10, &lthroughput);

cc1: some warnings being treated as errors

Tried make CFLAGS="-Wno-error=implicit-function-declaration" but that doesn't help. Successfully compiled on 5.15.0 (ubuntu LTS).

Please use 2023.2 or get following commit:
https://git.open-mesh.org/batman-adv.git/patch/8924adbdf993cd0521f9d0024b43e3b23af5114f

Kind regards,
Sven