NetBSD Problem Report #39963
From www@NetBSD.org Thu Nov 20 02:20:02 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 95A7D63BE1E
for <gnats-bugs@gnats.netbsd.org>; Thu, 20 Nov 2008 02:20:02 +0000 (UTC)
Message-Id: <20081120022002.688F263B8BD@narn.NetBSD.org>
Date: Thu, 20 Nov 2008 02:20:02 +0000 (UTC)
From: xtraeme@gmail.com
Reply-To: xtraeme@gmail.com
To: gnats-bugs@NetBSD.org
Subject: modules/compat_netbsd32: missing symbols on amd64
X-Send-Pr-Version: www-1.0
>Number: 39963
>Category: port-amd64
>Synopsis: modules/compat_netbsd32: missing symbols on amd64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-amd64-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 20 02:25:00 +0000 2008
>Closed-Date: Thu Nov 20 09:31:05 +0000 2008
>Last-Modified: Thu Nov 20 09:31:05 +0000 2008
>Originator: Juan RP
>Release: Latest
>Organization:
>Environment:
>Description:
compat_netbsd32 module gives some warnings that doesn't allow to load
the module successfully:
WARNING: linker error: symbol `dosa_register' not found
WARNING: linker error: symbol `sa_stacks1' not found
WARNING: module error: unable to affix module
Those symbols appear to be in sys/compat/sa/compat_sa.c and inside
of a KERN_SA definition.
Not sure if you (NetBSD) want SA support on it, but I added it as
quick fix.
>How-To-Repeat:
>Fix:
The following patch seems to allow to load the module and run correctly
a 32bit binary:
Index: Makefile
===================================================================
RCS file: /cvsroot/src/sys/modules/compat_netbsd32/Makefile,v
retrieving revision 1.1
diff -b -u -p -r1.1 Makefile
--- Makefile 19 Nov 2008 18:36:08 -0000 1.1
+++ Makefile 20 Nov 2008 02:13:34 -0000
@@ -7,7 +7,10 @@ KMOD= compat_netbsd32
CPPFLAGS+= -DSYSVSHM -DSYSVSEM -DSYSVIPC -DCOMPAT_NETBSD32
CPPFLAGS+= -DEXEC_ELF32 -DEXEC_ELF64 -DEXEC_AOUT
-CPPFLAGS+= -DP1003_1B_SEMAPHORE -DCOREDUMP
+CPPFLAGS+= -DP1003_1B_SEMAPHORE -DCOREDUMP -DKERN_SA
+
+.PATH: ${S}/compat/sa
+SRCS+= compat_sa.c
.PATH: ${S}/compat/netbsd32
SRCS+= netbsd32_compat_09.c netbsd32_compat_10.c
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: ad@NetBSD.org
State-Changed-When: Thu, 20 Nov 2008 09:31:05 +0000
State-Changed-Why:
fixed, thanks
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.