NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/43376: linux32-compat failed to compile in kernel without SYSVSEM and SYSCSHM



>Number:         43376
>Category:       kern
>Synopsis:       linux32-compat failed to compile in kernel without SYSVSEM and 
>SYSCSHM
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 28 12:40:00 +0000 2010
>Originator:     Dr. Wolfgang Stukenbrock
>Release:        NetBSD 5.0.2
>Organization:
Dr. Nagler & Company GmbH
        
>Environment:
        
        
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #2: Fri Nov 6 11:14:49 CET 2009 
wgstuken@s012:/export/NetBSD-4.0/N+C-build/.OBJDIR_amd64/export/NetBSD-4.0/src/sys/arch/amd64/compile/NSW-WS
 amd64
Architecture: x86_64
Machine: amd64
>Description:
        The kernel compilation fails with "bsd_to_linux32_ipc_perm() defined 
but not used" message,
        if linux32-compat is configured but no SYSV-SHM and SYSV-SEM.
        The problems is located in the file 
/usrsrc/sys/compat/linux32/common/linux32_ipccall.c.
>How-To-Repeat:
        Setup a kernel configuration without SYSV-IPC but linux32-compat and 
try to compile it.
>Fix:
        The following patch solves the problem:

--- linux32_ipccall.c   2010/05/18 13:01:21     1.1
+++ linux32_ipccall.c   2010/05/18 15:52:46
@@ -136,6 +136,7 @@
 
 }
 
+#if defined(SYSVSEM) || defined(SYSVSHM)
 static void
 bsd_to_linux32_ipc_perm(struct ipc_perm *bpp, struct linux32_ipc_perm *lpp)
 {
@@ -183,6 +184,7 @@
        bpp->mode = lpp->l_mode;
        bpp->_seq = lpp->l_seq;
 }
+#endif
 
 #ifdef SYSVSEM
 static void

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index