gpds 3.19 does not crosscompile under OSX (Darwin)
Hi all,
Since the gpsd target in OpenWrt is pushed to version 3.19, it does not crosscompile under my PSX Darwin system. The error messahe is:
scons: done reading SConscript files.
scons: Building targets ...
x86_64-openwrt-linux-musl-gcc -o driver_nmea2000.o -c -O2 -pipe -march=btver2 -mtune=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/Users/bluse/Desktop/Coding-Area/openwrt/openwrt/build_dir/target-x86_64_musl/gpsd-3.19:gpsd-3.19 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -pthread -Wall -Wcast-align -Wextra -Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes -Wno-missing-field-initializers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wvla -O2 -I/Users/bluse/Desktop/Coding-Area/openwrt/openwrt/staging_dir/target-x86_64_musl/usr/include/libusb-1.0 driver_nmea2000.c
driver_nmea2000.c: In function 'nmea2000_open':
driver_nmea2000.c:1548:18: error: storage size of 'ifr' isn't known
struct ifreq ifr;
^~~
driver_nmea2000.c:1559:11: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
(void)strlcpy(interface_name, session->gpsdata.dev.path + 11, sizeof(interface_name));
^~~~~~~
strncpy
driver_nmea2000.c:1548:18: warning: unused variable 'ifr' [-Wunused-variable]
struct ifreq ifr;
^~~
scons: *** [driver_nmea2000.o] Error 1
Does somebody has a hint how to troubleshoot or fix this ? Thanks for helping
Greetings Thomas
Edited by Thomas Hühn