Date: Thu, 23 Apr 2015 11:12:41 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199641] Growfs does not compile in debugmode (GFSDBG) Message-ID: <bug-199641-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199641 Bug ID: 199641 Summary: Growfs does not compile in debugmode (GFSDBG) Product: Base System Version: 10.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: wjw@digiware.nl cd /usr/src/sbin/growfs make -DGFSDBG Returns errors while building. Probably because the debug code is normally execluded. 2* int versus u_int_32 2* char-pointer cast to uint-pointer First is fixed by changing type Second is fixed by getting the compiler to ignore the warning. Which IMHO is valid since compiling GFSDBG is only done if you sort of know what is going on..... Perhaps a suggestion on debugging on the manual page would be approriate as well. Tested on 10.1, but probably valid on others as well. svn diff: Index: sbin/growfs/Makefile =================================================================== --- sbin/growfs/Makefile (revision 281869) +++ sbin/growfs/Makefile (working copy) @@ -17,6 +17,8 @@ .if defined(GFSDBG) SRCS+= debug.c +CFLAGS+=-DFS_DEBUG +NO_WCAST_ALIGN= yes .endif DPADD= ${LIBUTIL} Index: sbin/growfs/growfs.c =================================================================== --- sbin/growfs/growfs.c (revision 281869) +++ sbin/growfs/growfs.c (working copy) @@ -161,7 +161,7 @@ #ifdef FS_DEBUG { struct csum *dbg_csp; - int dbg_csc; + u_int32_t dbg_csc; char dbg_line[80]; dbg_csp = fscs; @@ -242,7 +242,7 @@ #ifdef FS_DEBUG { struct csum *dbg_csp; - int dbg_csc; + u_int32_t dbg_csc; char dbg_line[80]; dbg_csp = fscs; -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199641-8>