Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622288 - media-libs/speexdsp-1.2_rc3: /usr/include/speex/speexdsp_config_types.h is unusable
Summary: media-libs/speexdsp-1.2_rc3: /usr/include/speex/speexdsp_config_types.h is un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
: 627052 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-06-20 11:28 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2017-12-17 23:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2017-06-20 11:28:44 UTC
/usr/include/speex/speexdsp_config_types.h relies on some macros which are not guaranteed to be set.


$ cat /usr/include/speex/speexdsp_config_types.h
#ifndef __SPEEX_TYPES_H__
#define __SPEEX_TYPES_H__

#if defined HAVE_STDINT_H
#  include <stdint.h>
#elif defined HAVE_INTTYPES_H
#  include <inttypes.h>
#elif defined HAVE_SYS_TYPES_H
#  include <sys/types.h>
#endif

typedef int16_t spx_int16_t;
typedef uint16_t spx_uint16_t;
typedef int32_t spx_int32_t;
typedef uint32_t spx_uint32_t;

#endif

$ gcc -c -x c - <<< "#include <speex/speexdsp_config_types.h>"
In file included from <stdin>:1:0:
/usr/include/speex/speexdsp_config_types.h:12:9: error: unknown type name ‘int16_t’
 typedef int16_t spx_int16_t;
         ^~~~~~~
/usr/include/speex/speexdsp_config_types.h:13:9: error: unknown type name ‘uint16_t’
 typedef uint16_t spx_uint16_t;
         ^~~~~~~~
/usr/include/speex/speexdsp_config_types.h:14:9: error: unknown type name ‘int32_t’
 typedef int32_t spx_int32_t;
         ^~~~~~~
/usr/include/speex/speexdsp_config_types.h:15:9: error: unknown type name ‘uint32_t’
 typedef uint32_t spx_uint32_t;
         ^~~~~~~~
$


Upstream fixed this problem already:
https://git.xiph.org/?p=speexdsp.git;a=commitdiff;h=c470e2e89a6ca75b507437467692cd684b71a526
Comment 1 Larry the Git Cow gentoo-dev 2017-12-17 22:22:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2f78c951d193dfff031cb9cad4057c856a2d0be

commit d2f78c951d193dfff031cb9cad4057c856a2d0be
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-17 22:19:39 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-17 22:21:46 +0000

    media-libs/speexdsp: Fix speexdsp_config_types.h
    
    Thanks-to: Arfrever
    Closes: https://bugs.gentoo.org/622288
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/speexdsp-1.2_rc3-config_types.h.patch    | 61 ++++++++++++++++++++++
 media-libs/speexdsp/speexdsp-1.2_rc3-r1.ebuild     | 57 ++++++++++++++++++++
 2 files changed, 118 insertions(+)
Comment 2 Andreas Sturmlechner gentoo-dev 2017-12-17 23:11:02 UTC
*** Bug 627052 has been marked as a duplicate of this bug. ***