NetBSD Problem Report #16893

Received: (qmail 1515 invoked from network); 19 May 2002 08:09:50 -0000
Message-Id: <200205190810.g4J8A3T21558@grannysmith.ipv6.stack.nl>
Date: Sun, 19 May 2002 10:10:03 +0200 (CEST)
From: pino@dohd.org
Reply-To: pino@dohd.org
To: gnats-bugs@gnats.netbsd.org
Subject: COMPAT_LINUX is broken on PowerPC platforms
X-Send-Pr-Version: 3.95

>Number:         16893
>Category:       port-powerpc
>Synopsis:       COMPAT_LINUX is broken on PowerPC platforms
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    jdolecek
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 19 08:10:00 +0000 2002
>Closed-Date:    Mon May 20 06:24:49 +0000 2002
>Last-Modified:  Mon May 20 06:24:49 +0000 2002
>Originator:     
>Release:        NetBSD 1.5ZC - freshly checked out sources
>Organization:
		Eindhoven University of Technology
>Environment:
System: NetBSD grannysmith.ipv6.stack.nl 1.5ZC NetBSD 1.5ZC (GRANNYSMITH) #4: Thu May 16 09:49:28 CEST 2002 martijnb@grannysmith.ipv6.stack.nl:/usr/src/sys/arch/macppc/compile/GRANNYSMITH macppc
Architecture: powerpc
Machine: macppc
>Description:
      Enabling COMPAT_LINUX in the kernel configuration file results in a
      failed build of the kernel, due to missing symbols (Namely: 
      linux_sys_stat64, linux_sys_lstat64, linux_sys_fstat64, 
      linux_sys_gedents64 and linux_sys_fcntl64, defined in
      compat/linux/common/linux_fil64.c to my best knowledge). A quick-fix
      attempt by adding compat/linux/common/linux_file64.c to
      compat/linux/arch/powerpc/files.linux_powerpc failed due to other
      compile errors (Nonexisting members in structs, illegal definitions, 
      etc.)
>How-To-Repeat:
      add 'option  COMPAT_LINUX' to a kernel configuration file for a PowerPC
      architecture, and try to compile the kernel
>Fix:
      Unknown
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jdolecek 
State-Changed-When: Sun May 19 11:05:38 PDT 2002 
State-Changed-Why:  
I've just made necessary changes to fix this, and test-compiled with macppc 
cross-compiler (via LKM). You'd need rev. 1.16 if linux_file64.c - this one was 
committed last, so if you can get that one from anoncvs, the other should be uptodate too. 
Can you confirm this makes stuff working for you? 


Responsible-Changed-From-To: port-powerpc-maintainer->jdolecek 
Responsible-Changed-By: jdolecek 
Responsible-Changed-When: Sun May 19 11:05:38 PDT 2002 
Responsible-Changed-Why:  
I'd take care of this one. 
State-Changed-From-To: feedback->closed 
State-Changed-By: jdolecek 
State-Changed-When: Sun May 19 23:24:11 PDT 2002 
State-Changed-Why:  
Confirmed fixed. 
Thanks for report. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.