Current-Users archive

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

Re: Build failure after recent ipf import



On Wed, 19 Aug 2009, Paul Goyette wrote:

This is on port amd64:

#   compile  ippool/ippool.o
/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-gcc -O2 -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Werror -I. -I/build/netbsd-local/src/dist/ipf -I/build/netbsd-local/src/dist/ipf/tools -I/build/netbsd-local/src/sys -I/build/netbsd-local/src/sys/dist/ipf -I/build/netbsd-local/src/sys/dist/ipf/netinet -DSTATETOP -D__UIO_EXPOSE -DINET -DINET6 -nostdinc -isystem /build/netbsd-local/dest/amd64/usr/include -D_FORTIFY_SOURCE=2 -c /build/netbsd-local/src/dist/ipf/tools/ippool.c
cc1: warnings being treated as errors
/build/netbsd-local/src/dist/ipf/tools/ippool.c: In function 'poolflush':
/build/netbsd-local/src/dist/ipf/tools/ippool.c:503: warning: format '%zu' expects type 'size_t', but argument 2 has type 'u_int' /build/netbsd-local/src/dist/ipf/tools/ippool.c:503: warning: format '%zu' expects type 'size_t', but argument 2 has type 'u_int'

The attached patch to ippool.c allows the build to proceed. I'll let Darren commit it, since ipf belongs to him.



-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS 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  |
-------------------------------------------------------------------------
Index: ippool.c
===================================================================
RCS file: /cvsroot/src/dist/ipf/tools/ippool.c,v
retrieving revision 1.6
diff -u -p -r1.6 ippool.c
--- ippool.c    20 May 2008 07:08:07 -0000      1.6
+++ ippool.c    20 Aug 2009 02:46:06 -0000
@@ -499,7 +499,7 @@ char *argv[];
                }
 
        }
-       printf("%zu object%s flushed\n", flush.iplf_count,
+       printf("%u object%s flushed\n", flush.iplf_count,
               (flush.iplf_count == 1) ? "" : "s");
 
        return 0;


Home | Main Index | Thread Index | Old Index