From owner-freebsd-questions Fri Oct 30 09:00:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00502 for freebsd-questions-outgoing; Fri, 30 Oct 1998 08:58:20 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from rossel.saarnet.de (rossel.saarnet.de [145.253.240.29]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA00422 for ; Fri, 30 Oct 1998 08:58:01 -0800 (PST) (envelope-from doehrm@aubi.de) Received: from igate.aubi.de (root@igate.aubi.de [193.24.63.232]) by rossel.saarnet.de (8.8.8/8.8.8) with ESMTP id RAA12272 for ; Fri, 30 Oct 1998 17:58:55 +0100 (MET) Received: from exchange.aubi.de ([170.56.121.91]) by igate.aubi.de (8.8.7/8.8.7) with ESMTP id TAA09164 for ; Fri, 30 Oct 1998 19:07:55 +0100 Received: by EXCHANGE.aubi.de with Internet Mail Service (5.5.2232.9) id ; Fri, 30 Oct 1998 17:53:44 +0100 Message-ID: From: =?iso-8859-1?Q?Markus_D=F6hr?= To: "'freebsd-questions@freebsd.org'" Subject: Kernel compile errors - ida.c Date: Fri, 30 Oct 1998 17:52:42 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@freebsd.org Precedence: bulk X-Loop: FreeBSD.ORG 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