[elrepo] kmod-rr174x for el7

Phil Perry phil at elrepo.org
Fri Dec 26 08:42:29 EST 2014


On 25/12/14 12:58, Leon Fauster wrote:
> Hi Alan,
> 
> 
> Am 22.12.2014 um 18:20 schrieb Alan Bartlett <ajb at elrepo.org>:
>> I have spent some time attempting to build the most current version of
>> the rr174x code on RHEL7 without success. :(
>>
>> I started by putting the kmod package together only to find that it
>> failed to build. I then went back to the Adaptec site and ensured that
>> I had to latest source tarball. Extracting the contents and testing a
>> fundamental "make" showed that the code in its current format is not
>> compatible with a 3.x.y Linux kernel.
>>
>> So, unfortunately, a EL7 version of the rr174x kmod package is
>> currently a "non-starter".
> 
> 
> 
> elrepo's mantis doesn't send me a verification mail after signing up. Therefore 
> over this channel (instead http://elrepo.org/bugs/view.php?id=541):
> 
> I took a look at my EL5 workstation with a 3.2 kernel and generated 
> a patch file (not test with a 3.10 kernel):
> 
> http://pastebin.centos.org/14751/raw/    (pastboard will survive 1 month)
> 
> MD5: rr174x-linux-src-v2.4-1.1.patch = 6642a29737a71962ac20724a4f95cca7
> 
> Following process ends up with a compiled module:
> 

Hi Leon,

I applied your patch and tried building on el7, but without success:

[phil at rhel7 rr174x-linux-src-v2.4]$ cd product/rr1740pm/linux/
[phil at rhel7 linux]$ make KERNELDIR=/usr/src/kernels/3.10.0-123.el7.x86_64
make[1]: Entering directory `/usr/src/kernels/3.10.0-123.el7.x86_64'
  CC [M]
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1


740pm/linux/.build/os_linux.o
  CC [M]
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.o
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.c:
In function ‘hpt_do_disk_ioctl’:
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.c:1840:17:
warning: unused variable ‘pIdentify’ [-Wunused-variable]
  PIDENTIFY_DATA pIdentify;
                 ^
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.c:
At top level:
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.c:2118:2:
error: unknown field ‘proc_info’ specified in initializer
  proc_info:               hpt_proc_info26,
  ^
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.c:2118:2:
warning: initialization from incompatible pointer type [enabled by default]
/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.c:2118:2:
warning: (near initialization for ‘driver_template.proc_dir’) [enabled
by default]
make[2]: ***
[/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/osm_linux.o]
Error 1
make[1]: ***
[_module_/home/phil/Desktop/elrepo/el7/rr174x/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build]
Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-123.el7.x86_64'
make: *** [rr174x.ko] Error 2
[phil at rhel7 linux]$


Any suggestions how to fix?

Regards,

Phil



More information about the elrepo mailing list