linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem building gspca module
@ 2011-07-15  4:06 Dave Fine
  2011-07-15  6:27 ` Jean-Francois Moine
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Fine @ 2011-07-15  4:06 UTC (permalink / raw)
  To: linux-media

I'm trying to build the gspca module and insmod into my current
running system. I can compile the module, but can't insmod it.

steps I take to build:

$ cd /usr/src/linux-source-2.6.38
$ sudo cp /boot/config-2.6.38-8-generic .config
$ sudo make oldconfig
$ sudo make prepare
$ sudo make modules_prepare
$ sudo make scripts
$ sudo make SUBDIRS=drivers/media/video/gspca
$ cd drivers/media/video/gspca
$ sudo insmod gspca_main.ko
$ insmod: error inserting 'gspca_main.ko': -1 Invalid module format
$ dmesg | tail
[995219.523934] gspca_main: no symbol version for module_layout


when compiling the module, I get the following warning, which I feel
is related to problem of not being able to insmod it, but don't know
how to fix it:

  WARNING: Symbol version dump /usr/src/linux-source-2.6.38/Module.symvers
           is missing; modules will have no dependencies and modversions.


Does anyone know what I'm doing wrong?

Thanks,
Dave

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem building gspca module
  2011-07-15  4:06 Problem building gspca module Dave Fine
@ 2011-07-15  6:27 ` Jean-Francois Moine
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Francois Moine @ 2011-07-15  6:27 UTC (permalink / raw)
  Cc: linux-media

On Fri, 15 Jul 2011 00:06:54 -0400
Dave Fine <finerrecliner@gmail.com> wrote:

> I'm trying to build the gspca module and insmod into my current
> running system. I can compile the module, but can't insmod it.
> 
> steps I take to build:
> 
> $ cd /usr/src/linux-source-2.6.38
> $ sudo cp /boot/config-2.6.38-8-generic .config
> $ sudo make oldconfig
> $ sudo make prepare
> $ sudo make modules_prepare
> $ sudo make scripts
> $ sudo make SUBDIRS=drivers/media/video/gspca
> $ cd drivers/media/video/gspca
> $ sudo insmod gspca_main.ko
> $ insmod: error inserting 'gspca_main.ko': -1 Invalid module format
> $ dmesg | tail
> [995219.523934] gspca_main: no symbol version for module_layout
	[snip]
> Does anyone know what I'm doing wrong?

Hi Dave,

You must either
- generate a full kernel,
- or build the video stuff from a linuxtv git repository,
- or get and build the last gspca tarball from my web site.

In the two last cases, the linux headers of your kernel must
be installed (in Debian, these are splitted into three packages
'linux-headers-2.6.38-..' and 'linux-kbuild-2.6.38').

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-15  6:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15  4:06 Problem building gspca module Dave Fine
2011-07-15  6:27 ` Jean-Francois Moine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).