ProLiant Servers (ML,DL,SL)
Showing results for 
Search instead for 
Did you mean: 

HP 10 gig NC510F driver problem

Occasional Contributor

HP 10 gig NC510F driver problem

I am attempting to get the drivers for an HP nic, NC510F to compile on my DL360 G5. I performed a fresh install of Redhat Enterprise linux 5. This OS is listed as supported by the driver notes for the nic card.
After the os is installed I make sure that I have gcc, kernel-devel, and rpm-build installed.
Next I install the nx_nic-3.4.263-5.src.rpm but it fails with the following error.
[root@ip-96-166 ~]# rpm -ivh nx_nic-3.4.263-5.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES

So, I mkdir /usr/src/redhat/SOURCES. After that the rpm installed fine.

I follow the next step in the install docs, goto to /usr/src/redhat and then rpmbuild -bb SPECS/nx_nic-3.4.263.spec.

That shows me the following error

[root@ip-96-166 redhat]# rpmbuild -bb SPECS/nx_nic-3.4.263.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.28869
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf nx_nic-3.4.263
+ /bin/gzip -dc /usr/src/redhat/SOURCES/nx_nic-3.4.263.tar.gz
+ tar -xf -
+ '[' 0 -ne 0 ']'
+ cd nx_nic-3.4.263
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.28869
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nx_nic-3.4.263
+ make rpm_build=1
set -e; \
if [ -d pegnet ]; then \
make -C /lib/modules/2.6.18-53.el5PAE/source SUBDIRS=`pwd` ; \
else \
cd driver; make -C /lib/modules/2.6.18-53.el5PAE/source SUBDIRS=/usr/src/redhat/BUILD/nx_nic-3.4.263/driver modules ; \
make: *** /lib/modules/2.6.18-53.el5PAE/source: No such file or directory. Stop.
make: *** [driver] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.28869 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.28869 (%build)

This is where I am stuck. I'm not familiar enough with make to fix this myself. I believe I have hardware/software that is all supported by HP. I tried posting this in the networking/linux section of the site but I haven't seen any responses for a couple days. I was hoping that someone here might know what todo.