From ust@cert.siemens.de  Mon Sep 30 10:07:48 2002
Return-Path: <ust@cert.siemens.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 4C2AD37B401; Mon, 30 Sep 2002 10:07:48 -0700 (PDT)
Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id D2DD943E7B; Mon, 30 Sep 2002 10:07:46 -0700 (PDT)
	(envelope-from ust@cert.siemens.de)
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
	by goliath.siemens.de (8.11.6/8.11.6) with ESMTP id g8UH7jM17789;
	Mon, 30 Sep 2002 19:07:45 +0200 (MEST)
Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17])
	by mail2.siemens.de (8.11.6/8.11.6) with ESMTP id g8UH7j818388;
	Mon, 30 Sep 2002 19:07:45 +0200 (MEST)
Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [139.23.202.134])
	by mars.cert.siemens.de (8.12.6/8.12.6/Siemens CERT [ $Revision: 1.25 ]) with ESMTP id g8UH7jer065574;
	Mon, 30 Sep 2002 19:07:45 +0200 (CEST)
	(envelope-from ust@alaska.cert.siemens.de)
Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [127.0.0.1])
	by alaska.cert.siemens.de (8.12.6/8.12.6/alaska [ $Revision: 1.14 ]) with ESMTP id g8UH7jhd000207;
	Mon, 30 Sep 2002 19:07:45 +0200 (CEST)
	(envelope-from ust@alaska.cert.siemens.de)
Received: (from ust@localhost)
	by alaska.cert.siemens.de (8.12.6/8.12.6/alaska [ $Revision: 1.3 ]) id g8UH7jSY076676;
	Mon, 30 Sep 2002 19:07:45 +0200 (CEST)
	(envelope-from ust)
Message-Id: <200209301707.g8UH7jSY076676@alaska.cert.siemens.de>
Date: Mon, 30 Sep 2002 19:07:45 +0200 (CEST)
From: Udo Schweigert <ust@cert.siemens.de>
Reply-To: Udo Schweigert <ust@cert.siemens.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: peter@freebsd.org
Subject: release building fails in sys/boot/i386/kgzldr
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43534
>Category:       i386
>Synopsis:       release building fails in sys/boot/i386/kgzldr
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 30 10:10:04 PDT 2002
>Closed-Date:    Tue Oct 01 00:30:56 PDT 2002
>Last-Modified:  Tue Oct 01 00:30:56 PDT 2002
>Originator:     Udo Schweigert
>Release:        FreeBSD 4.7-RC i386
>Organization:
>Environment:

FreeBSD illinois.cert.siemens.de 5.0-CURRENT FreeBSD 5.0-CURRENT #169: Mon Sep 30 12:49:17 CEST 2002     ust@illinois.cert.siemens.de:/usr/obj/usr/src/sys/illinois  i386

	
>Description:

The last change to /sys/boot/i386 results in non-buildable releases. In the 
release building process the following error occurs (when trying to make
the boot-floppy):

/usr/lib/kgzldr.o: In function `sio_putchr':
/usr/lib/kgzldr.o(.text+0x148e): undefined reference to `SIOPRT'

>How-To-Repeat:

Build a release on -current.

>Fix:

Apply this patch:
(It might be that the boot floppy is then too large, I tested with a
non-standard driver config, also at the moment the fixit floppy doesn't fit)

--- src/sys/boot/i386/kgzldr/Makefile.orig	Thu Sep 19 13:08:29 2002
+++ src/sys/boot/i386/kgzldr/Makefile	Mon Sep 30 13:55:55 2002
@@ -13,7 +13,7 @@
 CLEANFILES=${FILES}
 
 BOOT_COMCONSOLE_PORT?=	0x3f8
-M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}
+AFLAGS+=--defsym SIOPRT=${BOOT_COMCONSOLE_PORT}
 
 kgzldr.o: ${OBJS}
 	${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Tue Oct 1 00:30:26 PDT 2002 
State-Changed-Why:  
Closed at submitters request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43534 
>Unformatted:
