It seems that /lib/modules/2.6.18-164.15.1.el5/build does not exist in your system. When you install the header files, some times they may store in a different directory other than /lib/modules/......../build.
Please check the path (usually /usr/src/......) and give the relevant path during the ./configure. Thanks, Ramana Reddy. On Wed, Jul 20, 2011 at 3:12 PM, marwen marwen <[email protected]>wrote: > Think you for your reply > the problem is solved with the latest release > > but when I load openvswitch_mod.ko I have this message > > insmod: error inserting 'datapath/linux-2.6/openvswitch_mod.ko': -1 Invalid > module format > > and when I execute this command " dmesg | tail" > I have this message > > openvswitch_mod: version magic '2.6.18-238.12.1.el5 SMP mod_unload gcc-4.3' > should be '2.6.18-164.15.1.el5 SMP mod_unload gcc-4.1' > > knowing that: > > uname -r > 2.6.18-164.15.1.el5 > > and when I invoke configure like this > "./configure --with-l26=/lib/modules/`uname -r`/build" I have this error > > checking for Linux 2.6 build directory... no > configure: error: source dir /lib/modules/2.6.18-164.15.1.el5/build doesn't > exist > > Best Regards > Marouen > > 2011/7/19 Jesse Gross <[email protected]> > >> On Tue, Jul 19, 2011 at 4:48 AM, marwen marwen <[email protected]> >> wrote: >> > Hello, >> > I'm trying to compile the kernel module of openvSwitch but I have a >> problem >> > >> > CC [M] >> > >> /home/marwen/openvswitch/openvswitch-1.1.0pre2/datapath/linux-2.6/random32.o >> > >> /home/marwen/openvswitch/openvswitch-1.1.0pre2/datapath/linux-2.6/random32.c:47: >> > error: redefinition of ‘struct rnd_state’ >> > make[5]: *** >> > >> [/home/marwen/openvswitch/openvswitch-1.1.0pre2/datapath/linux-2.6/random32.o] >> > Error 1 >> > make[4]: *** >> > >> [_module_/home/marwen/openvswitch/openvswitch-1.1.0pre2/datapath/linux-2.6] >> > Error 2 >> > make[4]: Leaving directory `/usr/src/kernels/2.6.18-238.12.1.el5-x86_64' >> > make[3]: *** [default] Error 2 >> > make[3]: Leaving directory >> > `/home/marwen/openvswitch/openvswitch-1.1.0pre2/datapath/linux-2.6' >> > make[2]: *** [all-recursive] Error 1 >> > make[2]: Leaving directory >> > `/home/marwen/openvswitch/openvswitch-1.1.0pre2/datapath' >> > make[1]: *** [all-recursive] Error 1 >> > make[1]: Leaving directory >> `/home/marwen/openvswitch/openvswitch-1.1.0pre2' >> > make: *** [all] Error 2 >> > >> > I installed pkg-config 0.22, autoconf 2.64, automake 1.10 >> > Can you help me to fixe this problem >> >> Please update to the latest stable release, which has already fixed this. >> > > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss > >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
