[Pkg-spca5xx-devel] Bug#416489: gspca-source: Build error on ARM
Michel Xhaard
mxhaard at magic.fr
Wed Mar 28 11:28:46 CET 2007
Le Mercredi 28 Mars 2007 12:32, Uwe Hermann a écrit :
> Package: gspca-source
> Version: 01.00.12-1
> Severity: important
>
> Hi,
>
> building the current gspca-source module on the ARM architecture fails
> because a variable name in the code contains the '$' character.
>
> It seems it builds fine on x86, but on ARM the compiler throws errors.
>
> You can test this with a tiny program such as this:
>
> int main(void)
> {
> int m$foo = 1;
> return 0;
> }
>
> Result on ARM:
>
> a.c: In function 'main':
> a.c:3: error: stray '$' in program
> a.c:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'foo'
> a.c:3: error: 'foo' undeclared (first use in this function)
> a.c:3: error: (Each undeclared identifier is reported only once
> a.c:3: error: for each function it appears in.)
>
>
> I've tried on ARM (failed) and x86 (worked fine), both times using the
> same gcc version:
>
> gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>
>
> Attached patch fixed my build problems on ARM.
>
> I suggest to forward this upstream, too. Dollar signs in variable names
> are not such a good idea, IHMO.
>
>
> HTH, Uwe.
Uwe,
Thanks for the patch, i will FIX the next revision. As a lesson, i know now M$
could be better with MS :)
regards
--
Michel Xhaard
http://mxhaard.free.fr
More information about the Pkg-spca5xx-devel
mailing list