From nobody@FreeBSD.org  Mon Nov  4 11:08:51 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DBF8F37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Nov 2002 11:08:51 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 81A5E43E3B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Nov 2002 11:08:51 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id gA4J8o7R019158
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 4 Nov 2002 11:08:50 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id gA4J8onG019157;
	Mon, 4 Nov 2002 11:08:50 -0800 (PST)
Message-Id: <200211041908.gA4J8onG019157@www.freebsd.org>
Date: Mon, 4 Nov 2002 11:08:50 -0800 (PST)
From: Attila Nagy <bra@fsn.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pcic is broken in current
X-Send-Pr-Version: www-1.0

>Number:         44884
>Category:       kern
>Synopsis:       [pccard] pcic is broken in current (build error?)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 04 11:10:01 PST 2002
>Closed-Date:    Mon Jan 10 17:42:47 MST 2005
>Last-Modified:  Mon Jan 10 17:42:47 MST 2005
>Originator:     Attila Nagy
>Release:        4.6-STABLE
>Organization:
>Environment:
FreeBSD chuck.intra 4.6-STABLE FreeBSD 4.6-STABLE #2: Thu Jul 11 15:13:00 CEST 2002     root@chuck.intra:/usr/obj/usr/src/sys/CHUCK  i386
>Description:
I'm trying to upgrade a machine from STABLE to CURRENT, according to UPDATES.
During the process, I got:

cc -c -O -pipe -march=i486 -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro
totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-ext
ensions -ansi  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/s
ys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_glo
bal.h -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreest
anding -Werror  /usr/src/sys/dev/pcic/i82365.c
/usr/src/sys/dev/pcic/i82365.c: In function `pcic_event_thread':
/usr/src/sys/dev/pcic/i82365.c:566: `DETACH_FORCE' undeclared (first use in this
 function)
/usr/src/sys/dev/pcic/i82365.c:566: (Each undeclared identifier is reported only
 once
/usr/src/sys/dev/pcic/i82365.c:566: for each function it appears in.)
/usr/src/sys/dev/pcic/i82365.c: In function `pcic_intr_socket':
/usr/src/sys/dev/pcic/i82365.c:673: `DETACH_FORCE' undeclared (first use in this
 function)
/usr/src/sys/dev/pcic/i82365.c: In function `pcic_detach_card':
/usr/src/sys/dev/pcic/i82365.c:728: too many arguments to function `CARD_DETACH_
CARD'
*** Error code 1

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

I have the following lines in GATEWAY kernel config:
# PCCARD (PCMCIA) support
# Pcmcia and cardbus bridge support
device          pcic                    # ExCA ISA and PCI bridges
device          pccard                  # PC Card (16-bit) bus

I have pcic0 on a STABLE system: <Cirrus logic 6710> at port 0x3e0 iomem 0xd0000 on isa0

>How-To-Repeat:
Comment out the pcic line in kernel config, then do a make buildworld, make buildkernel and you get the error.
>Fix:
Maybe to remove "flags" from the options of CARD_DETACH_CARD, so the i82365.c file could look like this:
                CARD_DETACH_CARD(h->dev);
?

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 17:03:31 PDT 2003 
Responsible-Changed-Why:  
Assign to pccard maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44884 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Mon Jan 10 17:42:32 MST 2005 
State-Changed-Why:  
OBE 

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