#19956: net-snmp no longer compiles in trunk
------------------------+----------------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  Chaos Calmer (trunk)
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:  NET-SNMP
------------------------+----------------------------------

Comment (by vilius.palubinskas@…):

 TRUNK r46104 can't compile snmpd

 {{{

 In file included from ieee802dot11.c:28:0:
 ieee802dot11.h:109:1: warning: useless storage class specifier in empty
 declaration [enabled by default]
  };
  ^
 In file included from ieee802dot11.c:29:0:
 iwlib.h:90:2: error: #error "Your kernel/libc combination is not
 supported"
  #error "Your kernel/libc combination is not supported"
   ^
 ieee802dot11.c: In function 'load80211Structs':
 ieee802dot11.c:3976:18: warning: embedded '\0' in format [-Wformat-
 contains-nul]
                   ( UCHAR ) ifr.ifr_hwaddr.sa_data[4], ( UCHAR )
 ifr.ifr_hwaddr.sa_data[5] );
                   ^
 ieee802dot11.c:3996:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nSc.UID, "%04d\0", nSc.ifIndex );
        ^
 ieee802dot11.c:3996:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4003:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPr.UID, "%04d\0", nPr.ifIndex );
        ^
 ieee802dot11.c:4003:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4010:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nOp.UID, "%04d\0", nOp.ifIndex );
        ^
 ieee802dot11.c:4010:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4017:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nCo.UID, "%04d\0", nCo.ifIndex );
        ^
 ieee802dot11.c:4017:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4024:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nRi.UID, "%04d\0", nRi.ifIndex );
        ^
 ieee802dot11.c:4024:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4031:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPo.UID, "%04d\0", nPo.ifIndex );
        ^
 ieee802dot11.c:4031:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4038:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPa.UID, "%04d\0", nPa.ifIndex );
        ^
 ieee802dot11.c:4038:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4045:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPt.UID, "%04d\0", nPt.ifIndex );
        ^
 ieee802dot11.c:4045:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4052:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPf.UID, "%04d\0", nPf.ifIndex );
        ^
 ieee802dot11.c:4052:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4059:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPd.UID, "%04d\0", nPd.ifIndex );
        ^
 ieee802dot11.c:4059:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4066:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nPi.UID, "%04d\0", nPi.ifIndex );
        ^
 ieee802dot11.c:4066:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c: In function 'loadWiExtTo80211Structs':
 ieee802dot11.c:4163:3: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
    sprintf ( nAa.UID, "%04d%04d\0", nAa.ifIndex,
 nAa.authenticationAlgorithmsIndex );
    ^
 ieee802dot11.c:4163:3: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'long int' [-Wformat=]
 ieee802dot11.c:4163:3: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4176:3: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
    sprintf ( nAa.UID, "%04d%04d\0", nAa.ifIndex,
 nAa.authenticationAlgorithmsIndex );
    ^
 ieee802dot11.c:4176:3: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'long int' [-Wformat=]
 ieee802dot11.c:4176:3: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4190:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nDf.UID, "%04d%04d\0", nDf.ifIndex,
 nDf.WEPDefaultKeyIndex );
        ^
 ieee802dot11.c:4190:7: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'long int' [-Wformat=]
 ieee802dot11.c:4190:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4255:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nRt.UID, "%04d%04d\0", nRt.ifIndex,
 nRt.supportedDataRatesTxIndex );
        ^
 ieee802dot11.c:4255:7: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'long int' [-Wformat=]
 ieee802dot11.c:4255:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c:4268:7: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'long int' [-Wformat=]
        sprintf ( nRr.UID, "%04d%04d\0", nRr.ifIndex,
 nRr.supportedDataRatesRxIndex );
        ^
 ieee802dot11.c:4268:7: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'long int' [-Wformat=]
 ieee802dot11.c:4268:7: warning: embedded '\0' in format [-Wformat-
 contains-nul]
 ieee802dot11.c: In function 'loadWiExt':
 ieee802dot11.c:4441:11: warning: format '%X' expects argument of type
 'unsigned int *', but argument 3 has type '__u16 *' [-Wformat=]
            sscanf ( s, "%X", &wi->stats.status ); // status
            ^
 ieee802dot11.c:4446:11: warning: format '%d' expects argument of type 'int
 *', but argument 3 has type '__u8 *' [-Wformat=]
            sscanf ( s, "%d", &wi->stats.qual.qual );
            ^
 ieee802dot11.c:4451:11: warning: format '%d' expects argument of type 'int
 *', but argument 3 has type '__u8 *' [-Wformat=]
            sscanf ( s, "%d", &wi->stats.qual.level );
            ^
 ieee802dot11.c:4456:11: warning: format '%d' expects argument of type 'int
 *', but argument 3 has type '__u8 *' [-Wformat=]
            sscanf ( s, "%d", &wi->stats.qual.noise );
            ^
 ieee802dot11.c: In function 'displayWiExt':
 ieee802dot11.c:4562:5: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'iwparam' [-Wformat=]
      printf ( "%s sens: %d\n", "SIOCGIWSENS", info.sens );
      ^
 ieee802dot11.c:4568:15: warning: format '%d' expects argument of type
 'int', but argument 5 has type 'long int' [-Wformat=]
                "SIOCGIWENCODE", info.key_size, info.key_flags,
 wepCurrentKey );
                ^
 ieee802dot11.c:4581:17: warning: format '%d' expects argument of type
 'int', but argument 4 has type 'long int' [-Wformat=]
                  "SIOCGIWENCODE", i, wep[i].len, i, wep[i].key );
                  ^
 ieee802dot11.c:4596:30: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'iwparam' [-Wformat=]
                               info.bitrate.disabled, info.bitrate.flags );
                               ^
 ieee802dot11.c:4601:5: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'iwparam' [-Wformat=]
      printf ( "%s rts: %d\n", "SIOCGIWRTS", info.rts );
      ^
 ieee802dot11.c:4606:5: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'iwparam' [-Wformat=]
      printf ( "%s frag: %d\n", "SIOCGIWFRAG", info.frag );
      ^
 ieee802dot11.c:4616:5: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'iwparam' [-Wformat=]
      printf ( "%s power: %d\n", "SIOCGIWPOWER", info.power );
      ^
 ieee802dot11.c:4636:5: warning: format '%d' expects argument of type
 'int', but argument 3 has type 'iwparam' [-Wformat=]
      printf ( "%s retry: %d\n", "SIOCGIWRETRY", info.retry );
      ^
 ieee802dot11.c: In function 'addList':
 ieee802dot11.c:4705:8: warning: assignment from incompatible pointer type
 [enabled by default]
    list = ( LIST_HEAD ( , avNode ) * ) l;            // NOTE: don't know
 how to get
         ^
 ieee802dot11.c: In function 'flushList':
 ieee802dot11.c:4789:8: warning: assignment from incompatible pointer type
 [enabled by default]
    list = ( LIST_HEAD ( , avNode ) * ) l;    // NOTE: don't know how to
 get
         ^
 make[6]: *** [ieee802dot11.lo] Error 1
 make[6]: Leaving directory `/home/vilpalu/trunk/openwrt/build_dir/target-
 mips_34kc_musl-1.1.10/net-snmp-5.4.4/agent/mibgroup'
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19956#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to