From owner-freebsd-bugs Wed Jan 30 14:20:11 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F2A1237B404 for ; Wed, 30 Jan 2002 14:20:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0UMK0L11576; Wed, 30 Jan 2002 14:20:00 -0800 (PST) (envelope-from gnats) Received: from pele.WURLDLINK.NET (pele.WURLDLINK.NET [216.235.52.2]) by hub.freebsd.org (Postfix) with ESMTP id 7346B37B416 for ; Wed, 30 Jan 2002 14:10:14 -0800 (PST) Received: (from root@localhost) by pele.WURLDLINK.NET (8.11.6/8.11.6) id g0UMAIi93999; Wed, 30 Jan 2002 12:10:18 -1000 (HST) (envelope-from vince) Message-Id: <200201302210.g0UMAIi93999@pele.WURLDLINK.NET> Date: Wed, 30 Jan 2002 12:10:18 -1000 (HST) From: Vincent Poy Reply-To: Vincent Poy To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/34463: COMPAT_SVR4 enabled kernel fails to build in latest -CURRENT Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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