Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3074 - olsrd compile Error #8080

Closed
openwrt-bot opened this issue May 8, 2020 · 0 comments
Closed

FS#3074 - olsrd compile Error #8080

openwrt-bot opened this issue May 8, 2020 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

k25c2yf:

Supply the following if possible:

  • Centos7
  • master r13172-2b31f14, olsrd-0.9.8
  • Steps to reproduce

make package/feeds/routing/olsrd/compile V=s

make[5]: Leaving directory `/run/media/lede/openwrt/openwrt-master/build_dir/target-x86_64_musl/olsrd-0.9.8/lib/pud/wireformat'
[CC] src/gpsdclient.c
src/gpsdclient.c: In function 'nmeaInfoFromGpsd':
src/gpsdclient.c:291:101: warning: format '%f' expects argument of type 'double', but argument 12 has type 'timespec_t' {aka 'struct timespec'} [-Wformat=]
%s device%s%s on %s in %s mode at %u baud (%u%c%u), refresh time %.3f (min. %.3f)", //
~~~^

src/gpsdclient.c:301:13:

src/gpsdclient.c:291:112: warning: format '%f' expects argument of type 'double', but argument 13 has type 'timespec_t' {aka 'struct timespec'} [-Wformat=]
ce%s%s on %s in %s mode at %u baud (%u%c%u), refresh time %.3f (min. %.3f)", //
~~~^

src/gpsdclient.c:302:13:

In file included from ../../lib/pud/nmealib/include/nmealib/info.h:21,
from src/gpsdclient.h:51,
from src/gpsdclient.c:46:
../../lib/pud/nmealib/include/nmealib/util.h:48:21: error: invalid operands to binary != (have 'timespec_t' {aka 'struct timespec'} and 'timespec_t' {aka 'struct timespec'})
#define isNaN(x) (x != x)
^~
src/gpsdclient.c:370:8: note: in expansion of macro 'isNaN'
if (!isNaN(gpsdata->fix.time)) {
^~~~~
src/gpsdclient.c:372:45: error: incompatible type for argument 1 of 'fabs'
double fraction = modf(fabs(gpsdata->fix.time), &seconds);
~~~~~~~~~~~~^~~~~
In file included from ../../lib/pud/wireformat/include/OlsrdPudWireFormat/wireFormat.h:57,
from src/configuration.h:59,
from src/gpsdclient.c:48:
/run/media/lede/openwrt/openwrt-master/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/math.h:203:18: note: expected 'double' but argument is of type 'timespec_t' {aka 'struct timespec'}
double fabs(double);
^~~~~~
src/gpsdclient.c:390:7: error: wrong type argument to unary exclamation mark
if (!gpsdata->online) {
^
src/gpsdclient.c:457:29: error: 'struct gps_data_t' has no member named 'separation'; did you mean 'version'?
info->height = gpsdata->separation;
^~~~~~~~~~
version
make[4]: *** [src/gpsdclient.o] Error 1
make[4]: Leaving directory /run/media/lede/openwrt/openwrt-master/build_dir/target-x86_64_musl/olsrd-0.9.8/lib/pud' make[3]: *** [libs] Error 2 make[3]: Leaving directory /run/media/lede/openwrt/openwrt-master/build_dir/target-x86_64_musl/olsrd-0.9.8'
make[2]: *** [/run/media/lede/openwrt/openwrt-master/build_dir/target-x86_64_musl/olsrd-0.9.8/.built] Error 2
make[2]: Leaving directory /run/media/lede/openwrt/openwrt-master/feeds/routing/olsrd' time: package/feeds/routing/olsrd/compile#0.73#1.15#14.30 make[1]: *** [package/feeds/routing/olsrd/compile] Error 2 make[1]: Leaving directory /run/media/lede/openwrt/openwrt-master'
make: *** [package/feeds/routing/olsrd/compile] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant