> On 3/06/2017, at 05:28, Nils Bruin <nbr...@sfu.ca> wrote: > > On Friday, June 2, 2017 at 2:54:22 AM UTC-6, Ralf Stephan wrote: > No. See > https://stackoverflow.com/questions/44322187/binary-using-both-python-c-api-version-2-and-3 > > But then we need to either build libraries libpynac2 and libpynac3 or put > libpynac somewhere in local/lib/python*. Do we know which other components > get linked against libpynac? Is it just the extension module pynac.pyx ?
Only used by sage. Those are the components linked to it > readelf -d `find /usr/lib64/python2.7/site-packages/sage -name \*.so` | grep > -C 6 libpynac File: /usr/lib64/python2.7/site-packages/sage/libs/pynac/pynac.so Dynamic section at offset 0x5bbe0 contains 31 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libgsl.so.19] 0x0000000000000001 (NEEDED) Shared library: [libgmp.so.10] 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x8358 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/libs/pynac/constant.so Dynamic section at offset 0xaca8 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x35c0 0x000000000000000d (FINI) 0x8f98 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/series.so Dynamic section at offset 0x15c58 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x4830 0x000000000000000d (FINI) 0x11468 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/comparison.so Dynamic section at offset 0x1bc80 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x4dc8 0x000000000000000d (FINI) 0x17d78 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/function.so Dynamic section at offset 0x3cbd8 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x8640 0x000000000000000d (FINI) 0x354e4 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/substitution_map.so Dynamic section at offset 0xbcd0 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x3628 0x000000000000000d (FINI) 0x97dc -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/constants_c.so Dynamic section at offset 0xad08 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x2d10 0x000000000000000d (FINI) 0x9688 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/getitem.so Dynamic section at offset 0xeca8 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x3c00 0x000000000000000d (FINI) 0xbdc8 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/expression.so Dynamic section at offset 0x113928 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x18e10 0x000000000000000d (FINI) 0xfced4 -- 0x0000000000000000 (NULL) 0x0 File: /usr/lib64/python2.7/site-packages/sage/symbolic/ring.so Dynamic section at offset 0x36bf0 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libpynac_python2_7.so.13] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpython2.7.so.1.0] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x7b70 0x000000000000000d (FINI) 0x31870 This email may be confidential and subject to legal privilege, it may not reflect the views of the University of Canterbury, and it is not guaranteed to be virus free. If you are not an intended recipient, please notify the sender immediately and erase all copies of the message and any attachments. Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more information. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.