Click to See Complete Forum and Search --> : Compiling Module IN Shell


Tom Hearn
10-01-2001, 05:58 PM
I'm trying to compile the tulip.c updated module for mandrake 8.0 and i keep getting this error:

error: function gcc not found

when i try to put in this code:

gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c tulip.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

I really need this to work for my nic, can someone help me out?

bwkaz
10-02-2001, 08:22 AM
Do a "which gcc". If nothing comes up, then you don't have gcc (the c/c++ compiler) installed. Get it from somewhere in the GNU archives (http://www.gnu.org/software/software.html), I would suggest version 2.95.3, but that's just me.

And if gcc is found, then do a "gcc --version". If it says 2.96.xxx, then your version of gcc itself is broken (Mandrake 8.0 installs a broken version by default, go figure). Do the same -- get 2.95.3 from the GNU archives.

Un-tar and install them as root, because they try to write to /usr/local/bin. After they are installed, get rid of the old binaries (wherever they are -- use "which") for gcc, g++, c++, cpp, etc.