NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/39963: modules/compat_netbsd32: missing symbols on amd64



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 20 02:25:00 +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



Home | Main Index | Thread Index | Old Index