GICT knowledge base
hpt374 kernel driver will not compile on kernel 2.6
Published
You may get the following error compiling hpt374:
[root@backup4 hpt]# make
> cp -f raid.o raid.obj
> make -C /usr/src/linux SUBDIRS=`pwd` modules
> make[1]: Entering directory `/usr/src/linux-2.6.10′
> CC [M] /usr/src/hpt/hpt.o
> In file included from /usr/src/hpt/hpt.c:49:
> drivers/scsi/hosts.h:1:2: warning: #warning “This file is obsolete, please
> use instead”
> In file included from /usr/src/hpt/hpt.c:116:
> /usr/src/hpt/entry.c:1099: unknown field `abort’ specified in initializer
> /usr/src/hpt/entry.c:1099: unknown field `reset’ specified in initializer
> make[2]: *** [/usr/src/hpt/hpt.o] Error 1
> make[1]: *** [_module_/usr/src/hpt] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.10′
> make: *** [default] Error 2
To correct edit hpttempl.h and remove line 23-24. They will be labelled abourt and reset.
You may also want to change line 49 in hpt.c to
#include “/usr/src/linux/include/scsi/scsi_host.h”
to correct the obsolete error.
Related guides
GDPR Compliance for Websites: A Practical Guide for Developers
This guide breaks down GDPR compliance for websites, helping you create secure, transparent sites where privacy thrives.
MiscellaneousThe Beginner’s Guide to Understanding Object Relational Mapping (ORM)
This article provides a comprehensive overview of Object Relational Mapping (ORM), explaining what it is, how it works, and why it is important in modern software...
Miscellaneous5 Best Online tools to Compress and Optimize your Images
Here is the list of the 5 best Image optimization tools available online. Use these tools to compress your images without losing quality.
MiscellaneousHow to Boot Up Your Server on an OVH Kernel
In this tutorial, we can check how to boot up your server on an OVH Kernel. A kernel is responsible for interfacing the operating system and applications
