Results 1 to 2 of 2

Thread: Help me compile Promise Drivers

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    5

    Help me compile Promise Drivers

    I got these drivers for my Fasttrak 376 Controller but I can't get it to compile. http://www.antgel.co.uk/compsci/linu...ise_raid.shtml
    I managed to fix some of the headers that are in different directories but some of the headers do not even exist anywhere in the filesystem.

    knoppix@ttyp0[par15]$ make
    fasttrak.c:40:55: /usr/src/linux-2.4.24-xfs/drivers/scsi/sd.h: No such file or directory
    fasttrak.c:42:58: /usr/src/linux-2.4.24-xfs/drivers/scsi/hosts.h: No such file or directory
    fasttrak.c:123: error: parse error before '*' token
    fasttrak.c:124: warning: function declaration isn't a prototype
    fasttrak.c: In function `ft3xx_ioctl':
    fasttrak.c:125: error: `cmd' undeclared (first use in this function)
    fasttrak.c:125: error: (Each undeclared identifier is reported only once
    fasttrak.c:125: error: for each function it appears in.)
    fasttrak.c: At top level:
    fasttrak.c:438: warning: `struct SHT' declared inside parameter list
    fasttrak.c:438: warning: its scope is only this definition or declaration, which is probably not what you want
    fasttrak.c: In function `do_ft3xx_detect':
    fasttrak.c:491: warning: implicit declaration of function `scsi_register'
    fasttrak.c:491: warning: assignment makes pointer from integer without a cast
    fasttrak.c:492: error: dereferencing pointer to incomplete type
    fasttrak.c:493: error: dereferencing pointer to incomplete type
    fasttrak.c:494: error: dereferencing pointer to incomplete type
    fasttrak.c:495: error: dereferencing pointer to incomplete type
    fasttrak.c:500: error: dereferencing pointer to incomplete type
    fasttrak.c:505: warning: assignment makes pointer from integer without a cast
    fasttrak.c:506: error: dereferencing pointer to incomplete type
    fasttrak.c:507: error: dereferencing pointer to incomplete type
    fasttrak.c:508: error: dereferencing pointer to incomplete type
    fasttrak.c: At top level:
    fasttrak.c:558: warning: `struct SHT' declared inside parameter list
    fasttrak.c: In function `ft3xx_detect':
    fasttrak.c:565: error: dereferencing pointer to incomplete type
    fasttrak.c:566: error: dereferencing pointer to incomplete type
    fasttrak.c:567: warning: passing arg 1 of `do_ft3xx_detect' from incompatible pointer type
    fasttrak.c: At top level:
    fasttrak.c:595: warning: `struct Scsi_Host' declared inside parameter list
    fasttrak.c: In function `ft3xx_release':
    fasttrak.c:603: warning: implicit declaration of function `scsi_unregister'
    fasttrak.c: At top level:
    fasttrak.c:616: error: parse error before '*' token
    fasttrak.c:616: error: parse error before '*' token
    fasttrak.c:624: error: parse error before '->' token
    fasttrak.c:625: error: parse error before numeric constant
    fasttrak.c:636: warning: type defaults to `int' in declaration of `sgpnt'
    fasttrak.c:636: error: `cmd' undeclared here (not in a function)
    fasttrak.c:636: warning: data definition has no type or storage class
    fasttrak.c:637: error: parse error before "for"
    fasttrak.c:643: warning: type defaults to `int' in declaration of `ret'
    fasttrak.c:643: error: initializer element is not constant
    fasttrak.c:643: warning: data definition has no type or storage class
    fasttrak.c:644: error: parse error before "return"
    fasttrak.c: In function `EndRequest':
    fasttrak.c:656: error: `Scsi_Cmnd' undeclared (first use in this function)
    fasttrak.c:656: error: `cmd' undeclared (first use in this function)
    fasttrak.c:656: error: parse error before ')' token
    fasttrak.c:657: error: parse error before '*' token
    fasttrak.c:657: warning: function declaration isn't a prototype
    fasttrak.c: At top level:
    fasttrak.c:675: error: parse error before '*' token
    fasttrak.c:676: warning: function declaration isn't a prototype
    fasttrak.c: In function `ft3xx_abort':
    fasttrak.c:678: error: `cmd' undeclared (first use in this function)
    fasttrak.c:679: error: `SCSI_ABORT_NOT_RUNNING' undeclared (first use in this function)
    fasttrak.c:682: error: `DID_ABORT' undeclared (first use in this function)
    fasttrak.c:686: error: `SCSI_ABORT_ERROR' undeclared (first use in this function)
    fasttrak.c:689: error: `SCSI_ABORT_SUCCESS' undeclared (first use in this function)
    fasttrak.c: At top level:
    fasttrak.c:693: error: parse error before '*' token
    fasttrak.c:694: warning: function declaration isn't a prototype
    fasttrak.c: In function `ft3xx_abort_eh':
    fasttrak.c:696: error: `cmd' undeclared (first use in this function)
    fasttrak.c:697: error: `SCSI_ABORT_NOT_RUNNING' undeclared (first use in this function)
    fasttrak.c:700: error: `DID_ABORT' undeclared (first use in this function)
    fasttrak.c:704: error: `FAILED' undeclared (first use in this function)
    fasttrak.c:707: error: `SUCCESS' undeclared (first use in this function)
    fasttrak.c: At top level:
    fasttrak.c:720: error: parse error before '*' token
    fasttrak.c:721: warning: function declaration isn't a prototype
    fasttrak.c: In function `ft3xx_reset':
    fasttrak.c:724: error: `cmd' undeclared (first use in this function)
    fasttrak.c:724: error: `DID_RESET' undeclared (first use in this function)
    fasttrak.c:728: error: `SCSI_RESET_ERROR' undeclared (first use in this function)
    fasttrak.c:731: error: `SCSI_RESET_SUCCESS' undeclared (first use in this function)
    fasttrak.c: At top level:
    fasttrak.c:735: error: parse error before '*' token
    fasttrak.c:736: warning: function declaration isn't a prototype
    fasttrak.c: In function `ft3xx_reset_eh':
    fasttrak.c:739: error: `cmd' undeclared (first use in this function)
    fasttrak.c:739: error: `DID_RESET' undeclared (first use in this function)
    fasttrak.c:743: error: `FAILED' undeclared (first use in this function)
    fasttrak.c:746: error: `SUCCESS' undeclared (first use in this function)
    fasttrak.c: At top level:
    fasttrak.c:758: error: parse error before '*' token
    fasttrak.c:759: warning: function declaration isn't a prototype
    fasttrak.c: In function `ft3xx_bios_param':
    fasttrak.c:760: error: `Geometry' undeclared (first use in this function)
    fasttrak.c:762: error: `disk' undeclared (first use in this function)
    fasttrak.c: At top level:
    fasttrak.c:796: error: parse error before "driver_template"
    fasttrak.c:796: warning: type defaults to `int' in declaration of `driver_template'
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: initialization makes integer from pointer without a cast
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: error: `ft3xx_queuecommand' undeclared here (not in a function)
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: error: field name not in record or union initializer
    fasttrak.c:796: error: (near initialization for `driver_template')
    fasttrak.c:796: warning: excess elements in scalar initializer
    fasttrak.c:796: warning: (near initialization for `driver_template')
    fasttrak.c:796: warning: data definition has no type or storage class
    fasttrak.c:797:53: /usr/src/linux/drivers/scsi/scsi_module.c: No such file or directory
    make: *** [fasttrak.o] Error 1

  2. #2
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    235
    You'll need the full kernel sources to compile the promise raid driver. The kernel headers doesn't have the directories that the driver needs to compile against. Go to www.kernel.org and download the 2.4.24 full kernel source package. You'll need to get the xfs patch from the debian archives, and patch it against the kernel source, as well as the patch klaus left in /usr/src. That will give you the exact kernel source Klaus used to compile your kernel. Make a modules directory in /usr/src and put your source code for the promise driver in there and compile with the kernel, or separately, if you prefer.

    HTH,

    Durand

    P.S.: If you're running from cd, this won't work, it has to be done from a full install only.

Similar Threads

  1. Where is kernel 2.6 source to compile Nvidia drivers?
    By pepe in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 11-09-2004, 05:30 PM
  2. Promise SATA150 TX4
    By SUOrangeman in forum Hardware & Booting
    Replies: 6
    Last Post: 10-28-2003, 05:02 PM
  3. Kernel compile problem - first Knoppix kernel compile
    By Nigel_Tufnel in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-20-2003, 01:09 PM
  4. The use of (promise) raid...
    By academic in forum General Support
    Replies: 2
    Last Post: 09-09-2003, 09:31 PM
  5. Promise FastTrak 100 Raid
    By elbe in forum Hardware & Booting
    Replies: 1
    Last Post: 03-10-2003, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Crucial MX500 1TB 2.5

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1

$102.99



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$316.61



External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac picture

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac

$19.99



External Solid State Drive USB 3.2 Gen2, 1TB SSD External Hard Drive with C to A picture

External Solid State Drive USB 3.2 Gen2, 1TB SSD External Hard Drive with C to A

$100.00



SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM picture

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM

$159.99



Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1746.47



Lenovo Legion 5 Gaming 15.1

Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070

$1469.00



Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot picture

Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot

$129.99



Western Digital 1TB 3.5

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive

$34.99



1TB Portable External Hard Drive USB 3.0 Storage Backup for PC Mac Laptop picture

1TB Portable External Hard Drive USB 3.0 Storage Backup for PC Mac Laptop

$32.99