NM 1.14.6 build error



..
src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c: In function ‘discover_mac_address’:
src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:572:15: error: storage size of ‘ifr’ isn’t known
  struct ifreq ifr;
               ^~~
src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:590:32: error: ‘IFNAMSIZ’ undeclared (first use in this function); did you mean ‘NMP_IFNAMSIZ’?
  strncpy(ifr.ifr_name, device, IFNAMSIZ-1);
                                ^~~~~~~~
                                NMP_IFNAMSIZ
src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:590:32: note: each undeclared identifier is reported only once for each function it appears in
src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:572:15: warning: unused variable ‘ifr’ [-Wunused-variable]
  struct ifreq ifr;
               ^~~
make[2]: *** [Makefile:15086: src/settings/plugins/ifcfg-rh/libnms_ifcfg_rh_core_la-nms-ifcfg-rh-reader.lo] Error 1
make[2]: Leaving directory '/home/yoda/rpmbuild/BUILD/NetworkManager-1.14.6'
make[2]: *** Waiting for unfinished jobs....
...
make[2]: Leaving directory '/home/yoda/rpmbuild/BUILD/NetworkManager-1.14.6'
make[1]: *** [Makefile:17787: all-recursive] Error 1
make: *** [Makefile:7870: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.2zCe40 (%build)
Any ideea ?
Thx!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]