https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250133

            Bug ID: 250133
           Summary: tools/tools/ifinfo/ifinfo.c Fixing build
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: b...@freebsd.org
          Reporter: oliv...@freebsd.org

Created attachment 218533
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=218533&action=edit
patch to fix build

Fixing this tool build (tested on amd64 only):
root@netboot-f:/usr/src/tools/tools/ifinfo # make
[Creating objdir /usr/obj/usr/src/amd64.amd64/tools/tools/ifinfo...]
echo ifinfo.full: /usr/lib/libc.a  >> .depend
cc  -O2 -pipe -fno-common   -g -MD  -MF.depend.ifinfo.o -MTifinfo.o -std=gnu99
-Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
-Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign
-Wmissing-variable-declarations -Wthread-safety -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable  -Qunused-arguments    -c
/usr/src/tools/tools/ifinfo/ifinfo.c -o ifinfo.o
/usr/src/tools/tools/ifinfo/ifinfo.c:175:25: error: format specifies type
'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
[-Werror,-Wformat]
        printf("\tmtu: %lu\n", ifmd->ifmd_data.ifi_mtu);
                       ~~~     ^~~~~~~~~~~~~~~~~~~~~~~
                       %u
/usr/src/tools/tools/ifinfo/ifinfo.c:176:28: error: format specifies type
'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
[-Werror,-Wformat]
        printf("\tmetric: %lu\n", ifmd->ifmd_data.ifi_metric);
                          ~~~     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                          %u
/usr/src/tools/tools/ifinfo/ifinfo.c:268:24: error: comparison of integers of
different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
        if (type <= 0 || type >= NIFTYPES) {
                         ~~~~ ^  ~~~~~~~~
/usr/src/tools/tools/ifinfo/ifinfo.c:277:12: error: unused parameter 'type'
[-Werror,-Wunused-parameter]
ifphys(int type, int phys)
           ^
4 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/src/tools/tools/ifinfo

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to