This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Brian Sidebotham
Recipients Brian Sidebotham, cstratak, ishcherb, lemburg, ned.deily
Date 2017-10-11.09:27:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507714066.84.0.213398074469.issue31744@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure any of my emails came through to this ticket from my mail client. I think this can be closed and filed under "not a bug".

Here are the mails I sent.:

Hi Marc-Andre,

Thanks for engaging.

I fixed RPATH and now things are building successfully:

LDFLAGS='-Wl,-rpath=\\$$\$$ORIGIN/../lib' \
./configure --prefix=/opt/wsl \
            --enable-shared \
            --with-system-ffi \
            --with-ensurepip=yes \
            --enable-optimizations

Thank-you for your help.

Best Regards,

Brian.


-----

Hi Charalampos,

We're building for RHEL7 on the latest version.

-bash-4.2$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 (Maipo)

Best Regards,

Brian.


----


Hi Ned,

Thank-you for your advice. There was no python2 installed on the build box in /opt/wsl. Fixing the RPATH reference appears to have fixed the problem. Perhaps something in the makefile was getting eaten by the crazy escaping to get ORIGIN in the python executable. Now it looks correct:
-bash-4.2$ readelf -d ./python 

Dynamic section at offset 0x3cd0 contains 31 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libpython2.7.so.1.0]
...
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]
 0x000000000000000f (RPATH)              Library rpath: [$ORIGIN/../lib]

Best Regards,

Brian.
History
Date User Action Args
2017-10-11 09:27:46Brian Sidebothamsetrecipients: + Brian Sidebotham, lemburg, ned.deily, cstratak, ishcherb
2017-10-11 09:27:46Brian Sidebothamsetmessageid: <1507714066.84.0.213398074469.issue31744@psf.upfronthosting.co.za>
2017-10-11 09:27:46Brian Sidebothamlinkissue31744 messages
2017-10-11 09:27:46Brian Sidebothamcreate