2011-04-23 22:27:22

by Andreas Hartmann

[permalink] [raw]
Subject: building compat-wireless-2011-04-23 fails with 2.6.38.4

Hello,

I got the following erros compiling compat-wireless-2011-04-23:

CC [M] /Downloads/compat-wireless-2011-04-23/compat/main.o
In file included from
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.h:34:0,from
<command-line>:0:
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:103:32:
error: redefinition of ?kstrtoul?
/usr/src/linux-2.6.38.4-1/include/linux/kernel.h:197:32: note: previous
definition of ?kstrtoul? was here
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:116:32:
error: redefinition of ?kstrtol?
/usr/src/linux-2.6.38.4-1/include/linux/kernel.h:210:32: note: previous
definition of ?kstrtol? was here
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:132:32:
error: redefinition of ?kstrtou64?
/usr/src/linux-2.6.38.4-1/include/linux/kernel.h:226:32: note: previous
definition of ?kstrtou64? was here
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:137:32:
error: redefinition of ?kstrtos64?
/usr/src/linux-2.6.38.4-1/include/linux/kernel.h:231:32: note: previous
definition of ?kstrtos64? was here
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:142:32:
error: redefinition of ?kstrtou32?
/usr/src/linux-2.6.38.4-1/include/linux/kernel.h:236:32: note: previous
definition of ?kstrtou32? was here
/Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:147:32:
error: redefinition of ?kstrtos32?
/usr/src/linux-2.6.38.4-1/include/linux/kernel.h:241:32: note: previous
definition of ?kstrtos32? was here
make[5]: *** [/Downloads/compat-wireless-2011-04-23/compat/main.o] Fehler 1
make[4]: *** [/Downloads/compat-wireless-2011-04-23/compat] Fehler 2


Could you please take a look at this problem?


Thank you,
Andreas


2011-04-24 00:30:04

by Hauke Mehrtens

[permalink] [raw]
Subject: Re: building compat-wireless-2011-04-23 fails with 2.6.38.4

On 04/24/2011 12:29 AM, Andreas Hartmann wrote:
> Hello,
>
> I got the following erros compiling compat-wireless-2011-04-23:
>
> CC [M] /Downloads/compat-wireless-2011-04-23/compat/main.o
> In file included from
> /Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.h:34:0,from
> <command-line>:0:
> /Downloads/compat-wireless-2011-04-23/include/linux/compat-2.6.39.h:103:32:
> error: redefinition of ?kstrtoul?
> /usr/src/linux-2.6.38.4-1/include/linux/kernel.h:197:32: note: previous
> definition of ?kstrtoul? was here
...
>
>
> Could you please take a look at this problem?
>
>
> Thank you,
> Andreas

Hi Andreas,

in kernel 2.6.38.4 kstrto* was integrated into it, but compat-wireless
assumes that it is not there, because kernel <= 2.6.38.3 do not have it.
This should be fixed in compat-wireless, but there are some people with
older versions of the 2.6.38 kernel series out there like the users of
Ubuntu Natty 11.04. It will result in many bug reports if
compat-wireless does not work with the recent Ubuntu version. I will try
to find a solution to make it work with all versions of 2.6.38 tomorrow.

Hauke