System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Building latest hp-netxtreme2 srpm for SLES11SP2 (KERNEL PATCH 3.0.58-0.6.6) Building fails

 
New Member

Building latest hp-netxtreme2 srpm for SLES11SP2 (KERNEL PATCH 3.0.58-0.6.6) Building fails

#uname -a
Linux locahost 3.0.58-0.6.6-default #1 SMP Tue Feb 19 11:07:00 UTC 2013 (1576ecd) x86_64 x86_64 x86_64 GNU/Linux

 

 #rpmbuild -bb /usr/src/packages/SPECS/hp-netxtreme2.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.66939
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf hp-netxtreme2-7.4.25
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/hp-netxtreme2-7.4.25.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root         0 2012-11-26 13:43 hp-netxtreme2-7.4.25/
drwxr-xr-x root/root         0 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/
-rw-r--r-- root/root     17927 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/README.TXT
-rw-r--r-- root/root    462377 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/RELEASE.TXT
-rw-r--r-- root/root     15153 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/LICENSE
drwxr-xr-x root/root         0 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/
-rw-r--r-- root/root     90773 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_self_test.c
-rw-r--r-- root/root     45044 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_cmn.h
-rw-r--r-- root/root     16262 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_fw_defs.h
-rw-r--r-- root/root     42150 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_dump.h
-rw-r--r-- root/root    182746 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_hsi.h
-rw-r--r-- root/root    449040 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_main.c
-rw-r--r-- root/root     46985 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_compat.h
-rw-r--r-- root/root    965115 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_init_values_e1h.c
-rw-r--r-- root/root     37027 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_57712_int_offsets.h
-rw-r--r-- root/root     17549 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_link.h
-rw-r--r-- root/root      1265 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_fw_file_hdr.h
-rw-r--r-- root/root     90856 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_dcb.c
-rw-r--r-- root/root     26977 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_init_ops.h
-rw-r--r-- root/root     95153 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_ethtool.c
-rw-r--r-- root/root     37027 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_57710_int_offsets.h
-rw-r--r-- root/root    920845 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_init_values_e1.c
-rw-r--r-- root/root    149672 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_cmn.c
-rw-r--r-- root/root     12968 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_vfpf.h
-rw-r--r-- root/root     15969 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_stats.h
-rw-r--r-- root/root    164395 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_sp.c
-rw-r--r-- root/root      5631 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/Makefile
-rw-r--r-- root/root     96039 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_sriov.c
-rw-r--r-- root/root   1709953 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_init_values_e2.c
-rw-r--r-- root/root    402093 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_link.c
-rw-r--r-- root/root    276533 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_reg.h
-rw-r--r-- root/root     85804 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x.h
-rw-r--r-- root/root     63460 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_stats.c
-rw-r--r-- root/root     30536 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_vfpf.c
-rw-r--r-- root/root     37028 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_57711_int_offsets.h
-rw-r--r-- root/root      8703 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_dcb.h
-rw-r--r-- root/root     36313 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_sp.h
-rw-r--r-- root/root     13830 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x.4
-rw-r--r-- root/root     23004 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_init.h
-rw-r--r-- root/root      6403 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_mfw_req.h
-rw-r--r-- root/root     24867 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2x-1.74.20/src/bnx2x_sriov.h
lrwxrwxrwx root/root         0 2012-11-26 13:48 hp-netxtreme2-7.4.25/bnx2x -> bnx2x-1.74.20
lrwxrwxrwx root/root         0 2012-11-26 13:48 hp-netxtreme2-7.4.25/bnx2 -> bnx2-2.74.20
-rw-r--r-- root/root       399 2012-11-26 13:43 hp-netxtreme2-7.4.25/Makefile
drwxr-xr-x root/root         0 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/
-rw-r--r-- root/root     71734 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/ChangeLog-cnic
-rw-r--r-- root/root     12413 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/README.TXT
-rw-r--r-- root/root    179143 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/RELEASE.TXT
-rw-r--r-- root/root     15153 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/LICENSE
drwxr-xr-x root/root         0 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/
-rw-r--r-- root/root      7249 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/57xx_iscsi_constants.h
-rw-r--r-- root/root    368788 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/bnx2.h
-rw-r--r-- root/root     10889 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/bnx2fc_constants.h
-rw-r--r-- root/root    198562 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/cnic.c
-rw-r--r-- root/root    173250 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/cnic_defs.h
-rw-r--r-- root/root    376939 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/bnx2_fw2.h
-rw-r--r-- root/root     10829 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/cnic_if.h
-rw-r--r-- root/root     37291 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/57xx_iscsi_hsi.h
-rwxr--r-x root/root      6803 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/Makefile
-rw-r--r-- root/root    312957 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/bnx2_fw.h
-rw-r--r-- root/root     20286 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/cnic.h
-rw-r--r-- root/root    316107 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/bnx2.c
-rw-r--r-- root/root      4886 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/src/bnx2.4
-rw-r--r-- root/root    445577 2012-11-26 13:43 hp-netxtreme2-7.4.25/bnx2-2.74.20/ChangeLog
-rw-r--r-- root/root      8253 2012-11-26 13:43 hp-netxtreme2-7.4.25/INSTALL.TXT
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd hp-netxtreme2-7.4.25
++ /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 .
+ set -- INSTALL.TXT Makefile bnx2 bnx2-2.74.20 bnx2x bnx2x-1.74.20
+ mkdir source
+ mv INSTALL.TXT Makefile bnx2 bnx2-2.74.20 bnx2x bnx2x-1.74.20 source/
+ cp -f source/bnx2/README.TXT source/README.bnx2.TXT
+ cp -f source/bnx2x/README.TXT source/README.bnx2x.TXT
+ cp -f source/bnx2/RELEASE.TXT source/RELEASE.bnx2.TXT
+ cp -f source/bnx2x/RELEASE.TXT source/RELEASE.bnx2x.TXT
+ mkdir obj
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.66939
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /var/tmp/hp-netxtreme2-buildroot
++ dirname /var/tmp/hp-netxtreme2-buildroot
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/hp-netxtreme2-buildroot
+ cd hp-netxtreme2-7.4.25
+ export KVER=3.0.58-0.6.6
+ KVER=3.0.58-0.6.6
+ export KABIRPM=1
+ KABIRPM=1
+ export 'EXTRA_CFLAGS=-DVERSION=\"7.4.25\"'
+ EXTRA_CFLAGS='-DVERSION=\"7.4.25\"'
+ for flavor in default trace xen
+ rm -rf obj/default
+ cp -r source obj/default
+ export LINUXsrc=/usr/src/linux-obj/x86_64/default
+ LINUXsrc=/usr/src/linux-obj/x86_64/default
+ '[' suse == redhat ']'
+ '[' suse == suse ']'
+ kernel_flavor=3.0.58-0.6.6-default
+ make -C obj/default KVER=3.0.58-0.6.6-default
make: Entering directory `/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default'
make -C bnx2/src  KVER=3.0.58-0.6.6-default PREFIX=
make[1]: Entering directory `/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src'
make -C /lib/modules/3.0.58-0.6.6-default/build SUBDIRS=/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src modules
make[2]: Entering directory `/usr/src/linux-3.0.58-0.6.6-obj/x86_64/default'
make -C ../../../linux-3.0.58-0.6.6 O=/usr/src/linux-3.0.58-0.6.6-obj/x86_64/default/. modules
  CC [M]  /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src/bnx2.o
  CC [M]  /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src/cnic.o
  Building modules, stage 2.
  MODPOST 2 modules
  CC      /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src/bnx2.mod.o
  LD [M]  /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src/bnx2.ko
  CC      /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src/cnic.mod.o
  LD [M]  /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src/cnic.ko
make[2]: Leaving directory `/usr/src/linux-3.0.58-0.6.6-obj/x86_64/default'
make[1]: Leaving directory `/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2-2.74.20/src'
make -C bnx2x/src KVER=3.0.58-0.6.6-default PREFIX=
make[1]: Entering directory `/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src'
make -C /lib/modules/3.0.58-0.6.6-default/build M=`pwd` modules
make[2]: Entering directory `/usr/src/linux-3.0.58-0.6.6-obj/x86_64/default'
make -C ../../../linux-3.0.58-0.6.6 O=/usr/src/linux-3.0.58-0.6.6-obj/x86_64/default/. modules
  CC [M]  /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src/bnx2x_main.o
In file included from /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src/bnx2x.h:41,
                 from /usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src/bnx2x_main.c:92:
/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src/bnx2x_compat.h:1689: error: static declaration of ‘netif_get_num_default_rss_queues’ follows non-static declaration
/usr/src/linux-3.0.58-0.6.6/include/linux/netdevice.h:2056: error: previous declaration of ‘netif_get_num_default_rss_queues’ was here
make[5]: *** [/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src/bnx2x_main.o] Error 1
make[4]: *** [_module_/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/linux-3.0.58-0.6.6-obj/x86_64/default'
make[1]: *** [bnx2x.o] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default/bnx2x-1.74.20/src'
make: *** [default] Error 2
make: Leaving directory `/usr/src/packages/BUILD/hp-netxtreme2-7.4.25/obj/default'
error: Bad exit status from /var/tmp/rpm-tmp.66939 (%build)