OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Build Failure
  • Category Packages
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by k25c2yf - 08.05.2020

FS#3074 - olsrd compile Error

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

   tmp3.txt (426 KiB)

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing