kern/150199: kernel doesn't compile with SYSVMSG and any of COMPAT_FREEBSD[456] but no COMPAT_FREEBSD7

Dan Lukes dan at obluda.cz
Wed Sep 1 19:30:03 UTC 2010


>Number:         150199
>Category:       kern
>Synopsis:       kernel doesn't compile with SYSVMSG and any of COMPAT_FREEBSD[456] but no COMPAT_FREEBSD7
>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:   Wed Sep 01 19:30:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
Obludarium
>Environment:
System: FreeBSD 8.1-RELEASE i386
src/sys/kern/sysv_msg.c,v 1.77.2.2.2.1 2010/06/14 02:09:06 kensmith


	
>Description:
Kernel doesn't compile when
SYSVMSG and any of COMPAT_FREEBSD[456] but NO COMPAT_FREEBSD7 module compiled in
because of:
/usr/src/sys/kern/sysv_msg.c:163: error: 'freebsd7_msgctl' undeclared here (not in a function)

The relevant part of code is:
#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
    defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
        SYSCALL_INIT_HELPER(msgsys),
        SYSCALL_INIT_HELPER(freebsd7_msgctl),
#endif

>How-To-Repeat:
	try to compile kernel with option set specified above
>Fix:
	I can't supply fix for now, only the workaround:
when SYSVMSG and any of COMPAT_FREEBSD[456] required then COMPAT_FREEBSD7 needs to be present also


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list