lkml.org 
[lkml]   [2004]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux 2.6.3] [gcc 3.3.3] compile errors
Randy.Dunlap a écrit :

>On Sun, 22 Feb 2004 21:31:47 +0100 mjl <malet.jean-luc@laposte.net> wrote:
>
>| hello please cc me since I'm not a member
>| all my builds fails with this error
>|
>| In file included from ../include/swab.h:20,
>| from ../include/misc.h:12,
>| from io.c:21:
>| /usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
>| /usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
>
>You are using userspace headers for building the kernel.
>Maybe you have a symbolic link from linux/include/asm to the
>userspace headers. If so, Don't Do That.
>In any case, don't use userspace headers to build the kernel.
>
>
the problem is that this is a part of compile log from a userspace
program....... I builded the kernel right but can't compile some
userspace programs (such as Mplayer, linux-utils.....)
the configuration I use :
copy from /usr/src/linux/include/asm to /usr/include/asm
copy from /usr/src/linux/include/asm-generic to /usr/include/asm-generic
copy from /usr/src/linux/include/linux to /usr/include/linux

is this wrong ? I've done this all the time (since 2.4.2 kernel) without
problem..... if i'm wrong please correct my behaviour

>
>| make[1]: *** [io.o] Error 1
>| make[1]: Leaving directory `/usr/src/sorcery/reiserfsprogs-3.6.13/lib'
>| make: *** [all-recursive] Error 1
>|
>|
>| I looked into the source and the line is
>|
>|
>| static __inline__ __attribute_const__ __u16 __fswab16(__u16 x)
>| {
>|
>|
>| which don't looks bad ......
>
>
>
>--
>~Randy
>
>

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.108 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site