Hallo Leute,
ich habe noch eine Frage zu oben genannter Karte. Ich habe die Sourcen für
die Karte bekommen. Nun ist meine (wahrscheinlich dumme) Frage. Wie kann
ih cdiese in den Kernel bringen. Nach dem Entpacken sind da folgende
Dateien:
Makefile
atapi.h
scsi_module.c
scsi_obsolete.h
ultima.c
ultima.h
ultima.o
Wenn ich make eingebe, kommt folgende Fehlermeldung (ich weiß, eine riesen
Menge, aber ich habe einfach gerade keine Ahnung, wie ich das Teil zum
Laufen kriegen soll)
workstation:/home/doertbud/downloads/aralion # make ultima.o
gcc -O2 -DMODULE -D__KERNEL__ -DCONFIG_PCI -I /usr/src/linux-2.4/include
-c -o ultima.o ultima.c
In file included from ultima.c:14:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the
compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header
files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal
and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system
header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please
do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname
-r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from /usr/include/linux/module.h:297,
from ultima.c:15:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the
compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header
files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal
and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system
header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please
do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic
link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname
-r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to
use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:35:2: #error
"======================================================="
In file included from ultima.c:15:
/usr/include/linux/module.h:299: error: parse error before "UTS_RELEASE"
ultima.c:19:50: /usr/src/linux-2.4/drivers/scsi/scsi.h: Datei oder
Verzeichnis nicht gefunden
ultima.c:20:51: /usr/src/linux-2.4/drivers/scsi/hosts.h: Datei oder
Verzeichnis nicht gefunden
In file included from ultima.c:21:
ultima.h:72: error: parse error before '*' token
ultima.h:73: warning: `struct Scsi_Host' declared inside parameter list
ultima.h:73: warning: its scope is only this definition or declaration,
which is probably not what you want
ultima.h:74: error: parse error before '*' token
ultima.h:75: error: parse error before '*' token
ultima.h:75: error: parse error before '*' token
ultima.h:76: error: parse error before '*' token
ultima.h:77: error: parse error before '*' token
ultima.h:78: error: parse error before '*' token
ultima.h:79: error: parse error before '*' token
ultima.h:80: warning: `struct Scsi_Host' declared inside parameter list
ultima.h:84: error: parse error before '*' token
ultima.c:41:41: missing binary operator before token "("
ultima.c:54: warning: `struct Scsi_Host' declared inside parameter list
ultima.c:56: warning: `struct Scsi_Host' declared inside parameter list
ultima.c:56: error: conflicting types for `print_banner'
ultima.c:54: error: previous declaration of `print_banner'
ultima.c:72: error: parse error before '*' token
ultima.c:88: error: parse error before '*' token
ultima.c:90: error: parse error before '*' token
ultima.c:94: error: parse error before '*' token
ultima.c:118: error: parse error before '*' token
ultima.c:119: error: parse error before '*' token
ultima.c:128: error: parse error before "driver_template"
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: initialization makes integer from pointer without a
cast
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: error: `ultima_queue' undeclared here (not in a function)
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: error: `DISABLE_CLUSTERING' undeclared here (not in a function)
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: error: field name not in record or union initializer
ultima.c:128: error: (near initialization for `driver_template')
ultima.c:128: warning: excess elements in scalar initializer
ultima.c:128: warning: (near initialization for `driver_template')
ultima.c:128: warning: data definition has no type or storage class
ultima.c:223: error: parse error before '*' token
ultima.c:223: warning: data definition has no type or storage class
ultima.c:265: warning: `struct Scsi_Host' declared inside parameter list
ultima.c:266: error: conflicting types for `print_banner'
ultima.c:56: error: previous declaration of `print_banner'
ultima.c: In function `print_banner':
ultima.c:270: error: dereferencing pointer to incomplete type
ultima.c: In function `aralion_pci_bios_detect':
ultima.c:334: error: structure has no member named `base_address'
ultima.c:336: error: structure has no member named `base_address'
ultima.c:338: error: structure has no member named `base_address'
ultima.c:340: error: structure has no member named `base_address'
ultima.c:342: error: structure has no member named `base_address'
ultima.c: At top level:
ultima.c:452: error: parse error before '*' token
ultima.c: In function `ultima_detect':
ultima.c:459: error: `tpnt' undeclared (first use in this function)
ultima.c:459: error: (Each undeclared identifier is reported only once
ultima.c:459: error: for each function it appears in.)
ultima.c:505: warning: assignment makes pointer from integer without a cast
ultima.c:506: error: dereferencing pointer to incomplete type
ultima.c:507: error: dereferencing pointer to incomplete type
ultima.c:508: error: dereferencing pointer to incomplete type
ultima.c: At top level:
ultima.c:532: warning: `struct Scsi_Host' declared inside parameter list
ultima.c:533: error: conflicting types for `ultima_release'
ultima.h:73: error: previous declaration of `ultima_release'
ultima.c:665: error: parse error before '*' token
ultima.c: In function `SetScatterList':
ultima.c:674: error: `SCpnt' undeclared (first use in this function)
ultima.c:681: error: `lba' undeclared (first use in this function)
ultima.c:709: error: `ReadWrite' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:859: error: parse error before '*' token
ultima.c: In function `ReadDMA':
ultima.c:866: error: `numsectors' undeclared (first use in this function)
ultima.c:867: error: `DID_ABORT' undeclared (first use in this function)
ultima.c:871: error: `SCpnt' undeclared (first use in this function)
ultima.c:873: error: `lba' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:888: error: parse error before '*' token
ultima.c: In function `WriteDMA':
ultima.c:895: error: `numsectors' undeclared (first use in this function)
ultima.c:896: error: `DID_ABORT' undeclared (first use in this function)
ultima.c:900: error: `SCpnt' undeclared (first use in this function)
ultima.c:902: error: `lba' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:1220: warning: `struct Scsi_Host' declared inside parameter list
ultima.c:1221: error: conflicting types for `ultima_info'
ultima.h:80: error: previous declaration of `ultima_info'
ultima.c:1246: error: parse error before '*' token
ultima.c: In function `init_module':
ultima.c:1252: error: request for member `module' in something not a
structure or union
ultima.c:1253: error: `MODULE_SCSI_HA' undeclared (first use in this
function)
ultima.c:1254: error: request for member `present' in something not a
structure or union
ultima.c: In function `cleanup_module':
ultima.c:1263: error: `MODULE_SCSI_HA' undeclared (first use in this
function)
ultima.c: In function `my_done':
ultima.c:1327: error: request for member `result' in something not a
structure or union
ultima.c:1328: error: request for member `scsi_done' in something not a
structure or union
ultima.c:1329: error: request for member `scsi_done' in something not a
structure or union
ultima.c: In function `CheckScsiError':
ultima.c:1351: error: `DID_PARITY' undeclared (first use in this function)
ultima.c:1353: error: `DID_ERROR' undeclared (first use in this function)
ultima.c:1355: error: `DID_NO_CONNECT' undeclared (first use in this
function)
ultima.c:1357: error: `DID_ABORT' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:1598: error: parse error before '*' token
ultima.c: In function `internal_done':
ultima.c:1600: error: `SCpnt' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:1614: error: parse error before '*' token
ultima.c:1614: error: parse error before '*' token
ultima.c:1626: error: parse error before "if"
ultima.c:1631: error: parse error before string constant
ultima.c:1631: error: conflicting types for `panic'
/usr/include/linux/kernel.h:62: error: previous declaration of `panic'
ultima.c:1631: warning: data definition has no type or storage class
ultima.c:1637: error: conflicting types for `schedule'
/usr/include/linux/sched.h:147: error: previous declaration of `schedule'
ultima.c:1637: warning: data definition has no type or storage class
ultima.c:1638: error: parse error before numeric constant
ultima.c:1644: error: redefinition of `in_command'
ultima.c:244: error: `in_command' previously defined here
ultima.c:1644: warning: data definition has no type or storage class
ultima.c:1645: error: conflicting types for `current_SC'
ultima.c:223: error: previous declaration of `current_SC'
ultima.c:1645: error: `SCpnt' undeclared here (not in a function)
ultima.c:1645: warning: data definition has no type or storage class
ultima.c:1646: error: parse error before '->' token
ultima.c:1658: error: invalid type argument of `->'
ultima.c:1658: warning: data definition has no type or storage class
ultima.c:1659: error: invalid type argument of `->'
ultima.c:1659: warning: data definition has no type or storage class
ultima.c:1660: error: invalid type argument of `->'
ultima.c:1660: warning: data definition has no type or storage class
ultima.c:1663: error: parse error before "switch"
ultima.c:1671: error: invalid initializer
ultima.c:1671: warning: data definition has no type or storage class
ultima.c:1672: error: parse error before numeric constant
ultima.c:1672: error: conflicting types for `my_done'
ultima.c:1320: error: previous declaration of `my_done'
ultima.c:1672: warning: data definition has no type or storage class
ultima.c:1682: error: redefinition of `board'
ultima.c:1658: error: `board' previously defined here
ultima.c:1682: error: invalid type argument of `->'
ultima.c:1682: warning: data definition has no type or storage class
ultima.c:1683: error: redefinition of `channel'
ultima.c:1659: error: `channel' previously defined here
ultima.c:1683: error: invalid type argument of `->'
ultima.c:1683: warning: data definition has no type or storage class
ultima.c:1684: error: redefinition of `drive'
ultima.c:1660: error: `drive' previously defined here
ultima.c:1684: error: invalid type argument of `->'
ultima.c:1684: warning: data definition has no type or storage class
ultima.c:1685: error: conflicting types for `buf'
ultima.c:1671: error: previous declaration of `buf'
ultima.c:1685: error: invalid type argument of `->'
ultima.c:1685: warning: data definition has no type or storage class
ultima.c:1686: error: parse error before '{' token
ultima.c:1690: error: initializer element is not constant
ultima.c:1693: error: parse error before numeric constant
ultima.c:1695: error: conflicting types for `buf'
ultima.c:1685: error: previous declaration of `buf'
ultima.c:1695: warning: data definition has no type or storage class
ultima.c:1699: error: parse error before '->' token
ultima.c:1707: error: parse error before "for"
ultima.c:1710: warning: initialization makes integer from pointer without
a cast
ultima.c:1710: error: initializer element is not constant
ultima.c:1710: warning: data definition has no type or storage class
ultima.c:1711: warning: data definition has no type or storage class
ultima.c:1713: error: parse error before "while"
ultima.c:1719: warning: data definition has no type or storage class
ultima.c:1720: error: parse error before "while"
ultima.c:1742: error: parse error before numeric constant
ultima.c:1742: warning: data definition has no type or storage class
ultima.c:1755: error: `lba' used prior to declaration
ultima.c:1755: error: invalid type argument of `->'
ultima.c:1756: error: invalid type argument of `->'
ultima.c:1757: error: invalid type argument of `->'
ultima.c:1757: warning: data definition has no type or storage class
ultima.c:1758: error: parse error before '&=' token
ultima.c:1763: error: redefinition of `lba'
ultima.c:1755: error: `lba' previously defined here
ultima.c:1763: error: invalid type argument of `->'
ultima.c:1764: error: invalid type argument of `->'
ultima.c:1765: error: invalid type argument of `->'
ultima.c:1766: error: invalid type argument of `->'
ultima.c:1766: warning: data definition has no type or storage class
ultima.c:1767: error: parse error before '}' token
ultima.c:1769: error: parse error before numeric constant
ultima.c:1772: error: parse error before '.' token
ultima.c:1774: error: conflicting types for `CurrentDisk'
ultima.c:238: error: previous declaration of `CurrentDisk'
ultima.c:1774: error: invalid type argument of `->'
ultima.c:1774: warning: data definition has no type or storage class
ultima.c:1776: error: parse error before "if"
ultima.c:1794: error: invalid type argument of `->'
ultima.c:1794: warning: data definition has no type or storage class
ultima.c:1796: error: conflicting types for `buf'
ultima.c:1695: error: previous declaration of `buf'
ultima.c:1796: error: invalid type argument of `->'
ultima.c:1796: warning: data definition has no type or storage class
ultima.c:1797: warning: data definition has no type or storage class
ultima.c:1799: error: parse error before "unsigned"
ultima.c:1799: error: parse error before "__u32"
ultima.c:1800: error: parse error before "unsigned"
ultima.c:1800: error: parse error before "__u32"
ultima.c:1803: error: parse error before numeric constant
ultima.c:1803: warning: data definition has no type or storage class
ultima.c:1815: error: parse error before '*' token
ultima.c: In function `FillDump':
ultima.c:1821: error: `SCpnt' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:1915: error: parse error before '*' token
ultima.c: In function `ultima_command':
ultima.c:1917: error: `SCpnt' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:1927: error: parse error before '*' token
ultima.c: In function `print_info':
ultima.c:1935: error: `SCpnt' undeclared (first use in this function)
ultima.c: At top level:
ultima.c:1955: error: parse error before '*' token
ultima.c:1960: error: parse error before '*' token
ultima.c: In function `ultima_abort':
ultima.c:1967: error: `SCSI_ABORT_NOT_RUNNING' undeclared (first use in
this function)
ultima.c:1972: error: `SCpnt' undeclared (first use in this function)
ultima.c:1975: error: invalid type argument of `->'
ultima.c:1977: error: invalid type argument of `->'
ultima.c:1977: error: `DID_ABORT' undeclared (first use in this function)
ultima.c:1985: error: `SCSI_ABORT_SUCCESS' undeclared (first use in this
function)
ultima.c: At top level:
ultima.c:1988: error: parse error before '*' token
ultima.c: In function `ultima_reset':
ultima.c:1993: error: `SCSI_RESET_WAKEUP' undeclared (first use in this
function)
ultima.c: In function `ultima_cardreset':
ultima.c:2098: error: `SCSI_RESET_WAKEUP' undeclared (first use in this
function)
ultima.c:2101:48: /usr/src/linux-2.4/drivers/scsi/sd.h: Datei oder
Verzeichnis nicht gefunden
ultima.c: At top level:
ultima.c:2103: error: parse error before '*' token
ultima.c: In function `ultima_biosparam':
ultima.c:2109: error: `dev' undeclared (first use in this function)
ultima.c:2118: error: `info_array' undeclared (first use in this function)
make: *** [ultima.o] Fehler 1