Brian Sidebotham <br...@wanless-systems.com> added the comment:

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.

----------
resolution:  -> not a bug

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31744>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to