matplotlib/matplotlib — Issue #558: building matplotlib-1.1.0 on Fedora 15
Author: janrito
Created: 2011-10-27 15:54:21+00:00
State: open

I am having trouble building matplotlib on Fedora 15.

Here is some information:

============================================================================

BUILDING MATPLOTLIB
matplotlib: 1.1.0
python: 2.7.1 (r271:86832, Apr 12 2011, 16:15:16) [GCC
4.6.0 20110331 (Red Hat 4.6.0-2)]
platform: linux2

REQUIRED DEPENDENCIES
numpy: 1.6.1
freetype2: 12.2.6

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.46
Tkinter: Tkinter: 81008, Tk: 8.5, Tcl: 8.5
* Guessing the library and include directories for
* Tcl and Tk because the tclConfig.sh and
* tkConfig.sh could not be found and/or parsed.
Gtk+: no
* pygtk present but import failed
Mac OS X native: no
Qt: no
Qt4: no
Cairo: 1.8.8

OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: matplotlib will provide
pytz: matplotlib will provide
adding pytz

OPTIONAL USETEX DEPENDENCIES
dvipng: 1.14
ghostscript: 9.04
latex: 3.141592
pdftops: 0.16.7

[Edit setup.cfg to suppress the above messages]
============================================================================

And here is where the error occurs:

/usr/bin/ld: /usr/local/lib/libz.a(crc32.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib/libz.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

error: command 'g++' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-NZujt4-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-2Mdw9Y-record/install-record.txt failed with error code 1
Storing complete log in /root/.pip/pip.log

Any help would be appreciated.