4 Replies Latest reply on Aug 1, 2016 11:20 PM by gemuz

    A problem with igb-5.3.2.tar.gz driver (linux kernel 2.6.5)

    gemuz

      Source: igb-5.3.2.tar.gz

      OS: Linux **** 2.6.5-7.308-smp #1 SMP Mon Dec 10 11:36:40 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux

      Log make:

      *****:~/src # *****:~/src/igb-5.3.2/src # make install

      /bin/sh: line 1: [: -ge: unary operator expected

      make -C /lib/modules/2.6.5-7.308-smp/build SUBDIRS=/root/src/igb-5.3.2/src modules

      make[1]: Entering directory `/usr/src/linux-2.6.5-7.308-obj/x86_64/smp'

      make -C ../../../linux-2.6.5-7.308 O=../linux-2.6.5-7.308-obj/x86_64/smp modules

      /bin/sh: line 1: [: -ge: unary operator expected

        CC [M]  /root/src/igb-5.3.2/src/igb_main.o

      /root/src/igb-5.3.2/src/igb_main.c: In function `igb_vf_configure':

      /root/src/igb-5.3.2/src/igb_main.c:6193: warning: implicit declaration of function `random_ether_addr'

      /root/src/igb-5.3.2/src/igb_main.c: In function `igb_poll':

      /root/src/igb-5.3.2/src/igb_main.c:7969: warning: `notype' might be used uninitialized in this function

        CC [M]  /root/src/igb-5.3.2/src/e1000_82575.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

      from /root/src/igb-5.3.2/src/e1000_82575.c:35:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/e1000_i210.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

      from /root/src/igb-5.3.2/src/e1000_i210.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/e1000_mac.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

      from /root/src/igb-5.3.2/src/e1000_mac.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/e1000_nvm.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

      from /root/src/igb-5.3.2/src/e1000_nvm.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/e1000_phy.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

                      from /root/src/igb-5.3.2/src/e1000_phy.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/e1000_manage.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

      from /root/src/igb-5.3.2/src/e1000_manage.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/igb_param.o

        CC [M]  /root/src/igb-5.3.2/src/igb_ethtool.o

        CC [M]  /root/src/igb-5.3.2/src/kcompat.o

        CC [M]  /root/src/igb-5.3.2/src/e1000_api.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

                      from /root/src/igb-5.3.2/src/e1000_api.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/e1000_mbx.o

      In file included from /root/src/igb-5.3.2/src/e1000_osdep.h:37,

      from /root/src/igb-5.3.2/src/e1000_hw.h:28,

      from /root/src/igb-5.3.2/src/e1000_api.h:28,

      from /root/src/igb-5.3.2/src/e1000_mbx.h:28,

      from /root/src/igb-5.3.2/src/e1000_mbx.c:25:

      /root/src/igb-5.3.2/src/kcompat.h: In function `__kc_udp_csum':

      /root/src/igb-5.3.2/src/kcompat.h:3429: warning: implicit declaration of function `csum_partial'

      /root/src/igb-5.3.2/src/kcompat.h:3433: warning: implicit declaration of function `csum_add'

        CC [M]  /root/src/igb-5.3.2/src/igb_vmdq.o

        CC [M]  /root/src/igb-5.3.2/src/igb_procfs.o

        CC [M]  /root/src/igb-5.3.2/src/igb_hwmon.o

        CC [M]  /root/src/igb-5.3.2/src/igb_debugfs.o

        LD [M]  /root/src/igb-5.3.2/src/igb.o

        Building modules, stage 2.

        MODPOST

      *** Warning: "random_ether_addr" [/root/src/igb-5.3.2/src/igb.ko] undefined!

        CC      /root/src/igb-5.3.2/src/igb.mod.o

        LD [M]  /root/src/igb-5.3.2/src/igb.ko

      make[1]: Leaving directory `/usr/src/linux-2.6.5-7.308-obj/x86_64/smp'

      gzip -c ../igb.7 > igb.7.gz

      # remove all old versions of the driver

      find /lib/modules/2.6.5-7.308-smp -name igb.ko -exec rm -f {} \; || true

      find /lib/modules/2.6.5-7.308-smp -name igb.ko.gz -exec rm -f {} \; || true

      install -D -m 644 igb.ko /lib/modules/2.6.5-7.308-smp/kernel/drivers/net/igb/igb.ko

      /sbin/depmod -a || true

      install -D -m 644 igb.7.gz /usr/share/man/man7/igb.7.gz

      --------------------

      modprobe igb

      FATAL: Error inserting igb (/lib/modules/2.6.5-7.308-smp/kernel/drivers/net/igb/igb.ko): Unknown symbol in module, or unknown parameter (see dmesg)

      ---------------------

      dmesg:

      igb: Unknown symbol random_ether_addr



      Maybe someone knows how to solve this problem?