[pulseaudio-discuss] modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', ',', '; ', '}' or '__attribute__' before 'X'

2011-03-24 Thread Paul Menzel
Dear PulseAudio folks,


I get the following error with latest master (a9c8f904).

  CC libbluetooth_sbc_la-sbc.lo
In file included from modules/bluetooth/sbc/sbc_primitives_armv6.h:30:0,
 from modules/bluetooth/sbc/sbc_math.h:27,
 from modules/bluetooth/sbc/sbc.c:46:
modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', ',', 
';', '}' or '__attribute__' before 'X'
modules/bluetooth/sbc/sbc.c: In function 'sbc_synthesize_four':
modules/bluetooth/sbc/sbc.c:577:18: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:577:18: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:589:51: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c: In function 'sbc_synthesize_eight':
modules/bluetooth/sbc/sbc.c:619:29: warning: declaration of 'tmp' 
shadows a previous local [-Wshadow]
modules/bluetooth/sbc/sbc.c:619:29: warning: shadowed declaration is 
here [-Wshadow]
modules/bluetooth/sbc/sbc.c:619:29: warning: declaration of 'tmp' 
shadows a 

Re: [pulseaudio-discuss] modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', ',', '; ', '}' or '__attribute__' before 'X'

2011-03-24 Thread pl bossart
Well you are lucky to even compile, I get a bad dependency with git master.

 CCLD   libbluetooth-ipc.la
make[3]: *** No rule to make target `modules/bluetooth/sbc.c', needed by
`libbluetooth_sbc_la-sbc.lo'.  Stop.

[ume@plb pulseaudio]$ git bisect bad
e4eb4670108ad2b4a0d9c3044e12ed0d933f834e is the first bad commit
commit e4eb4670108ad2b4a0d9c3044e12ed0d933f834e
Author: Luiz Augusto von Dentz luiz.dentz-...@nokia.com
Date:   Mon Mar 14 14:46:10 2011 -0300

build: move sbc related files to its own directory

This should make it easier to apply patches from BlueZ which also uses
sbc subdir for this files.


Went back to before the sbc updates.
-Pierre
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', ',', '; ', '}' or '__attribute__' before 'X'

2011-03-24 Thread Colin Guthrie
'Twas brillig, and pl bossart at 25/03/11 00:08 did gyre and gimble:
 Well you are lucky to even compile, I get a bad dependency with git master.
 
  CCLD   libbluetooth-ipc.la http://libbluetooth-ipc.la
 make[3]: *** No rule to make target `modules/bluetooth/sbc.c', needed by
 `libbluetooth_sbc_la-sbc.lo'.  Stop.
 
 [ume@plb pulseaudio]$ git bisect bad
 e4eb4670108ad2b4a0d9c3044e12ed0d933f834e is the first bad commit
 commit e4eb4670108ad2b4a0d9c3044e12ed0d933f834e
 Author: Luiz Augusto von Dentz luiz.dentz-...@nokia.com
 mailto:luiz.dentz-...@nokia.com
 Date:   Mon Mar 14 14:46:10 2011 -0300
 
 build: move sbc related files to its own directory

 This should make it easier to apply patches from BlueZ which also uses
 sbc subdir for this files.
 
 
 Went back to before the sbc updates.

Or simply make distclean :p

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', ',', '; ', '}' or '__attribute__' before 'X'

2011-03-24 Thread Arun Raghavan
On Thu, 2011-03-24 at 23:20 +0100, Paul Menzel wrote:
 Dear PulseAudio folks,
 
 
 I get the following error with latest master (a9c8f904).
 
   CC libbluetooth_sbc_la-sbc.lo
 In file included from 
 modules/bluetooth/sbc/sbc_primitives_armv6.h:30:0,
  from modules/bluetooth/sbc/sbc_math.h:27,
  from modules/bluetooth/sbc/sbc.c:46:
 modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', 
 ',', ';', '}' or '__attribute__' before 'X'
 modules/bluetooth/sbc/sbc.c: In function 'sbc_synthesize_four':
   [...]
 modules/bluetooth/sbc/sbc.c: In function 
 'sbc_get_implementation_info':
 modules/bluetooth/sbc/sbc.c:1216:24: error: 'struct 
 sbc_encoder_state' has no member named 'implementation_info'
 modules/bluetooth/sbc/sbc.c:1217:1: warning: control reaches end of 
 non-void function [-Wreturn-type]
 make[3]: *** [libbluetooth_sbc_la-sbc.lo] Error 1
 make[3]: Leaving directory 
 `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/pulseaudio-0.9.22+git-r11.1-r0+a9c8f904b0c4a03e7bff004c103aa5910f8bea3d/git/src'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory 
 `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/pulseaudio-0.9.22+git-r11.1-r0+a9c8f904b0c4a03e7bff004c103aa5910f8bea3d/git/src'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory 
 `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/pulseaudio-0.9.22+git-r11.1-r0+a9c8f904b0c4a03e7bff004c103aa5910f8bea3d/git'
 
 I am using OpenEmbedded with `minimal` using EGLIBC or `minimal-uclibc`
 using uClibc for `MACHINE = beagleboard`.
 
 Unfortunately I do not know what syntax error is causing this.
 
 modules/bluetooth/sbc/sbc_primitives.h:41:22: error: expected ':', 
 ',', ';', '}' or '__attribute__' before 'X'

I'm guessing that you've patched sbc_math.h with my earlier patch? If
yes, looks like you need to add a

#include sbc_tables.h

in sbc_primitives.h since it depends on some defines from that file. I
guess this ends up happening in all the other instances where that file
is used. In the mean time, I'll try to unbreak my cross-compile
environment so I can test this stuff locally as well.

Cheers,
Arun

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss