Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2002 12:10:18 -1000 (HST)
From:      Vincent Poy <vince@pele.WURLDLINK.NET>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/34463: COMPAT_SVR4 enabled kernel fails to build in latest -CURRENT
Message-ID:  <200201302210.g0UMAIi93999@pele.WURLDLINK.NET>

next in thread | raw e-mail | index | archive | help

>Number:         34463
>Category:       kern
>Synopsis:       COMPAT_SVR4 enabled kernel fails to build in latest -CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 30 14:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Vincent Poy
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Wurldlink Corporation - San Francisco - Honolulu - Hong Kong - http://www.WURLDLINK.NET
>Environment:
System: FreeBSD pele.WURLDLINK.NET 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Jan 27 20:03:42 HST 2002 vince@pele.WURLDLINK.NET:/usr/obj/usr/src/sys/PELE i386

>Description:

COMPAT_SVR4 enabled kernel fails to build in latest -CURRENT
but is fine without SVR4 enabled.  This seems to be caused by
version 1.11/1.12 of /usr/src/sys/compat/svr4/svr4_filio.c
committed by alfred a few weeks back.

Output is as follows....

touch hack.c
cc -elf -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh /usr/src/sys/conf/newvers.sh PELE
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -ansi -g -nostdinc -I-  -I.
-I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/../include  -D_KERNEL
-ffreestanding -include opt_global.h -fno-common -elf
-mpreferred-stack-boundary=2  vers.c
linking kernel.debug
svr4_filio.o: In function `svr4_fil_ioctl':
/usr/src/sys/compat/svr4/svr4_filio.c(.text+0xbd): undefined reference to
`mtx_lock'
/usr/src/sys/compat/svr4/svr4_filio.c(.text+0x118): undefined reference to
`mtx_unlock'
/usr/src/sys/compat/svr4/svr4_filio.c(.text+0x130): undefined reference to
`mtx_unlock'
/usr/src/sys/compat/svr4/svr4_filio.c(.text+0x141): undefined reference to
`mtx_unlock'
/usr/src/sys/compat/svr4/svr4_filio.c(.text+0x1ed): undefined reference to
`mtx_unlock'
*** Error code 1

Stop in /usr/obj/usr/src/sys/PELE.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
root@pele [9:08pm][/usr/src] >>

>How-To-Repeat:

have the following options in kernel config file and then try to build kernel

options         COMPAT_SVR4
options         DEBUG_SVR4
device          streams         # STREAMS network driver (required for svr4).

>Fix:

None

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201302210.g0UMAIi93999>