[Pkg-alsa-devel] Bug#591481: libasound2-dev: /usr/include/alsa/global.h:137: error: redefinition of ‘struct timeval’
John Lindgren
john.lindgren at tds.net
Tue Aug 3 13:22:59 UTC 2010
Package: libasound2-dev
Version: 1.0.23-1
Severity: normal
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’
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libasound2-dev depends on:
ii libasound2 1.0.23-1 shared library for ALSA applicatio
ii libc6-dev [libc-dev] 2.11.2-2 Embedded GNU C Library: Developmen
libasound2-dev recommends no packages.
Versions of packages libasound2-dev suggests:
pn libasound2-doc <none> (no description available)
-- no debconf information
More information about the Pkg-alsa-devel
mailing list