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 
>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
Dr. Nagler & Company GmbH
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #2: Fri Nov 6 11:14:49 CET 2009 
Architecture: x86_64
Machine: amd64
        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 
        Setup a kernel configuration without SYSV-IPC but linux32-compat and 
try to compile it.
        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;
 #ifdef SYSVSEM
 static void


Home | Main Index | Thread Index | Old Index