Compilation error (pkgng)

2013-01-23 Thread Alie Tan
Seems this check-in causing compilation error:

http://freshbsd.org/commit/freebsd/r245828

-nonliteral -c /usr/src/usr.sbin/pkg_install/lib/pkgng.c -o pkgng.o
/usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:45: error: expected ')'
rc = snprintf(pkgngpath, sizeof(pkgngpath) %s/local.sqlite,
pkgngdir);
   ^
/usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:15: note: to match this '('
rc = snprintf(pkgngpath, sizeof(pkgngpath) %s/local.sqlite,
pkgngdir);
 ^
/usr/src/usr.sbin/pkg_install/lib/pkgng.c:54:9: warning: comparison of
integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (rc = sizeof(pkgngpath)) {
~~ ^  ~
1 warning and 1 error generated.
*** [pkgng.o] Error code 1

Stop in /usr/src/usr.sbin/pkg_install/lib.
*** [all] Error code 1

Stop in /usr/src/usr.sbin/pkg_install.
*** [all] Error code 1

Stop in /usr/src/usr.sbin.
*** [usr.sbin.all__D] Error code 1

Stop in /usr/src.
*** [everything] Error code 1

Stop in /usr/src.
*** [buildworld] Error code 1

Stop in /usr/src.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: Compilation error (pkgng)

2013-01-23 Thread Jason Evans
On Jan 23, 2013, at 12:14 AM, Alie Tan wrote:
 Seems this check-in causing compilation error:
 
 http://freshbsd.org/commit/freebsd/r245828
 
 -nonliteral -c /usr/src/usr.sbin/pkg_install/lib/pkgng.c -o pkgng.o
 /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:45: error: expected ')'
rc = snprintf(pkgngpath, sizeof(pkgngpath) %s/local.sqlite,
 pkgngdir);
   ^
 /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:15: note: to match this '('
rc = snprintf(pkgngpath, sizeof(pkgngpath) %s/local.sqlite,
 pkgngdir);
 ^
 /usr/src/usr.sbin/pkg_install/lib/pkgng.c:54:9: warning: comparison of
 integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (rc = sizeof(pkgngpath)) {
~~ ^  ~
 1 warning and 1 error generated.

Fixed by r245837.

Thanks,
Jason
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org