PCL-812PG: unresolved symbol comedi_done. SOLVED

The point is, where the comedi Makefile searchs for your kernel files
to install modules libraries.

I guess it extracts part of your kernel directory structure:

/usr/src/linux-<your_kernel_files>

to install its modules in:

/lib/modules/<your_kernel_files>/comedi
(newer comedi releases)

or

in /lib/modules/<your_kernel_files>/misc
(older ones)

so...

Next time to me and others... RFM, or in other words follow
the manual as close as you can.

If you donīt figure it out, here is a clue:

The INSTALL text file tells you to change your kernel name (I mean,
the internally registered name as you can see it by using 'uname -r'
in a running kernel) in the kernel Makefile:

/usr/src/linux-<your_kernel_files>/Makefile

I'll quote the paragraph where it says that:

..."
1) Get a copy of the kernel source that matches the kernel you are
        running.  Unpack it and copy your kernel config file to '.config'
        in the top directory of your kernel source.
2) You might need to edit the file 'Makefile' in the kernel source.
        At the top of the Makefile, the variable EXTRAVERSION is defined.
        If necessary, change it to match your kernel (for example, if the
command
        'uname -r' produces "2.4.16-386" then your EXTRAVERSION should be
        set as 'EXTRAVERSION=-386'.
3) Run 'make oldconfig' in your kernel source directory.
4) Run 'make dep' (or 'make prepare' for 2.6 kernels) in the kernel
        source directory and you are done.
"...

Where all went wrong...? I've left mi kernel files in their original
place:

/usr/src/linux-2.4.18-3

And also left the kernel version name as it was... or should
I say 'EXTRAVERSION=-3custom' what gives the following kernel name:

[root_at_dynamica05 root]# uname -r
2.4.18-3custom
[root_at_dynamica05 root]#

This way, the library modules are stored in:

/lib/modules/2.4.18-3custom/comedi

(Note I'm using comedi-0.7.68)

And finally, what it appear to solve the problem was making a kernel
directory structure name compliant with the kernel name:

[root_at_dynamica05 root]# cd /usr/src
[root_at_dynamica05 src]# cp -r linux-2.4.18-3 linux-2.4.18-3custom
[root_at_dynamica05 src]# rm -rfd linux
[root_at_dynamica05 src]# ls -s linux-2.4.18-3custom linux
[root_at_dynamica05 src]# cd linux
[root_at_dynamica05 linux]# make dep;make all;make modules;make
modules_install;make bzImage
[root_at_dynamica05 linux]#

And did the /boot and lilo stuff after that.

Then and only then I did comedi & commedilib installation.
(Ok, ok... did it the time when all went fine :-)

Everything seems to load flawlessly (comedilib also load fine), but...
I didn't probe any of my hardware yet.

Hopefully I'll be testing it today, and if anything go wrong sure I tell
you.

Felipe.

Received on 2004-08-16Z07:23:15