Re: module loading problem

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Fri, 8 Jan 1999 02:20:12 +0000 (GMT)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please keep your line lenth to no more than 80 characters (74 is better as
it allows for a couple of levels of quoting ;)

On Wed, 6 Jan 1999 mxk@russiamail.com wrote:

[...]
> > gcc -D__KERNEL__ _DMODULE -O -Wall -I/usr/include -c xttmd.c -o xttmd.o
^ that is a '-', isn't it?
[...]
> > root@linux ~/xtt/ insmod xtt.o
> > xtt.o: unresolved symbol printk

It's right, the printk in the kernel is called "printk_Rsmp_dd132261" as
it is a versioned symbol.

You need to add -DMODVERSIONS to the CFLAGS. You should be able to force
it to be loaded with the -f flag, but that dosn't seem to be working for
me.

[...]
> > c0113580 printk_Rsmp_dd132261
<sym-> <-version-->
> > c01b85b8 sprintf_Rsmp_3c2c5af5
> > c01b81a4 vsprintf_Rsmp_13d9cea7
>

The version incodes information on the function (return type, argument
types & number ....). It's supposed to stop modules being loaded into a
kernel where the functions it uses have had there types changed.

> Hi, I am trying to write (for the first time) a device handling module
> for a new xerox printer (212/214 series) and i've come across this
> problem once i upgraded to the 2.2.0-pre series.

It's not a printer. It's a digital copier, with PC communication
option. To me a printer has either a parallel, serial or network
interface; and is already supported ;).

Bryn
- --
PGP pubkeys from http://www.gytha.demon.co.uk/pubkey.asc.
Men often believe -- or pretend -- that the "Law" is something sacred, or at
least a science -- an unfounded assumption very convenient to governments.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Comment: Silly comment here ...
Charset: noconv

iQA/AwUBNpVrYt94IUtvfSqaEQIRdwCguYhXId84NeZA0Mt2YRt6c8px08sAoOM+
H3FUeyp4wngzTqAhRW0tWQ1c
=urOW
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/