LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Intel iANS module error (https://www.linuxquestions.org/questions/linux-newbie-8/intel-ians-module-error-332010/)

bretticus 06-09-2005 06:41 PM

Intel iANS module error
 
Hi,

I have built the ians module for teaming my Intel Corporation 82541GI/PI Gigabit Ethernet Controller via...

make
make install

However when i try to install it I get the following error:

# insmod ians
Using /lib/modules/2.4.29/kernel/drivers/net/ians.o
/lib/modules/2.4.29/kernel/drivers/net/ians.o: The module you are trying to load (/lib/modules/2.4.29/kernel/drivers/net/ians.o) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work

I checked via...

# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)

As you can see I have gcc version 3.3.5

The make test indicates gcc is being used as the compiler.

# make test
SMP=1
MODVERSIONS=1
ARCH=ia32
DEBUG=0
KSRC=/lib/modules/2.4.29/build
CC=gcc
KVER=2.4.29
INSTALL_ROOT=
MOD_DIR=/lib/modules/2.4.29/kernel/drivers/net
MAN_DIR=/usr/share/man
BIN_DIR=/usr/sbin
DEFINES=-DLINUX -D__KERNEL__ -DMODULE -pipe -D__SMP__ -DCONFIG_SMP -DMODVERSIONS -include /lib/modules/2.4.29/build/include/l
INCLUDES=-I/lib/modules/2.4.29/build/include -I.
OPTIMIZE_FLAGS=-O3 -fomit-frame-pointer
WARNING_FLAGS=-Wstrict-prototypes
CFLAGS=-DLINUX -D__KERNEL__ -DMODULE -pipe -D__SMP__ -DCONFIG_SMP -DMODVERSIONS -include /lib/modules/2.4.29/build/include/li/2.4.29/build/include -I. -O3 -fomit-frame-pointer -Wstrict-prototypes

Can anybody enlighten me here?

Thanks!

foo_bar_foo 06-09-2005 10:38 PM

if i remember correctly copiling modules with 2.4 series kernel involved setting a CC variable to the right gcc version.

like
export CC=gcc-3.0
or in the Makefile
CC := gcc-3.0

this was way different from the version magic way of doing it now

bretticus 06-11-2005 01:14 AM

Many thanks foo_bar_foo.

I got excited for a moment and I tried editing my MakeFile by inserting 'CC =: gcc-3.3'. However, i still get the version 2 error. Very strange!

Also, I tried export CC=gcc-3.3, same thing. Hmmm...

The README file lists the following...
Quote:

August 6, 2002


Contents
========

- Overview
- Installing and Configuring ANS
- Available Commands
- Structure of the ANS Build Tree
- Example Setup
- Troubleshooting
- Support


Overview
========

This file describes the Intel(R) Advanced Network Services (ANS) package,
version 1.7.65, for Linux* systems. Intel ANS provides both teaming
(including Multi-Vendor Teaming), and IEEE VLAN capabilities. For ANS
support, this package version must be used with the Linux base driver version
2.1.x through 2.1.15 for PRO/100 adapters and/or driver version 4.3.x through
4.3.15 for PRO/1000 adapters.

This package is intended for 2.2.x and 2.4.x kernels; it was tested primarily
on the Red Hat* 7.3 Linux 2.4.18 kernel on SMP Intel processor-based systems.
This package includes support for Itanium(TM)-based systems.

NOTE: This driver version contains the final development set for 2.2.x
kernels through 2.2.20. Development will continue for 2.4.x kernels and
future production kernels.
This is kinda old source (don't believe I saw anything newer at Intel's site though.) I am using Debian and a 2.4 kernel to boot (no pun intended.)

Any ideas?

bretticus 06-11-2005 01:20 AM

Okay, I did find a MUCH newer driver :rolleyes: Version iANS-3.4.3a. I'll give that a whirl :D

bretticus 06-13-2005 03:14 PM

OK, the newer source did the trick (surprise!) Thanks again foo_bar_foo.

Brett


All times are GMT -5. The time now is 08:24 PM.