Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import pylab (matplotlib._png) #1948

Closed
amelio-vazquez-reina opened this issue Apr 26, 2013 · 7 comments
Closed

Unable to import pylab (matplotlib._png) #1948

amelio-vazquez-reina opened this issue Apr 26, 2013 · 7 comments

Comments

@amelio-vazquez-reina
Copy link

Note: I have left a copy of this thread on StackOverflow:
http://stackoverflow.com/questions/16227285/unable-to-import-matplotlib-png-pylab

I am unable to import matplotlib._png:

import matplotlib._png as _png ImportError:
/home/james/opt/python/virtualenvs/work/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg   /matplotlib/_png.so:
undefined symbol: png_set_longjmp_fn

This error prevents me from running import pylab (since this ultimately imports matplotlib._png).

I installed matplotlib from source, and made sure to add the path with local installations (/home/james/local) to basedir in setupext.py before running python setup.py install.

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.7.1]
              dateutil: yes [using dateutil version 2.1]
               tornado: yes [using tornado version 3.0.1]
             pyparsing: yes [using pyparsing version 1.5.7]
                 pycxx: yes [Couldn't import.  Using local copy.]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found Using local copy.]
              freetype: yes [version 16.0.10]
                   png: yes [version 1.2.10]

My research so far:

As can be seen above, matplotlib seems to find version 1.2.10 even though the version that I have under /home/james/local is 1.6.1:

$ find . -iname '*libpng*'                                                                                                  
./libpng16.so.16.1.0
./libpng16.so
./libpng16.so.16
./libpng16.a
./libpng.a
./libpng.so
./libpng16.la
./pkgconfig/libpng.pc
./pkgconfig/libpng16.pc
./libpng.la

and I have LD_LIBRARY_PATH pointing to /home/james/local as the first directory to look into.
but matplotlib seems to have found the system version:

$ locate libpng
/usr/lib/libpng.so
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.10.0
/usr/lib/libpng12.a
/usr/lib/libpng12.so
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.10.0

Could this be the problem? Why am I unable to import matplotlib._png?

@mdboom
Copy link
Member

mdboom commented Apr 26, 2013

Can you do a git clean -fxd and then post the entire build log somewhere so I can have a look? It's probably using pkgconfig to find the system libpng, but perhaps building with one and linking with the other. Is there a reason you want to use a local rather than system build of libpng?

@amelio-vazquez-reina
Copy link
Author

Thanks @mdboom. My research in the last few hours points me in the same direction (pkg-config). However, I am relatively new to Python and I am not sure if I am updating setup.cfg correctly, so just in case, I re-cloned the directory from scratch, and tried a fresh installation without making any changes to any files.

The path where I have the right libpng library is /home/james/local. I have /home/james/local/lib as the first entry in LD_LIBRARY_PATH but this doesn't seem to be enough.

Below is the log of new installation from a new clean repository:

$ pip install -e .
Obtaining file:///nfs/vol1/opt/python/matplotlib/src/repo/matplotlib
  Running setup.py egg_info for package from file:///nfs/vol1/opt/python/matplotlib/src/repo/matplotlib
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.3.x]
                    python: yes [2.7.4 (default, Apr 21 2013, 18:37:10)  [GCC
                            4.1.2 20080704 (Red Hat 4.1.2-50)]]
                  platform: yes [linux2]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.7.1]
                  dateutil: yes [using dateutil version 2.1]
                   tornado: yes [using tornado version 3.0.1]
                 pyparsing: yes [using pyparsing version 1.5.7]
                     pycxx: yes [Couldn't import.  Using local copy.]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found Using local copy.]
                  freetype: yes [version 16.0.10]
                       png: yes [version 1.2.10]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [using nose version 1.3.0]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt4agg: no  [not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: no  [The C/C++ header for Tk (tk.h) could not be
                            found.  You may need to install the development
                            package.]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                     qtagg: no  [not found]
                       agg: yes [installing]
                     cairo: no  [not found]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: yes [version 1.5]
               ghostscript: yes [version 8.70]
                     latex: yes [version 3.141592]
                   pdftops: yes [version 3.00]


    warning: no files found matching 'INTERACTIVE'
    warning: no files found matching 'MANIFEST'
    warning: no files found matching 'setupegg.py'
    warning: no files found matching '*' under directory 'lib/matplotlib/mpl-data/sample_data/'
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): tornado in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.6,<2.0.0 in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/pyparsing-1.5.7-py2.7.egg (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): nose in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): six in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/six-1.3.0-py2.7.egg (from python-dateutil->matplotlib==1.3.x)
Installing collected packages: matplotlib
  Running setup.py develop for matplotlib
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.3.x]
                    python: yes [2.7.4 (default, Apr 21 2013, 18:37:10)  [GCC
                            4.1.2 20080704 (Red Hat 4.1.2-50)]]
                  platform: yes [linux2]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.7.1]
                  dateutil: yes [using dateutil version 2.1]
                   tornado: yes [using tornado version 3.0.1]
                 pyparsing: yes [using pyparsing version 1.5.7]
                     pycxx: yes [Couldn't import.  Using local copy.]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found Using local copy.]
                  freetype: yes [version 16.0.10]
                       png: yes [version 1.2.10]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [using nose version 1.3.0]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt4agg: no  [not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: no  [The C/C++ header for Tk (tk.h) could not be
                            found.  You may need to install the development
                            package.]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                     qtagg: no  [not found]
                       agg: yes [installing]
                     cairo: no  [not found]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: yes [version 1.5]
               ghostscript: yes [version 8.70]
                     latex: yes [version 3.141592]
                   pdftops: yes [version 3.00]


    warning: no files found matching 'INTERACTIVE'
    warning: no files found matching 'MANIFEST'
    warning: no files found matching 'setupegg.py'
    warning: no files found matching '*' under directory 'lib/matplotlib/mpl-data/sample_data/'
    building 'matplotlib.ft2font' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.7/src/ft2font.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/ft2font.cpp:7:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/ft2font.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lfreetype -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/ft2font.so
    /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._png' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/_png.cpp:28:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/_png.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lpng12 -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_png.so
    /usr/bin/ld: skipping incompatible /usr/lib/libpng12.so when searching for -lpng12
    /usr/bin/ld: skipping incompatible /usr/lib/libpng12.a when searching for -lpng12
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._image' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_image.cpp -o build/temp.linux-x86_64-2.7/src/_image.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/_image.cpp:12:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_curves.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/_image.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_image.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib.ttconv' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_ttconv.cpp -o build/temp.linux-x86_64-2.7/src/_ttconv.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c ttconv/pprdrv_tt.cpp -o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c ttconv/pprdrv_tt2.cpp -o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt2.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c ttconv/ttutil.cpp -o build/temp.linux-x86_64-2.7/ttconv/ttutil.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/_ttconv.o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt.o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt2.o build/temp.linux-x86_64-2.7/ttconv/ttutil.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/ttconv.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._path' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_path.cpp -o build/temp.linux-x86_64-2.7/src/_path.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_path_iterator.h:7,
                     from src/_path.cpp:3:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/path_cleanup.cpp -o build/temp.linux-x86_64-2.7/src/path_cleanup.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/path_cleanup.cpp:5:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/agg_py_transforms.cpp -o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_transforms.cpp:6:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_curves.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/_path.o build/temp.linux-x86_64-2.7/src/path_cleanup.o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_path.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._cntr' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/cntr.c -o build/temp.linux-x86_64-2.7/src/cntr.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/cntr.c:23:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/cntr.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_cntr.so
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._delaunay' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/_delaunay.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/_delaunay.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from lib/matplotlib/delaunay/VoronoiDiagramGenerator.h:34,
                     from lib/matplotlib/delaunay/_delaunay.cpp:6:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp:38:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/delaunay_utils.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/delaunay_utils.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/natneighbors.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/natneighbors.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/_delaunay.o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/delaunay_utils.o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/natneighbors.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_delaunay.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._tri' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/tri/_tri.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/tri/_tri.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from lib/matplotlib/tri/_tri.h:68,
                     from lib/matplotlib/tri/_tri.cpp:8:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/lib/matplotlib/tri/_tri.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_tri.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib.backends._backend_agg' extension
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/agg_py_transforms.cpp -o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_transforms.cpp:6:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_backend_agg.cpp -o build/temp.linux-x86_64-2.7/src/_backend_agg.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_path_iterator.h:7,
                     from src/_backend_agg.h:43,
                     from src/_backend_agg.cpp:12:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_curves.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o build/temp.linux-x86_64-2.7/src/_backend_agg.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lfreetype -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/backends/_backend_agg.so
    /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    Creating /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/matplotlib.egg-link (link to lib)
    Adding matplotlib 1.3.x to easy-install.pth file

    Installed /nfs/vol1/opt/python/matplotlib/src/repo/matplotlib/lib
Successfully installed matplotlib
Cleaning up...

@mdboom
Copy link
Member

mdboom commented Apr 26, 2013

To use a custom library, one would need to provide both an include path and library path. Have you tried setting CFLAGS to -I/home/james/local/include/libpng16? (Or whatever the path to the libpng include files are on your system?)

@amelio-vazquez-reina
Copy link
Author

To clarify, the "system" version of libpng that I have is 1.2.10. It is installed under /usr/lib/, and I do not have privileges to modify anything under that path.

I have locally installed 1.6.1 under /home/james/local.

The reason why I thought I would go with the local version is two fold:

  1. It looks like 1.2.10 is quite old
  2. matplotlib is unable to import matplotlib._png (see the very top of my first post), so I thought maybe this is because the symbol png_set_longjmp_fn is not defined in older versions of libpng

@amelio-vazquez-reina
Copy link
Author

Thank you @mdboom , yes /home/james/local/include/libpng16 is the path where I have it installed. It includes the following files:

png.h
pngconf.h
pngliboconf.h

I tried:

CFLAGS='-I/home/james/local/include/libpng16'
export CFLAGS

and then

# From the matploblib repository, with my virtualenv activated:
pip uninstall matplotlib
rm -r build
git clean -fxd
pip install -e . 

but I am still unable to import pylab (I get import matplotlib._png as _png: Import Error _png.so undefined symbol: png_set_longjmp_fn)

To clarify, I did not create setup.config or made any changes to the installation files.

Below is the new installation log:

$ pip install -e .
Obtaining file:///nfs/vol1/opt/python/matplotlib/src/repo/matplotlib
  Running setup.py egg_info for package from file:///nfs/vol1/opt/python/matplotlib/src/repo/matplotlib
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.3.x]
                    python: yes [2.7.4 (default, Apr 21 2013, 18:37:10)  [GCC
                            4.1.2 20080704 (Red Hat 4.1.2-50)]]
                  platform: yes [linux2]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.7.1]
                  dateutil: yes [using dateutil version 2.1]
                   tornado: yes [using tornado version 3.0.1]
                 pyparsing: yes [using pyparsing version 1.5.7]
                     pycxx: yes [Couldn't import.  Using local copy.]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found Using local copy.]
                  freetype: yes [version 16.0.10]
                       png: yes [version 1.2.10]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [using nose version 1.3.0]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt4agg: no  [not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: no  [The C/C++ header for Tk (tk.h) could not be
                            found.  You may need to install the development
                            package.]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                     qtagg: no  [not found]
                       agg: yes [installing]
                     cairo: no  [not found]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: yes [version 1.5]
               ghostscript: yes [version 8.70]
                     latex: yes [version 3.141592]
                   pdftops: yes [version 3.00]


    warning: no files found matching 'INTERACTIVE'
    warning: no files found matching 'MANIFEST'
    warning: no files found matching 'setupegg.py'
    warning: no files found matching '*' under directory 'lib/matplotlib/mpl-data/sample_data/'
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): tornado in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.6,<2.0.0 in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/pyparsing-1.5.7-py2.7.egg (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): nose in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages (from matplotlib==1.3.x)
Requirement already satisfied (use --upgrade to upgrade): six in /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/six-1.3.0-py2.7.egg (from python-dateutil->matplotlib==1.3.x)
Installing collected packages: matplotlib
  Running setup.py develop for matplotlib
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [1.3.x]
                    python: yes [2.7.4 (default, Apr 21 2013, 18:37:10)  [GCC
                            4.1.2 20080704 (Red Hat 4.1.2-50)]]
                  platform: yes [linux2]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.7.1]
                  dateutil: yes [using dateutil version 2.1]
                   tornado: yes [using tornado version 3.0.1]
                 pyparsing: yes [using pyparsing version 1.5.7]
                     pycxx: yes [Couldn't import.  Using local copy.]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found Using local copy.]
                  freetype: yes [version 16.0.10]
                       png: yes [version 1.2.10]

    OPTIONAL SUBPACKAGES
               sample_data: yes [installing]
                  toolkits: yes [installing]
                     tests: yes [using nose version 1.3.0]

    OPTIONAL BACKEND EXTENSIONS
                    macosx: no  [Mac OS-X only]
                    qt4agg: no  [not found]
                   gtk3agg: no  [Requires pygobject to be installed.]
                 gtk3cairo: no  [Requires cairo to be installed.]
                    gtkagg: no  [Requires pygtk]
                     tkagg: no  [The C/C++ header for Tk (tk.h) could not be
                            found.  You may need to install the development
                            package.]
                     wxagg: no  [requires wxPython]
                       gtk: no  [Requires pygtk]
                     qtagg: no  [not found]
                       agg: yes [installing]
                     cairo: no  [not found]

    OPTIONAL LATEX DEPENDENCIES
                    dvipng: yes [version 1.5]
               ghostscript: yes [version 8.70]
                     latex: yes [version 3.141592]
                   pdftops: yes [version 3.00]


    warning: no files found matching 'INTERACTIVE'
    warning: no files found matching 'MANIFEST'
    warning: no files found matching 'setupegg.py'
    warning: no files found matching '*' under directory 'lib/matplotlib/mpl-data/sample_data/'
    building 'matplotlib.ft2font' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.7/src/ft2font.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/ft2font.cpp:7:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/ft2font.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lfreetype -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/ft2font.so
    /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._png' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/_png.cpp:28:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/usr/include/libpng12 -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/_png.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lpng12 -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_png.so
    /usr/bin/ld: skipping incompatible /usr/lib/libpng12.so when searching for -lpng12
    /usr/bin/ld: skipping incompatible /usr/lib/libpng12.a when searching for -lpng12
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._image' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_image.cpp -o build/temp.linux-x86_64-2.7/src/_image.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/_image.cpp:12:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    src/_image.cpp: In member function 'Py::Object _image_module::frombuffer(const Py::Tuple&)':
    src/_image.cpp:1266: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_curves.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/_image.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_image.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib.ttconv' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_ttconv.cpp -o build/temp.linux-x86_64-2.7/src/_ttconv.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c ttconv/pprdrv_tt.cpp -o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c ttconv/pprdrv_tt2.cpp -o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt2.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c ttconv/ttutil.cpp -o build/temp.linux-x86_64-2.7/ttconv/ttutil.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/_ttconv.o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt.o build/temp.linux-x86_64-2.7/ttconv/pprdrv_tt2.o build/temp.linux-x86_64-2.7/ttconv/ttutil.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/ttconv.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._path' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_path.cpp -o build/temp.linux-x86_64-2.7/src/_path.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_path_iterator.h:7,
                     from src/_path.cpp:3:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/path_cleanup.cpp -o build/temp.linux-x86_64-2.7/src/path_cleanup.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/path_cleanup.cpp:5:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/agg_py_transforms.cpp -o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_transforms.cpp:6:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_curves.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/_path.o build/temp.linux-x86_64-2.7/src/path_cleanup.o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_path.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._cntr' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/cntr.c -o build/temp.linux-x86_64-2.7/src/cntr.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/cntr.c:23:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    src/cntr.c: In function 'init_cntr':
    src/cntr.c:2019: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/cntr.c:2020: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/cntr.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_cntr.so
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._delaunay' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/_delaunay.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/_delaunay.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from lib/matplotlib/delaunay/VoronoiDiagramGenerator.h:34,
                     from lib/matplotlib/delaunay/_delaunay.cpp:6:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp:38:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/delaunay_utils.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/delaunay_utils.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/delaunay/natneighbors.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/natneighbors.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/_delaunay.o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/VoronoiDiagramGenerator.o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/delaunay_utils.o build/temp.linux-x86_64-2.7/lib/matplotlib/delaunay/natneighbors.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_delaunay.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib._tri' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c lib/matplotlib/tri/_tri.cpp -o build/temp.linux-x86_64-2.7/lib/matplotlib/tri/_tri.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from lib/matplotlib/tri/_tri.h:68,
                     from lib/matplotlib/tri/_tri.cpp:8:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/lib/matplotlib/tri/_tri.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/_tri.so
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    building 'matplotlib.backends._backend_agg' extension
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/mplutils.cpp -o build/temp.linux-x86_64-2.7/src/mplutils.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/agg_py_transforms.cpp -o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_transforms.cpp:6:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c src/_backend_agg.cpp -o build/temp.linux-x86_64-2.7/src/_backend_agg.o
    In file included from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                     from /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:15,
                     from src/agg_py_path_iterator.h:7,
                     from src/_backend_agg.h:43,
                     from src/_backend_agg.cpp:12:
    /home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    src/_backend_agg.cpp: In member function 'Py::Object BufferRegion::to_string_argb(const Py::Tuple&)':
    src/_backend_agg.cpp:164: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/_backend_agg.cpp: In member function 'Py::Object RendererAgg::draw_markers(const Py::Tuple&)':
    src/_backend_agg.cpp:756: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/_backend_agg.cpp:756: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/_backend_agg.cpp:794: warning: dereferencing type-punned pointer will break strict-aliasing rules
    src/_backend_agg.cpp:794: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_bezier_arc.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_curves.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_image_filters.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_trans_affine.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_contour.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_dash.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c agg24/src/agg_vcgen_stroke.cpp -o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/IndirectPythonInterface.cxx -o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_False()':
    CXX/IndirectPythonInterface.cxx:505: warning: dereferencing type-punned pointer will break strict-aliasing rules
    CXX/IndirectPythonInterface.cxx: In function 'PyObject* Py::_True()':
    CXX/IndirectPythonInterface.cxx:506: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxx_extensions.cxx -o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxsupport.cxx -o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
    gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -I/home/james/local/include/libpng16 -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/james/opt/python/numpy/numpy-1.7.1/lib/python2.7/site-packages/numpy/core/include -Iagg24/include -I/usr/include/freetype2 -I/home/james/opt/python/python-2.7.4/include/python2.7 -c CXX/cxxextensions.c -o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o
    g++ -pthread -shared -L/home/james/opt/stow_all/stow_appear/lib -I/home/james/local/include/libpng16 build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/src/agg_py_transforms.o build/temp.linux-x86_64-2.7/src/_backend_agg.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64 -L/home/james/opt/python/python-2.7.4/lib -lfreetype -lstdc++ -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/matplotlib/backends/_backend_agg.so
    /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
    /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
    /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
    /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
    Creating /nfs/vol1/opt/python/virtualenvs/work/lib/python2.7/site-packages/matplotlib.egg-link (link to lib)
    Adding matplotlib 1.3.x to easy-install.pth file

    Installed /nfs/vol1/opt/python/matplotlib/src/repo/matplotlib/lib
Successfully installed matplotlib
Cleaning up...

@amelio-vazquez-reina
Copy link
Author

@mdboom Found the solution. I had to update PKG_CONFIG_PATH to make it point to the location of my local libraries (/home/james/local/lib/pkgconfig). After doing this. I do not get this error anymore. (see the answer here: http://stackoverflow.com/a/16239054/283296). So I can now close this ticket. Thanks so much for your help.

Oddly I now get a different error: No module named PyQt4. I thought this was optional. Do I need to install PyQt4 to get pylab to work? Also, do you know if it will work with Qt5? I read that PyQt supports Qt5, but I don't know if matplotlib would play well with it.

@mdboom
Copy link
Member

mdboom commented Apr 26, 2013

You may need to set your backend (in ~/.matplotlib/matplotlibrc/) to something else if PyQt4 is not installed.

I don't know of any testing that's been done with matplotlib and PyQt5 -- it may work, may not, depending on how much of the API the Qt folks have changed.

@efiring efiring closed this as completed Apr 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants