Compile Issues

Having issues starting the damon, seems to think that I have a SMP kernel installed (which I don’t).

This is a very old United Linux verion.

Any clues or ideas when to look for this SMP flag that must be set somewhere?

isp0888:/etc/init.d # ./dgrp_daemon start
Starting DGRP daemons:
Daemon for id “01” ( /lib/modules/2.4.19-4GB/misc/dgrp.o: kernel-module version mismatch
/lib/modules/2.4.19-4GB/misc/dgrp.o was compiled for kernel version 2.4.19-64GB-SMP
while this kernel is version 2.4.19-4GB.
ERROR: couldn’t load driver (err: 0).


For the SMP mis-match:

cd /usr/src/linux

make clean

vi .config

Change the line with CONFIG_SMP from:

CONFIG_SMP is not set



Save and exit.

make dep

I’m not sure whether the 64GB version will cause a mis-match though. Try compiling the driver to see if it complains. If so, you could try comparing the output of

uname -a

to the information:

cat /usr/src/linux/Makefile|head

Note that the kernel version string consists of:


If VERSION, PATCHLEVEL, or SUBLEVEL are different, you’ll need to obtain the kernel source that matches your kernel. However, if only EXTRAVERSION is different:

cd /usr/src/linux

make clean

vi Makefile

Change the EXTRAVERSION to be the same as the extraversion in the kernel version string from the uname command issued earlier.

Save and exit.

make dep

Then try and recompile the driver.

Thanks very much for the help,

Since I have a non-SMP kernel I edited the .config and Makefile for correct values. Also had to the adjust the 64MB memory declaration as well.

Now running the programs gives me this unresolved symbol:

isp0888:~ # /etc/init.d/dgrp_daemon start
Starting DGRP daemons:
Daemon for id “01” ( /lib/modules/2.4.19-4GB/misc/dgrp.o: unresolved symbol tqueue_lock
ERROR: couldn’t load driver (err: 0).

You have any ideas where to go from here?

This indicates the kernel source does not match the running kernel.

I recommend contacting your Linux resources for assistance with matching up the kernel sources with the running kernel

I decided to compile a SMP kernel and the driver compiled, and started this time.

It’s been quite a while since I have done linux work (7 years) so I’m a bit rusty.

Thanks for your help.