On 12/17/2014 03:46 AM, [email protected] wrote:
> Hi,
>
> When emergin matplotlib (as dependency of ipython) it fails with the
> following error:
>
> src/_png.cpp:264:13: error: 'npy_PyFile_DupClose' was not declared in
>
> Full output of build.log, emerge --info and emerge -pqv is attached
I believe the real error message appears several lines above the one
you quoted above:
In file included from
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
from
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/_png.cpp:28:
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2:
warning: #warning "Using deprecated NumPy API, disable it by " "#defining
NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
src/_png.cpp:243:48: error: macro "npy_PyFile_DupClose" requires 3 arguments,
but only 2 given
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
That kind of message is classic for a mis-matched library version. In this
case the numpy library is either too new or too old for the package you're
trying to emerge.
Are you mixing stable/unstable packages on that machine? If not, then this
looks like a bug in the ebuild.