Ross Annetts
2013-Nov-04 01:53 UTC
[CentOS] Compiling Broadcom netxtreme2-7.6.62 drivers Xen4CentOS
Having problems compiling Broadcom netxtreme2-7.6.62 drivers using the Xen4CentOS (http://wiki.centos.org/QaWiki/Xen4) kernel: CentOS release 6.4 (Final) 3.4.61-9.el6.centos.alt.x86_64 I had to modify the Makefile's a little to get to pass the validation since it was referring to kernel 3.0 and 3.5 but not 3.4. But after doing this I still had the following problem: # make make -C bnx2/src KVER=3.4.61-9.el6.centos.alt.x86_64 PREFIXmake[1]: Entering directory `/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2-2.78.11/src' make -C /lib/modules/3.4.61-9.el6.centos.alt.x86_64/build SUBDIRS=/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2-2.78.11/src modules make[2]: Entering directory `/usr/src/kernels/3.4.61-9.el6.centos.alt.x86_64' Building modules, stage 2. MODPOST 2 modules make[2]: Leaving directory `/usr/src/kernels/3.4.61-9.el6.centos.alt.x86_64' make[1]: Leaving directory `/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2-2.78.11/src' make -C bnx2x/src KVER=3.4.61-9.el6.centos.alt.x86_64 PREFIXmake[1]: Entering directory `/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2x-1.76.54/src' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2x-1.76.54/src' [ -e bnx2/src/Module.symvers ] && cp -f bnx2/src/Module.symvers bnx2i/driver || /bin/true make -C bnx2i/driver KVER=3.4.61-9.el6.centos.alt.x86_64 PREFIXmake[1]: Entering directory `/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver' make -C /lib/modules/3.4.61-9.el6.centos.alt.x86_64/build SUBDIRS=/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver modules make[2]: Entering directory `/usr/src/kernels/3.4.61-9.el6.centos.alt.x86_64' CC [M] /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.o /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c: In function ?bnx2i_task_xmit?: /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:1377: error: dereferencing pointer to incomplete type /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:1377: error: dereferencing pointer to incomplete type /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:1377: error: dereferencing pointer to incomplete type /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:1377: error: dereferencing pointer to incomplete type /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:1377: error: dereferencing pointer to incomplete type /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:1377: error: dereferencing pointer to incomplete type /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c: At top level: /tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.c:2773: warning: initialization from incompatible pointer type make[3]: *** [/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver/bnx2i_iscsi.o] Error 1 make[2]: *** [_module_/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver] Error 2 make[2]: Leaving directory `/usr/src/kernels/3.4.61-9.el6.centos.alt.x86_64' make[1]: *** [iscsibuild] Error 2 make[1]: Leaving directory `/tmp/Server/Linux/Driver/netxtreme2-7.6.62/bnx2i-2.7.6.1d/driver' make: *** [iscsibuild] Error 2 Is there anything I can do about this? The kernel is based on: Linux Kernel 3.4.x (kernel.org long term stable kernel). I have started a thread on Broadcom forums but there has not been a response. Has anyone been able to get them working? Regards, Ross