To all your 'unresolved symbol' compiling problems...(modules ones only....)

Yi-Lei Wu iwscol@hotmail.com
Fri Apr 2 10:40:34 1999


Hi! I have read a lot of mesages about people having compiling and
unresolved symbol problems with tulip.c. Here is what i believe what the
problem is.

1. If you have upgraded your kernel, and you get a 'unresolved symbol'
message, do the following:

Go to /usr/src/
Do a 'ls -l'
Check if 'linux' is linked to the latest linux kernel source dir, e.g.
'/usr/src/linux-2.x.x'
If it's not, that is where the problem lays...then
Do 'rm linux' and then 'ln -s /usr/src/linux-2.x.x/ linux'

(I have run into the same problem after I upgrade my kernel....make sure
you recompile after you upgrade and change the 'linux' soft link...)

2. Compiling tips...

Some people told me that the compiler looks for some PCMCIA drivers
under /lib/modules/2.x.x/....' etc...
If that's so...(i have not run into this problem because i installed the
new PCMCIA driver), go to ftp://csb.stanford.edu/pub/pcmcia/ and
download the latest PCMCIA driver. It shouldn't make any harm even
though you do not have any PCMCIA device I believe....then try to
recompile

Compiling command line:
If your system is not VERY special that you MUST use the first command
line or the third, do not USE them!!
The second one, the common compiling command line, doesnt seem to work
very well. I tried to use the one provided on the tulip information page
and it works. It is "gcc -DMODVERSIONS -DMODULE -D__KERNEL__
-I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c tulip.c" and
you will get a 'tulip.o' not a 'tulip_xx.o' if you use the second
command line. You should see several messages coming out after this
command, not just plain silent and then you get a .o file.

After you get this file, move it to '/lib/modules/2.x.x/net/' and do
'depmod -a'. If you get an unresolved symbol after this, see (1).


3. Check when you reboot....

After all those, reboot, and check the messages, make sure the new tulip
driver is being used!! This is very important, if you have a '*' in your
kernel networking device configuration on the DEC Chip ethernet cards,
then all these installations are useless. Change it to 'M' or simply say
'N' and load it modularly. If you have to recompile the kernel, i
suggest you to recompile the tulip.c to make sure.....

If you miss the message (they go really fast!!), do 'dmesg | less' and
you can read as many times as you like :)

Hope this works....
Personally the tulip driver still doesnt work for me :(

Yi-Lei