[ac] kolejny problem z okolic /usr/include/asm/byteorder.h ( kdemultimedia.spec)

Mateusz Korniak mateusz w ant.gliwice.pl
Sob, 15 Lis 2003, 14:02:45 CET


On Saturday 15 November 2003 13:21, Paweł Sikora wrote:
> On Saturday 15 of November 2003 13:04, Mateusz Korniak wrote:
> > Pakiet buduje się cześciowo w Ac natomiast w Nest, oraz na nagłówkach
> > 2.40.20-3 (u adgora) całkowicie dobrze.
> >
> > Powodem jest padający test:
> > > configure:35504: athlon-pld-linux-gcc -c -ansi -W -Wall
> > > -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes
> > > -Wwrite-strings
> > > -D_XOPEN_SOURCE=500 -D_BSD_SO\
> > > URCE -O2  -O2 -march=athlon -Wformat-security
> > > -Wmissing-format-attribute -DQT_THREAD_SUPPORT  -D_REENTRANT conftest.c
> > > >&5
> > > In file included from /usr/include/linux/cdrom.h:14,
> > >                  from conftest.c:76:
> > > /usr/include/asm/byteorder.h:38: error: parse error before "__u64"
> >
> > Przez to jest:
> > > checking for CDDA... no
> >
> > No i brak cześci plików :/
>
> sprawdz czy to pomoze, bo ja kdemultimedia

No chyba niestety: 

configure:35504: athlon-pld-linux-gcc -c -ansi -W -Wall -Wchar-subscripts 
-Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings 
-D_XOPEN_SOURCE=500 -D_BSD_SO\
URCE -O2  -O2 -march=athlon -Wformat-security -Wmissing-format-attribute  
-DQT_THREAD_SUPPORT  -D_REENTRANT conftest.c >&5
In file included from /usr/include/linux/cdrom.h:14,
                 from conftest.c:76:
/usr/include/asm/byteorder.h:38: error: parse error before "__u64"
/usr/include/asm/byteorder.h:38: error: parse error before "val"
/usr/include/asm/byteorder.h: In function `___arch__swab64':
/usr/include/asm/byteorder.h:42: error: parse error before "__u64"
/usr/include/asm/byteorder.h: At top level:
/usr/include/asm/byteorder.h:44: error: parse error before '.' token
/usr/include/asm/byteorder.h:52: error: parse error before string constant
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:65,
                 from /usr/include/linux/cdrom.h:14,
                 from conftest.c:76:

> bede dopiero chyba pojutrze kompilowal.

Powodzenia :)

> --- linux-2.4.22/include/asm-i386/types.h	2003-11-10 07:38:32.000000000
> +0200 +++ linux-2.4.22.ext/include/asm-i386/types.h	2003-11-10
> 07:48:42.000000000 +0200
> @@ -17,11 +17,15 @@
>  typedef __signed__ int __s32;
>  typedef unsigned int __u32;
>
> -#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
> -typedef __signed__ long long __s64;
> -typedef unsigned long long __u64;
> +#ifndef __GNUC__
> +# ifndef __extension__
> +#  define __extension__
> +# endif
>  #endif
>
> +__extension__ typedef __signed__ long long __s64;
> +__extension__ typedef unsigned long long __u64;
> +
>  /*
>   * These aren't exported outside the kernel to avoid name space clashes
>   */

-- 
Mateusz Korniak
"Black holes are where God divided by zero." - Steven Wright



Więcej informacji o liście dyskusyjnej pld-devel-pl