Summary: | =media-libs/libaacplus-2.0.2 fails to build with clang-3.2 - main.c:(.text+0x9a): undefined reference to `AuChannelOpen' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Ziółkowski <ziolkoneo> |
Component: | [OLD] Library | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fsvm88, nigoro.dev |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
=media-libs/libaacplus-2.0.2 build log
sample patch for libaacplus-2.0.2-r1.ebuild Fix frontend/au_channel.h to use static inline functions. |
Description
Daniel Ziółkowski
2013-02-24 01:00:32 UTC
Created attachment 339892 [details]
=media-libs/libaacplus-2.0.2 build log
Created attachment 354608 [details, diff]
sample patch for libaacplus-2.0.2-r1.ebuild
I have confirmed that can be compiled on Gentoo/FreeBSD.
Still in clang 3.3 Created attachment 382686 [details, diff] Fix frontend/au_channel.h to use static inline functions. Fixes the compilation by using the "static" keywords for the functions in frontend/au_channel.h. Described as the simplest portable pratice here: http://www.greenend.org.uk/rjk/tech/inline.html Tests pass fine both with clang-3.4.2 and GCC 4.8.3, libaacplus-2.0.2-r2. The patch for the static keywords should be applied with clang-3.5.0 as well. I can confirm that with the patch it is *not* required to add std=c99 to make the build succeed. Tested with GCC 4.9, 5.3 and clang 3.7.1, thanks! commit f41b6ee954d6b66c8bcc405e5c87d13d6de0bd56 Author: David Seifert <soap@gentoo.org> Date: Fri Feb 5 23:16:47 2016 +0100 media-libs/libaacplus: Include patch for building with clang Gentoo-Bug: 458932 * EAPI=6 * Thanks Fabio Scaccabarozzi for the patch |