[Regression] error when trying to compile a program which uses alsa/asoundlib.h with EGLIBC 2.17
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alsa-lib (Fedora) |
Fix Released
|
Undecided
|
|||
alsa-lib (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
Firstly, thank you for maintaining and packaging this complex project!
I'm not sure that this bug is due to libc6 but with the latest version (and not with the previous one: I just downgraded to the previous version and I don't have this problem with it) I'm no longer able to compile a Cairo-Dock's plugin which includes <alsa/asoundlib.h>.
Here is the error:
=================
$ env LANG=C make VERBOSE=1
/usr/bin/cc -DCAIRO_
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
make[2]: *** [alsaMixer/
make[2]: Leaving directory `/opt/cairo-
make[1]: *** [alsaMixer/
make[1]: Leaving directory `/opt/cairo-
make: *** [all] Error 2
=================
It seems that 'u_intX_t' ('u_int8_t', etc.) are defined in <sys/types.h>.
Should I have to report this bug to alsa devs or now should I have to include <sys/types.h> before including <alsa/asoundlib.h>?
Regards,
Matt
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: libc6 2.17-0ubuntu1
ProcVersionSign
Uname: Linux 3.8.0-2-generic x86_64
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
Date: Tue Jan 29 21:30:07 2013
InstallationDate: Installed on 2011-08-10 (538 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
MarkForUpload: True
SourcePackage: eglibc
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
summary: |
- [Regression] error when trying to compile a module which use + [Regression] error when trying to compile a program which uses alsa/asoundlib.h with EGLIBC 2.17 |
description: | updated |
Changed in alsa-lib (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Fix Released |
Description of problem:
While trying to build the latest mythtv on RPM Fusion for rawhide I ran into the following issue:
g++ -c -pipe -D_FILE_ OFFSET_ BITS=64 -D_LARGEFILE_SOURCE -DPIC -O2 -g FORTIFY_ SOURCE= 2 -fexceptions -fstack-protector ssp-buffer- size=4 -m64 -mtune=generic -fomit- frame-pointer frame-pointer -fPIC -pthread -g -Wall -Wpointer-arith virtual- dtor -D__STDC_ CONSTANT_ MACROS -D__STDC_ LIMIT_MACROS inlines- hidden -Wmissing- declarations -Wno-switch lib64/qt4/ mkspecs/ linux-g+ + -I. -I/usr/ include/ QtCore include/ libxml2 /zeromq/ include -I../.. /nzmqt/ include/ nzmqt -I../include -I. alsa/asoundlib. h:49:0,
from libavdevice/ alsa-audio- common. c:31: alsa/pcm. h:944:1: error: unknown type name 'u_int8_t' alsa/pcm. h:945:1: error: unknown type name 'u_int16_t' alsa/pcm. h:946:1: error: unknown type name 'u_int32_t' alsa/pcm. h:947:1: error: unknown type name 'u_int64_t' alsa/asoundlib. h:49:0,
from libavdevice/ alsa-audio- common. c:31: alsa/pcm. h:1052: 1: error: unknown type name 'int16_t' alsa-audio- common. o] Error 1 build/BUILD/ MythTV- mythtv- d2f9798/ mythtv/ external/ FFmpeg'
-pipe -Wall -Wp,-D_
--param=
-fomit-
-Wno-non-
-fvisibility-
-Wredundant-decls -funit-at-a-time -D_REENTRANT -fPIC -DMMX
-D_GNU_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED
-I/usr/
-I/usr/include -I/usr/include -I/usr -I/usr/
-I../..
-I. -o parser.o parser.cpp
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
make[2]: *** [libavdevice/
make[2]: Leaving directory
`/builddir/
make[1]: *** [FFmpeg-all] Error 2
Version-Release number of selected component (if applicable): devel-1. 0.26-1. fc19.x86_ 64
alsa-lib-
A mythtv dev suggested the following *might* be the fix. Since I build mythtv in mock/rpmbuild I don't think it's possible/practical to test this patch:
--- /usr/include/ alsa/asoundlib. h 2012-09-06 06:18:02.000000000 -0700
+++ asoundlib.h 2012-12-07 19:30:53.131751067 -0800
@@ -31,6 +31,7 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>