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); ^~~~~~~~~~~~~
Confirm same issue
Created attachment 460484 [details] build.log
Created attachment 460486 [details] build.log
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
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`.
Sorry, `emerge -C aubio && emerge -1 aubio`
There is now a patch from upstream: https://github.com/aubio/aubio/compare/8f0db97...227aa1c.patch
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.
I can confirm the workaround/fix on comment 6. Thanks.
fixed in aubio-0.4.5 media-libs/aubio-0.4.5 is in tree now.
Someone forgot to close this then.