<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 52: Plplot 15.4.0 build fails on OpenSuse 15.1 Linux with ld error on libpython3.8.a</title><link href="https://sourceforge.net/p/plplot/support-requests/52/" rel="alternate"/><link href="https://sourceforge.net/p/plplot/support-requests/52/feed.atom" rel="self"/><id>https://sourceforge.net/p/plplot/support-requests/52/</id><updated>2021-04-03T12:38:42.040000Z</updated><subtitle>Recent changes to 52: Plplot 15.4.0 build fails on OpenSuse 15.1 Linux with ld error on libpython3.8.a</subtitle><entry><title>#52 Plplot 15.4.0 build fails on OpenSuse 15.1 Linux with ld error on libpython3.8.a</title><link href="https://sourceforge.net/p/plplot/support-requests/52/?limit=25#e2a0" rel="alternate"/><published>2021-04-03T12:38:42.040000Z</published><updated>2021-04-03T12:38:42.040000Z</updated><author><name>Stefan Brüns</name><uri>https://sourceforge.net/u/stefanbr/</uri></author><id>https://sourceforge.netd4d9f22f91c86a22a8e1d3e359e56f1261766686</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Note openSUSE 15.1 has been EOLed for quite some time. Leap 15.2 and Leap 15.3 (currently in late Beta) both contain the latest released version of PLPlot, 5.15.0.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Plplot 15.4.0 build fails on OpenSuse 15.1 Linux with ld error on libpython3.8.a</title><link href="https://sourceforge.net/p/plplot/support-requests/52/" rel="alternate"/><published>2021-01-29T00:25:52.217000Z</published><updated>2021-01-29T00:25:52.217000Z</updated><author><name>Walt Kailey</name><uri>https://sourceforge.net/u/wkailey/</uri></author><id>https://sourceforge.net5f102bdf5d9fbaf652ba1ad154a3973d283f5cf5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;had to install version 5.14.0, because latest CMAKE available with OpenSuse 15.1 is 3.10.2, and there does not seem to be an upgrade path to 3.13.x. I need the Python bindings, and I have built and installed python 3.8.6 from source available at python.org. Swig is installed at /usr/share/swig/4.0.2, and the cmake step succeeds. After that, the make step fails with repeated messages that look like this&lt;/p&gt;
&lt;p&gt;/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libpython3.8.a(abstract.o): relocation R_X86_64_32S against symbol &lt;code&gt;_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libpython3.8.a(boolobject.o): relocation R_X86_64_32S against symbol&lt;/code&gt;_Py_FalseStruct' can not be used when making a shared object; recompile with -fPIC&lt;/p&gt;
&lt;p&gt;And much more like that. The linker ld is complaining that you are trying to build a shared library using a static library that was not built with relocatable code, as near as I can understand the message.&lt;/p&gt;
&lt;p&gt;After about twenty of these lovely messages, make bails with&lt;/p&gt;
&lt;p&gt;/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: final link failed: nonrepresentable section on output&lt;br/&gt;
collect2: error: ld returned 1 exit status&lt;br/&gt;
make&lt;span&gt;[2]&lt;/span&gt;: &lt;strong&gt;&lt;em&gt; &lt;span&gt;&lt;span&gt;[bindings/python/CMakeFiles/_plplotc.dir/build.make:108: bindings/python/_plplotc.so]&lt;/span&gt;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span&gt;&lt;span&gt;[2]&lt;/span&gt;&lt;/span&gt;: Leaving directory '/usr/plplot/build_directory'&lt;br/&gt;
make&lt;span&gt;&lt;span&gt;[1]&lt;/span&gt;&lt;/span&gt;: &lt;/em&gt;&lt;/strong&gt; &lt;span&gt;[CMakeFiles/Makefile2:1316: bindings/python/CMakeFiles/_plplotc.dir/all]&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span&gt;[1]&lt;/span&gt;: Leaving directory '/usr/plplot/build_directory'&lt;br/&gt;
make: *** &lt;span&gt;[Makefile:152: all]&lt;/span&gt; Error 2&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>