Bug 25114

Summary: vinum kernel module is compiled without debug support, even though -DVINUMDEBUG is in the Makefile
Product: Base System Reporter: rsimmons <rsimmons>
Component: kernAssignee: Greg Lehey <grog>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description rsimmons 2001-02-15 16:50:00 UTC
After performing a cvsup/make world my vinum disk array would not come
up and it was giving me the following message: "This program is
compiled with debug support, but the kernel module does not have debug
support.  This program must be matched with the kernel module.  Please
alter /usr/src/sbin/vinum/Makefile and remove the option -DVINUMDEBUG
from the CFLAGS definition, or alternatively edit
/usr/src/sys/modules/vinum/Makefile and add the option -DVINUMDEBUG to
the CFLAGS definition.  Then rebuild the component of your choice with
'make clean all install'.  If you rebuild the kernel module, you must
stop vinum and restart it" I looked in both places and -DVINUMDEBUG
was set in both Makefiles.

I have the pseudo-device vinum set in the kernel config, so it is
statically compiled into the kernel.  To get rid of the problem, I
went to the vinum userland program and recompiled it without the
-DVINUMDEBUG option.

The real problem is that the kernel module for vinum has the
-DVINUMDEBUG option set but it is not actually being compiled with
that option, it seems like that option is being ignored.

Fix: 

The workaround is to remove the -DVINUMDEBUG option from the userland vinum program.
How-To-Repeat: 
cvsup a machine to the date in my uname above, then set the
pseudo-device vinum option in the kernel config file.  Then try to
start vinum, it will give you the error that I listed above - and if
you look in the two makefiles that it points you to, the -DVINUMDEBUG
is set in both places, so it should work but it doesn't.
Comment 1 Greg Lehey freebsd_committer freebsd_triage 2001-03-28 01:12:14 UTC
State Changed
From-To: open->closed

PR closed. 


Comment 2 Greg Lehey freebsd_committer freebsd_triage 2001-03-28 01:12:14 UTC
Responsible Changed
From-To: freebsd-bugs->grog

grog handles Vinum PRs.