Hi everyone,
I currently can't compile the last version of the 17.01 branch for my lantiq w8970 device.
LD e2fsck
../lib/libext2fs.a(ismounted.o): In function `check_mntent_file':
ismounted.c:(.text+0x19d): undefined reference to `major'
../lib/libblkid.a(devname.o): In function `probe_all':
devname.c:(.text+0x8dd): undefined reference to `makedev'
devname.c:(.text+0xbd6): undefined reference to `makedev'
devname.c:(.text+0xce0): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make[6]: *** [Makefile:425: e2fsck] Error 1
I have this problem on multiple packages.
the problem is solved including: #include <sys/sysmacros.h>
looking at musl source: https://github.com/davidlazar/musl/blob/master/include/sys/types.h
it's like the macro _GNU_SOURCE is not defined an so sys/sysmacros.h is not included and packets don't compile.
how do I fix this? I coud remove the ifdef but I don't know if that's the proper way.