Skip to contentSkip to conversation

building compat-wireless-2011-04-23 fails with 2.6.38.4

DISCUSSION Andreas Hartmann 2 participants 2 messages Apr 23, 2011 – Apr 24, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 12 lines · Andreas Hartmann

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

...

Quoted 7 lines

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