Subject: linux_syscall_intern
To: None <port-powerpc@netbsd.org>
From: Andrew Cagney <cagney@mac.com>
List: port-powerpc
Date: 07/11/2002 14:48:16
Hello,

I'm trying to build a current (NetBSD/MacPPC custom) kernel but am seeing:

ld -N -Ttext 0x100000 -e __start -X -o netbsd ${SYSTEM_OBJ} vers.o
linux_exec.o: In function `linux_sys_execve':
/usr/new/sys/arch/macppc/compile/NETLUX/../../../../compat/linux/common/linux_ex
ec.c:109: undefined reference to `linux_syscall_intern'
*** Error code 1

A quick grep over the sources suggests that only the alpha and i386 
provide that function?

arch/alpha/alpha/linux_syscall.c:void   linux_syscall_intern(struct proc *);
arch/alpha/alpha/linux_syscall.c:linux_syscall_intern(struct proc *p)
arch/i386/i386/linux_syscall.c:linux_syscall_intern(p)
compat/linux/arch/alpha/linux_machdep.h:void linux_syscall_intern 
__P((struct pr
oc *));
compat/linux/arch/i386/linux_machdep.h:void linux_syscall_intern 
__P((struct pro
c *));
compat/linux/arch/mips/linux_machdep.h:void linux_syscall_intern 
__P((struct pro
c *));
compat/linux/arch/powerpc/linux_machdep.h:void linux_syscall_intern 
__P((struct
proc *));
compat/linux/common/linux_exec.c:       linux_syscall_intern,

Anyone else seeing this?  I'm guessing a generic PPC and not a Mac 
specific problem.

Wrapping the #define __HAVE_SYSCALL_INTERN found in 
arch/powerpc/include/types.h appears to make the problem go away but 
then I get:

ld -N -Ttext 0x100000 -e __start -X -o netbsd ${SYSTEM_OBJ} vers.o
kern_exec.o: In function `check_exec':
/usr/new/sys/arch/macppc/compile/NETLUX/../../../../sys/vnode_if.h:249: 
undefined reference to `syscall'

:-(

Andrew