[Click] Using 2.6.13.2 kernel... fails at clickfs.o

Martin Bailon mbailon at dsci-usa.com
Mon May 15 15:47:56 EDT 2006


Hello Eddie,

	Thank you for your time.  I can now confirm that using kernel
2.6.16.13 with the supplied patch from the most current version of click
from the CVS works!  I will continue with this version and update this
thread with any new developments/bugs.

Again, thank you for your time!

Martin Bailon

-----Original Message-----
From: Eddie Kohler [mailto:kohler at cs.ucla.edu] 
Sent: Saturday, May 13, 2006 2:36 PM
To: Martin Bailon
Cc: click at amsterdam.lcs.mit.edu
Subject: Re: [Click] Using 2.6.13.2 kernel... fails at clickfs.o

Hi Martin,

It looks like you compiled with CONFIG_SECURITY turned off, and we compiled 
with CONFIG_SECURITY turned on.

I've added the necessary stuff to the patch to support !CONFIG_SECURITY and 
checked it in.  You can just apply this little patchlet on top of your 
existing patched kernel:


diff -ru ../linux-2.6.16.13/include/linux/security.h
./include/linux/security.h
--- ../linux-2.6.16.13/include/linux/security.h	2006-05-02
14:38:44.000000000 
-0700
+++ ./include/linux/security.h	2006-05-13 11:22:48.000000000 -0700
@@ -2616,7 +2616,7 @@
  static inline struct dentry *securityfs_create_dir(const char *name,
  					struct dentry *parent)
  {
-	return ERR_PTR(-ENODEV);
+	return (struct dentry *) ERR_PTR(-ENODEV);
  }

  static inline struct dentry *securityfs_create_file(const char *name,
@@ -2625,7 +2625,7 @@
  						void *data,
  						struct file_operations
*fops)
  {
-	return ERR_PTR(-ENODEV);
+	return (struct dentry *) ERR_PTR(-ENODEV);
  }

  static inline void securityfs_remove(struct dentry *dentry)


Eddie



Martin Bailon wrote:
> Hello again, 
> 
> I tried the 2.6.16.13-patch with a 2.6.16.13 kernel from kernel.org and it
> fails again.  I compile click using the following:
>  
> ./configure --enable-test --enable-analysis --enable-all-elements
> --with-linux=/usr/src/linux-2.6.16.13/
> --with-linux-map=/usr/src/linux-2.6.16.13/System.map
> 
> ... and I receive the following error: 
> 
>   CXX [M] iprw.o
> In file included from /usr/src/linux-2.6.16.13//include/net/sock.h:50,
>                  from /root/click/linuxmodule/../elements/ip/iprw.cc:36:
> /usr/src/linux-2.6.16.13//include/linux/security.h: In function `dentry*
> securityfs_create_dir(const char*, dentry*)':
> /usr/src/linux-2.6.16.13//include/linux/security.h:2619: error: invalid
> conversion from `void*' to `dentry*'
> /usr/src/linux-2.6.16.13//include/linux/security.h: In function `dentry*
> securityfs_create_file(const char*, mode_t, dentry*, void*,
> file_operations*)':
> /usr/src/linux-2.6.16.13//include/linux/security.h:2628: error: invalid
> conversion from `void*' to `dentry*'
> make[3]: *** [/root/click/linuxmodule/iprw.o] Error 1
> make[2]: *** [_module_/root/click/linuxmodule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.6.16.13'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/click/linuxmodule'
> make: *** [install] Error 1
> 
> Has anyone else encountered this? 
> 
> Thank you again!
> 
> Martin Bailon
> 
> -----Original Message-----
> From: Eddie Kohler [mailto:kohler at cs.ucla.edu] 
> Sent: Monday, May 08, 2006 9:12 PM
> To: Martin Bailon
> Cc: click at amsterdam.lcs.mit.edu
> Subject: Re: [Click] Using 2.6.13.2 kernel... fails at clickfs.o
> 
> Hi Martin,
> 
> The 2.6.13.2 patch doesn't work so well, but recently we created a  
> 2.6.16.13 patch that appears to work.  Give that a try, and let us  
> know how it goes?
> 
> Eddie
> 
> 
> On May 4, 2006, at 12:31 PM, Martin Bailon wrote:
> 
>> Hello,
>>
>> I'm trying to compile click as a linux kernel driver using the  
>> 2.6.13.2
>> kernel from kernel.org.  I patched it as the INSTALL file requires  
>> with no
>> mention of error.  When I try to compile click using:
>>
>> ./configure --enable-test --enable-analysis --enable-all-elements
>> -with-linux=/usr/src/linux-2.6.13.2/
>> --with-linux-map=/usr/src/linux-2.6.13.2/System.map
>>
>> I get the following error after a couple of minutes:
>>
>>   CXX [M] clickfs.o
>>   {standard input}: Assembler messages:
>>   {standard input}:597: Error: junk at end of line, first unrecognized
>>   character is `"'
>>   {standard input}:598: Error: unknown pseudo-op: `.text.lock.'
>>   {standard input}:651: Error: junk at end of line, first unrecognized
>>   character is `"'
>>   {standard input}:652: Error: unknown pseudo-op: `.text.lock.'
>>   make[3]: *** [/root/click/linuxmodule/clickfs.o] Error 1
>>   make[2]: *** [_module_/root/click/linuxmodule] Error 2
>>   make[2]: Leaving directory `/usr/src/linux-2.6.13.2'
>>   make[1]: *** [all] Error 2
>>   make[1]: Leaving directory `/root/click/linuxmodule'
>>   make: *** [install] Error 1
>>
>> Has anyone run into this problem? If so, is there a work around?   
>> Btw, I
>> pulled this version of click off the cvs.
>>
>> Thanks in advance...
>>
>> - Martin
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3654 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20060515/8fab840c/smime.bin


More information about the click mailing list