Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build is broken - usr.bin/vmstat



With current sources, on port-amd64

#   compile  vmstat/vmstat.o
/test-bed/tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/test-bed/dst -D_KMEMUSER -I/test-bed/src/sys -c -Wno-format-nonliteral /test-bed/src/usr.bin/vmstat/vmstat.c
/test-bed/src/usr.bin/vmstat/vmstat.c: In function 'dopool':
/test-bed/src/usr.bin/vmstat/vmstat.c:1476:2: error: 'pool_totals.pt_npages' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  (void)printf(
  ^
/test-bed/src/usr.bin/vmstat/vmstat.c:1370:4: note: 'pool_totals.pt_npages' was 
declared here
  } pool_totals;
    ^
/test-bed/src/usr.bin/vmstat/vmstat.c:1476:2: error: 'pool_totals.pt_npagefree' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  (void)printf(
  ^
/test-bed/src/usr.bin/vmstat/vmstat.c:1370:4: note: 'pool_totals.pt_npagefree' 
was declared here
  } pool_totals;
    ^
(and many more similar messages follow)


Seems related to recent commit:

Module Name:    src
Committed By:   joerg
Date:           Fri Jun 13 19:10:01 UTC 2014

Modified Files:
        src/usr.bin/vmstat: vmstat.c

Log Message:
Use kern.pool for the live system.



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index