Date: Sat, 21 Aug 1999 20:11:44 -0700 (PDT) From: spam@sporty.org To: freebsd-gnats-submit@freebsd.org Subject: kern/13314: can't compile when softupdates + debug. Message-ID: <19990822031144.903D2150D5@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 13314 >Category: kern >Synopsis: can't compile when softupdates + debug. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 21 20:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: spencer portee >Release: 3.2-release >Organization: sporty.org.. i never give out my real address.. >Environment: FreeBSD ying.sporty.org 3.2-STABLE FreeBSD 3.2-STABLE #6: Thu Jul 29 23:49:32 EDT 1999 root@ying.sporty.org:/usr/src/sys/compile/ying i386 >Description: system acting funny.. so tried to define DEBUG to see why its rebooting by itself.... If your config file has options SOFTUPDATES options "DEBUG=1" you'll get an error in reallockblk of ffs_alloc.c that ffs_checkblk is nto defined. it seems that the prototype for the function is #ifdef DIAGNOSTIC, yet in the reallocblk, there is a #ifdef DEBUG..#endif block that uses the ffs_checkblk() function. in other words, it is defined under the DIAGNOSTIC condition but used in both DIAGNOSTIC and DEBUG. >How-To-Repeat: add those two lines above in your options for config'ing a kernel, but exclude options "DIAGNOSTIC=1" >Fix: include options "DIAGNOSTIC=1" to config file so that the function, ffs_checkblk is defined so that the #ifdef DEBUG..endif block that contains the call to the function as the prototype is surrounded by an $ifdef DIAGNOSTIC .. endif block >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990822031144.903D2150D5>