Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605668 - media-libs/aubio-0.4.4 fails to compile : missing AUBIO_LOG_ERR definition
Summary: media-libs/aubio-0.4.4 fails to compile : missing AUBIO_LOG_ERR definition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-01-14 10:34 UTC by Helmut Jarausch
Modified: 2018-10-01 19:33 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.gz,7.18 KB, application/gzip)
2017-01-17 20:21 UTC, hexum
Details
build.log (build.log.gz,7.18 KB, application/gzip)
2017-01-17 20:22 UTC, hexum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2017-01-14 10:34:13 UTC
During compilation I get

x86_64-pc-linux-gnu-gcc -mtune=native -O2 -msse3 -pipe -fPIC -DAUBIO_VERSION=0.4.4 -Ipython/ext -Ipython/gen -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c python/ext/aubiomodule.c -o /var/tmp/portage/media-libs/aubio-0.4.4/work/aubio-0.4.4-python2_7/temp.linux-x86_64-2.7/python/ext/aubiomodule.o
python/ext/aubiomodule.c: In function âaubio_log_functionâ:
python/ext/aubiomodule.c:272:16: error: âAUBIO_LOG_ERRâ undeclared (first use in this function)
   if (level == AUBIO_LOG_ERR) {
                ^~~~~~~~~~~~~
python/ext/aubiomodule.c:272:16: note: each undeclared identifier is reported only once for each function it appears in
python/ext/aubiomodule.c: In function âinitaubioâ:
python/ext/aubiomodule.c:339:3: warning: implicit declaration of function âaubio_log_set_level_functionâ [-Wimplicit-function-declaration]
   aubio_log_set_level_function(AUBIO_LOG_ERR, aubio_log_function, NULL);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
python/ext/aubiomodule.c:339:32: error: âAUBIO_LOG_ERRâ undeclared (first use in this function)
   aubio_log_set_level_function(AUBIO_LOG_ERR, aubio_log_function, NULL);
                                ^~~~~~~~~~~~~
python/ext/aubiomodule.c:340:32: error: âAUBIO_LOG_WRNâ undeclared (first use in this function)
   aubio_log_set_level_function(AUBIO_LOG_WRN, aubio_log_function, NULL);
                                ^~~~~~~~~~~~~
Comment 1 Denis Descheneaux 2017-01-14 16:52:18 UTC
Confirm same issue
Comment 2 hexum 2017-01-17 20:21:56 UTC
Created attachment 460484 [details]
build.log
Comment 3 hexum 2017-01-17 20:22:26 UTC
Created attachment 460486 [details]
build.log
Comment 4 Antoine Pinsard 2017-01-19 18:41:57 UTC
Bug reported upstream: https://github.com/aubio/aubio/issues/84

This can be fixed by adding the following to src_prepare():

    sed -i '4i#include "../../src/utils/log.h"' python/ext/aubiomodule.c
Comment 5 Antoine Pinsard 2017-01-20 13:14:19 UTC
The issue is only present when an older version of aubio is already installed. So it can be worked around by running `emerge -C && emerge -1 aubio`.
Comment 6 Antoine Pinsard 2017-01-20 13:15:03 UTC
Sorry, `emerge -C aubio && emerge -1 aubio`
Comment 7 Antoine Pinsard 2017-01-22 09:28:03 UTC
There is now a patch from upstream: https://github.com/aubio/aubio/compare/8f0db97...227aa1c.patch
Comment 8 jospezial 2017-02-03 19:38:40 UTC
Please port the ebuild to eapi 6 to allow userpatches.(In reply to Antoine 

Pinsard from comment #7)
> There is now a patch from upstream:
> https://github.com/aubio/aubio/compare/8f0db97...227aa1c.patch

I hope there is new bugfix release soon from upstream.
Comment 9 Renich Bon Ciric 2017-03-04 18:49:38 UTC
I can confirm the workaround/fix on comment 6. Thanks.
Comment 10 jospezial 2017-04-28 21:23:18 UTC
fixed in aubio-0.4.5

media-libs/aubio-0.4.5 is in tree now.
Comment 11 Andreas Sturmlechner gentoo-dev 2018-10-01 19:33:13 UTC
Someone forgot to close this then.