<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: Fw: Problems compiling cipe on a SMP system
From: ewheeler,AT,kaico,DOT,com
Date: Sat, 20 Jul 2002 22:44:30 +0200
In-reply-to: <12b701c22d86$6a77f830$05050505@sdmd41>

It sounds like you aren't booted off the same kernel which you are
inserting the module for.  Make sure that the kernel you are running is
the same kernel whose tree is in /usr/src/linux, and then try to rebuild
cipe.  I've never had a problem with cipe under smp before.  At least, not
under 2.4.  I don't believe I have used 2.2 kernels w/ cipe as I prefer
iptables to ipchains.

--Eric

On Wed, 17 Jul 2002, Nico Flemming wrote:

> Hi,
> 
> I didnt get any response yet. Is there no one who tried to compile cipe
> for an SMP kernel?
> 
> Regards,
> Nico Flemming
> VENTAS AG
> 
> 
> 
> 
> ----- Original Message ----- 
> From: Nico Flemming 
> To: cipe-l,AT,inka,DOT,de 
> Sent: Friday, August 09, 2002 9:43 AM
> Subject: Fw: Problems compiling cipe on a SMP system
> 
> 
> Hi,
> 
> I tried many hours, but it did not seem that the cipe package is able
> to compile the module for an SMP kernel. The configure script tells
> me that he detected an SMP system, and he created in the source
> directory a subdirectory called "2.2.16-i386-SMP-cb/" and he defines
> 
> #define __SMP__ 1
> 
> in the config.h, but while installing the Makefile puts the compiled 
> module to /lib/modules/2.2.16/misc, not /lib/modules/2.2.16-SMP/misc.
> 
> Its not a path problem, the compiled module IS obviously a none-SMP
> Module:
> 
> # cp /lib/modules/2.2.16/misc/cipcb.o /lib/modules/2.2.16-SMP/misc/.
> # insmod cipcb
> 
> Using /lib/modules/2.2.16-SMP/misc/cipcb.o                                  
>    
> /lib/modules/2.2.16-SMP/misc/cipcb.o: kernel-module version mismatch        
>    
> /lib/modules/2.2.16-SMP/misc/cipcb.o was compiled for kernel version 2.2.16 
>                                                                            
> while this kernel is version 2.2.16-SMP. 
> 
> Is there anything I forgot? Its a very strange behaviour.
> I noticed that there is no reference to the constant "___SMP___" in the 
>whole
> source. Is it possibel that cipe is NOT able to make a SMP module, or is NOT
> able to run under a SMP kernel ?
> 
> Greetings,
> Nico Flemming
> VENTAS AG
> 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: Nico Flemming 
> To: cipe-l,AT,inka,DOT,de 
> Sent: Monday, July 08, 2002 11:55 AM
> Subject: Problems compiling cipe on a SMP system
> 
> 
> Hi,
> 
> I have problem compiling the cipe kernel module for an SMP system.
> I downloaded CIPE 1.4.6 and my system is SuSE-Linux 7.0 (2.2.16-SMP).
> 
> The configure detects an smp system:
> 
> creating cache ./config.cache                                     
> checking for gcc... gcc                                           
> checking whether the C compiler (gcc  ) works... yes              
> checking whether the C compiler (gcc  ) is a cross-compiler... no 
> checking whether we are using GNU C... yes                        
> checking whether gcc accepts -g... yes                            
> checking whether gcc needs -fno-strict-aliasing... yes            
> checking how to run the C preprocessor... gcc -E                  
> checking for texinfo... no                                        
> checking for tex... no                                            
> checking for makeinfo... makeinfo                                 
> checking for kernel include tree... /usr/src/linux-2.2.16/include 
> checking for architecture... i386                                 
> checking for kernel version... 2.2.16                             
> checking for SMP... yes                                           
> checking for versioned symbols... no                              
> checking for assembler parts... bf-i386.o                         
> checking for mlock... yes                                         
> checking for mlockall... yes                                      
> updating cache ./config.cache                                     
> creating ./config.status                                          
> creating Makefile                                                 
> 
> 
> But a "make" and a "make install" creates and installs a module for 2.2.16, 
>not
> 2.2.16-SMP:
> 
> make -C 2.2.16-i386-SMP-cb WHAT=install                             
> make[1]: Entering directory `/tmp/tgz/cipe-1.4.6/2.2.16-i386-SMP-cb'
> mkdir -p /lib/modules/2.2.16/misc /usr/local/sbin                   
> install -m 644 cipcb.o /lib/modules/2.2.16/misc                     
> install -m 755 ciped-cb /usr/local/sbin                             
> depmod -a                                                           
> make[1]: Leaving directory `/tmp/tgz/cipe-1.4.6/2.2.16-i386-SMP-cb' 
> mkdir -p /usr/local/info                                            
> install -m 644 cipe.info* /usr/local/info                           
> 
> -----------------
> 
> # cp /lib/modules/2.2.16/misc/cipcb.o /lib/modules/2.2.16-SMP/misc/.
> # insmod cipcb
> 
> Using /lib/modules/2.2.16-SMP/misc/cipcb.o                                  
>    
> /lib/modules/2.2.16-SMP/misc/cipcb.o: kernel-module version mismatch        
>    
> /lib/modules/2.2.16-SMP/misc/cipcb.o was compiled for kernel version 2.2.16 
>                                                                            
> while this kernel is version 2.2.16-SMP.                                
> 
> -----------------
> 
> 
> Any help is highly appreciated...
> 
> Thanks,
> Nico Flemming
> VENTAS AG
> 

-- 

Eric Wheeler
Network Administrator
KAICO
20417 SW 70th Ave.
Tualatin, OR 97062
www.kaico.com
Voice: 503.692.5268





<< | Thread Index | >> ]    [ << | Date Index | >> ]