Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 08:48:50 -0800 (PST)
From:      rsimmons@spamcop.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/25115: vinum kernel module is compiled without debug support, even though -DVINUMDEBUG is in the Makefile
Message-ID:  <200102151648.f1FGmo936518@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         25115
>Category:       kern
>Synopsis:       vinum kernel module is compiled without debug support, even though -DVINUMDEBUG is in the Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 15 08:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rob Simmons
>Release:        4.2-STABLE
>Organization:
>Environment:
FreeBSD ned 4.2-STABLE FreeBSD 4.2-STABLE #0: Thu Feb 15 10:38:52 EST 2001     rsimmons@ned:/usr/obj/usr/src/sys/NED  i386
>Description:
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.
>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.
>Fix:
The workaround is to remove the -DVINUMDEBUG option from the userland vinum program.

>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?200102151648.f1FGmo936518>