NetBSD Problem Report #19047
Received: (qmail 27084 invoked by uid 605); 14 Nov 2002 10:55:55 -0000
Message-Id: <200211141055.gAEAtrc21261@nforce.naobsd.org>
Date: Thu, 14 Nov 2002 19:55:53 +0900 (JST)
From: naoki@fukaumi.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: naoki@fukaumi.org
To: gnats-bugs@gnats.netbsd.org
Subject: sysctl can't compile on MIPS after recent compat linux changes
X-Send-Pr-Version: 3.95
>Number: 19047
>Category: kern
>Synopsis: sysctl can't compile on MIPS after recent compat linux changes
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: jdolecek
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 14 10:56:00 +0000 2002
>Closed-Date: Thu Nov 28 09:34:55 +0000 2002
>Last-Modified: Thu Nov 28 09:34:55 +0000 2002
>Originator: FUKAUMI Naoki
>Release: NetBSD 1.6K
>Organization:
FUKAUMI Naoki
>Environment:
System: NetBSD nforce.naobsd.org 1.6K NetBSD 1.6K (NFORCE) #0: Wed Nov 13 21:03:24 JST 2002 fun@nforce.naobsd.org:/usr/obj/i386/sys/arch/i386/compile/NFORCE i386
Architecture: i386
Machine: i386
>Description:
I can't compile sysctl for hpcmips with today source. common/ and
arch/mips/ linux_exec.h has duplicate #define.
Recent compat linux ELF copyargs function changes are incomplete
on MIPS port.
>How-To-Repeat:
make snapshot
>Fix:
I can compile sysctl with this patch. No test.
I don't know if it is correct for kernel.
Index: linux_exec.h
===================================================================
RCS file: /cvsroot/syssrc/sys/compat/linux/arch/mips/linux_exec.h,v
retrieving revision 1.6
diff -u -r1.6 linux_exec.h
--- linux_exec.h 2002/11/13 15:16:31 1.6
+++ linux_exec.h 2002/11/14 10:52:29
@@ -61,8 +61,6 @@
#define LINUX_ATEXIT_SIGNATURE 1
#define LINUX_GCC_SIGNATURE 1
-#define LINUX_ELF_AUX_ENTRIES 14
-
#define LINUX_ELF_AUX_ARGSIZ \
((howmany(LINUX_ELF_AUX_ENTRIES * sizeof(LinuxAuxInfo), sizeof(Elf32_Addr))))
@@ -79,18 +77,5 @@
#else
#define LinuxAuxInfo LinuxAux32Info
#endif
-
-#ifdef _KERNEL
-__BEGIN_DECLS
-#ifdef EXEC_ELF32
-int linux_elf32_copyargs __P((struct proc *, struct exec_package *,
- struct ps_strings *, char **, void *));
-#endif
-#ifdef EXEC_ELF64
-int linux_elf64_copyargs __P((struct proc *, struct exec_package *,
- struct ps_strings *, char **, void *));
-#endif
-__END_DECLS
-#endif /* _KERNEL */
#endif /* !_MIPS_LINUX_EXEC_H */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: jdolecek
State-Changed-When: Thu Nov 21 07:33:36 PST 2002
State-Changed-Why:
This should be fixed with revision 1.8 of
syssrc/sys/compat/linux/arch/mips/linux_exec.h and rev. 1.25 of
syssrc/sys/compat/linux/common/linux_exec.h
Can you confirm this?
Responsible-Changed-From-To: kern-bug-people->jdolecek
Responsible-Changed-By: jdolecek
Responsible-Changed-When: Thu Nov 21 07:34:43 PST 2002
Responsible-Changed-Why:
Broken by my changes
State-Changed-From-To: feedback->closed
State-Changed-By: jdolecek
State-Changed-When: Thu Nov 28 01:34:34 PST 2002
State-Changed-Why:
Confirmed fixed.
Thanks for report.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.