[Pkg-alsa-devel] Bug#591481: Bug#591481: libasound2-dev: /usr/include/alsa/global.h:137: error: redefinition of 'struct timeval'

John Simpson john at swajime.com
Fri Aug 6 19:08:16 UTC 2010


On 8/3/10, Elimar Riesebieter <riesebie at lxtec.de> wrote:
> severity 591481 minor
> tags 591481 wontfix
> thanks
>
> * John Lindgren [100803 13:32 -0400]:
>> On 08/03/2010 01:18 PM, Elimar Riesebieter wrote:
>> > * John Lindgren [100803 09:22 -0400]:
>> >
>> >> With -std=c99 and -D_BSD_SOURCE, there is a conflict between time.h and
>> >> alsa/global.h.
>> >>
>> >> #include <time.h>
>> >> #include <alsa/asoundlib.h>
>> >>
>> >> $ gcc -c -std=c99 -D_BSD_SOURCE -Wall test.c
>> >> In file included from /usr/include/alsa/asoundlib.h:44,
>> >>                  from test.c:2:
>> >> /usr/include/alsa/global.h:137: error: redefinition of ???struct
>> >> timeval???
>> >> /usr/include/alsa/global.h:142: error: redefinition of ???struct
>> >> timespec???
>> >>
>> > So what do you expect Debian Alsa maintainers can do at this point?
>> >
>> Are you telling me not to report bugs that are present in Debian, to
>> Debian, or are you honestly asking my opinion?  I suggest (1) patching
>> the conditional definition of those structures to include a check for
>> _BSD_SOURCE, (2) removing the definitions altogether, since they are not
>> necessary in Debian, or (3) forwarding the report to upstream ALSA
>> maintainers and asking them to deal with it.
>
> Are you telling me  to fix that bug, which (1) doesn't belong to the
> Debian packages and (2) you should file upstream by your self
> because (3) Debian maintainers are not the secretary of lazy users
> who want to build the Debian packages for whatever platforms or use?
>
> Wontfix
> Elimar
>
> PS.: Please let us know the bug# of the the ALSA BTS ;-)
>
Looks like it's 0004047





More information about the Pkg-alsa-devel mailing list