Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 1998 17:52:42 +0100
From:      =?iso-8859-1?Q?Markus_D=F6hr?= <doehrm@aubi.de>
To:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   Kernel compile errors - ida.c
Message-ID:  <AB06BBFD8AFBD111B07600805FCB11922544@EXCHANGE.aubi.de>

next in thread | raw e-mail | index | archive | help
Hi all!

I'm tryin' to build a custom kernel for an installation on a Compaq ProLiant
850R. I took the driver ida.c and made things as documented. 

I took the ida.c from http://www.doc.ic.ac.uk/~md/ida/

I want to use the 3.0-kernel 'cause of the support of the netflex driver.
What can I do to solve?

Starting the compile I get the following errors:

cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith
-Winline -Wuninitialized -Wformat  -fformat-extensions -ansi  -nostdinc -I-
-I. -I../.. -I../../../include  -DKERNEL -include opt_global.h -aout
../../i386/isa/ida.c
In file included from ../../i386/isa/ida.c:27:
../../sys/ioctl.h:46: warning: #warning "Don't #include ioctl.h in the
kernel.  Include xxxio.h instead."
../../i386/isa/ida.c:275: `NIDA' undeclared here (not in a function)
../../i386/isa/ida.c:411: variable `id_bdevsw' has initializer but
incomplete type
../../i386/isa/ida.c:412: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:412: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:412: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:412: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:413: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:413: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:413: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:413: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:413: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:413: warning: excess elements in struct initializer
after `id_bdevsw'
../../i386/isa/ida.c:416: `rawread' undeclared here (not in a function)
../../i386/isa/ida.c:416: initializer element for `id_cdevsw.d_read' is not
constant
../../i386/isa/ida.c:416: `rawwrite' undeclared here (not in a function)
../../i386/isa/ida.c:416: initializer element for `id_cdevsw.d_write' is not
constant
../../i386/isa/ida.c:417: warning: initialization from incompatible pointer
type
../../i386/isa/ida.c: In function `ida_cuckoo_wdc':
../../i386/isa/ida.c:462: warning: assignment from incompatible pointer type
../../i386/isa/ida.c: At top level:
../../i386/isa/ida.c:468: `NIDA' undeclared here (not in a function)
../../i386/isa/ida.c:468: conflicting types for `idadata'
../../i386/isa/ida.c:275: previous declaration of `idadata'
../../i386/isa/ida.c: In function `ida_pci_attach':
../../i386/isa/ida.c:543: `idaintr' undeclared (first use this function)
../../i386/isa/ida.c:543: (Each undeclared identifier is reported only once
../../i386/isa/ida.c:543: for each function it appears in.)
../../i386/isa/ida.c: In function `ida_attach_drives':
../../i386/isa/ida.c:781: warning: long unsigned int format, unsigned int
arg (arg 3)
../../i386/isa/ida.c:781: warning: long unsigned int format, unsigned int
arg (arg 4)
../../i386/isa/ida.c:786: warning: long unsigned int format, unsigned int
arg (arg 2)
../../i386/isa/ida.c:786: warning: long unsigned int format, unsigned int
arg (arg 3)
../../i386/isa/ida.c:786: warning: long unsigned int format, unsigned int
arg (arg 4)
../../i386/isa/ida.c:786: warning: long unsigned int format, unsigned int
arg (arg 5)
../../i386/isa/ida.c:788: `dk_ndrive' undeclared (first use this function)
../../i386/isa/ida.c:788: `DK_NDRIVE' undeclared (first use this function)
../../i386/isa/ida.c:789: `dk_names' undeclared (first use this function)
../../i386/isa/ida.c:790: `dk_wpms' undeclared (first use this function)
../../i386/isa/ida.c: In function `idopen':
../../i386/isa/ida.c:876: warning: passing arg 4 of `dsopen' makes integer
from pointer without a cast
../../i386/isa/ida.c:876: warning: passing arg 5 of `dsopen' from
incompatible pointer type
../../i386/isa/ida.c:876: warning: passing arg 6 of `dsopen' from
incompatible pointer type
../../i386/isa/ida.c:876: warning: passing arg 7 of `dsopen' from
incompatible pointer type
../../i386/isa/ida.c:876: warning: passing arg 8 of `dsopen' from
incompatible pointer type
../../i386/isa/ida.c: In function `ida_queue_buf':
../../i386/isa/ida.c:1139: structure has no member named `b_un'
../../i386/isa/ida.c: At top level:
../../i386/isa/ida.c:1346: `idaintr' used prior to declaration
../../i386/isa/ida.c: In function `ida_poll':
../../i386/isa/ida.c:1469: warning: unsigned int format, physaddr_t arg (arg
2)
../../i386/isa/ida.c: In function `ida_empty_pci_complete_fifo':
../../i386/isa/ida.c:1529: warning: unsigned int format, u_long arg (arg 3)
../../i386/isa/ida.c: In function `ida_complete_pci_command':
../../i386/isa/ida.c:1547: warning: too few arguments for format
../../i386/isa/ida.c: In function `ida_done':
../../i386/isa/ida.c:1630: `dk_xfer' undeclared (first use this function)
../../i386/isa/ida.c:1631: `dk_seek' undeclared (first use this function)
../../i386/isa/ida.c:1632: `dk_wds' undeclared (first use this function)
../../i386/isa/ida.c: In function `id_drvinit':
../../i386/isa/ida.c:1678: warning: implicit declaration of function
`bdevsw_add'
*** Error code 1

Stop.

--
Markus Döhr                     
IT Admin                        
AUBI Baubeschläge GmbH          
Tel.: +49 6503 917 152          
Fax : +49 6503 917 119          
e-Mail: doehrm@aubi.de   
*************************       

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



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