On 2007-11-05 15:22-0600 Geoffrey Furnish wrote:

> Be that as it may, I have a new and more serious problem.  When I try to
> build plplot after running cmake as explained in my first post, the build
> fails while trying to build the python binding.
>
> [ 26%] Building C object 
> bindings/python/CMakeFiles/_plplotcmodule.dir/plplotcmodulePYTHON_wrap.o
> /home/furnish/icfdev/prefix-icf/plplot/tmp2/bindings/python/plplotcmodulePYTHON_wrap.c:2510:1:
>  warning: "PySequence_Fast_GET_ITEM" redefined
> In file included from 
> /home/furnish/prefix/icf2/include/python2.5/Python.h:126,
>                 from 
> /home/furnish/icfdev/prefix-icf/plplot/tmp2/bindings/python/plplotcmodulePYTHON_wrap.c:112:
> /home/furnish/prefix/icf2/include/python2.5/abstract.h:1059:1: warning: this 
> is the location of the previous definition
> Linking C shared module _plplotcmodule.so
> /usr/bin/ld: 
> /home/furnish/prefix/icf2/lib/python2.5/config/libpython2.5.a(abstract.o): 
> relocation R_X86_64_32 against `a local symbol' can not be used when making a 
> shared object; recompile with -fPIC
> /home/furnish/prefix/icf2/lib/python2.5/config/libpython2.5.a: could not read 
> symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [bindings/python/_plplotcmodule.so] Error 1
> make[1]: *** [bindings/python/CMakeFiles/_plplotcmodule.dir/all] Error 2
> make: *** [all] Error 2

>From later e-mail you appear to have solved this by dropping linking of
python libraries, but that may just hide the problem until later when
you actually try and execute the code.

Just out of curiosity, what happens if you follow the above instructions (or
at least my interpretation of them), that is, build your private (static
library version) of python with the -fPIC compiler option?

Alan

__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to