<div dir="ltr">Maybe try a list focused on Android development? Few people in the Python core development community have any Android experience. But the issues and context you offer seem to be related to the Android world, not to Python. (dlopen is used by a lot of systems, not just Python.)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 2:43 PM, Cyd Haselton <span dir="ltr"><<a href="mailto:chaselton@gmail.com" target="_blank">chaselton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Jan 19, 2015 at 5:23 PM, Cyd Haselton <<a href="mailto:chaselton@gmail.com">chaselton@gmail.com</a>> wrote:<br>
> On Mon, Jan 19, 2015 at 8:51 AM, Cyd Haselton <<a href="mailto:chaselton@gmail.com">chaselton@gmail.com</a>> wrote:<br>
>> Hello,<br>
>> I'm struggling with a build issue on Android; I've posted to the<br>
>> general python list with no result, so I'm re-posting here in hopes<br>
>> that someone can help.  If this is the wrong place feel free to let me<br>
>> know.<br>
>><br>
>> I'm attempting to build Python 2.7.8 on my Android device; I'm using<br>
>> an environment that simulates a Linux filesystem within the Android<br>
>> terminal using a port of fakechroot.  Within that environment I've<br>
>> ported and/or bootstrapped a number of Linux utilities (curl, git,<br>
>> openssl, gcc)<br>
>><br>
>> I run ./configure, then make, and the executable and library are<br>
>> built.  The problem occurs when build_ext is run; the newly built<br>
>> python executable builds, then links _struct, and immediately<br>
>> afterwards I get an 'undefined reference to dlopen' error.<br>
>><br>
>> If I run ./python setup.py --verbose -library-dirs /path/to/lib<br>
>> --libraries='c dl m' -f, the 'undefined reference to dlopen' error is<br>
>> thrown again.<br>
>><br>
>> If I run ./python setup.py --verbose -library-dirs /path/to/lib<br>
>> --libraries='-lc -ldl -lm' -f the build continues past _struct...even<br>
>> though ld throws the expected 'unable to find -l-lc' and other errors.<br>
>><br>
>> Let me know if you need me to provide additional information.  Any<br>
>> help would be greatly appreciated.<br>
>><br>
>> Cyd<br>
><br>
><br>
> Additionally I took a strace of the error producing command. The<br>
> following is (hopefully) a relevant portion minus the various 'no such<br>
> file' lines before the correct lib is found (which it always is)<br>
><br>
> 16513 open("/data/data/jackpal.androidterm/kbox2/bld/python/Python-2.7.8/Lib/distutils/unixccompiler.py",<br>
> O_RDONLY|O_LARGEFILE) = 3           16513<br>
> open("/data/data/jackpal.androidterm/kbox2/bld/python/Python-2.7.8/Lib/distutils/unixccompiler.pyc",<br>
> O_RDONLY|O_LARGEFILE) = 4       16513 vfork()<br>
>  = 16525<br>
> 16513 wait4(16525,  <unfinished ...><br>
> 16525 open("/data/data/jackpal.androidterm/kbox2/bin/sh",<br>
> O_RDONLY|O_LARGEFILE) = 3<br>
> 16525 execve("/data/data/jackpal.androidterm/kbox2/bin/sh", ["sh",<br>
> "-c", "gcc --sysroot=/usr/gcc-4.9.2/sysroot -print-multiarch ><br>
> build/temp.linux-armv7l-2.7/multiarch 2> /dev/null"], [/* 58 vars */])<br>
> = 0<br>
><br>
> *snip call to libc intercepted by libfakechroot*<br>
><br>
> 16525 open("/system/lib/libc.so", O_RDONLY|O_LARGEFILE|0x80000) = 3<br>
> 16525 open("/system/lib/libm.so", O_RDONLY|O_LARGEFILE|0x80000) = 3<br>
> 16525 open("/dev/__properties__",<br>
> O_RDONLY|O_LARGEFILE|O_NOFOLLOW|0x80000) = 3<br>
> 16525 open("build/temp.linux-armv7l-2.7/multiarch",<br>
> O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3<br>
> 16525 open("/data/data/jackpal.androidterm/kbox2/dev/null",<br>
> O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3<br>
> 16525 fork()                            = 16526<br>
> 16525 wait4(-1,  <unfinished ...><br>
> 16526 open("/acct/uid/10186/tasks", O_RDWR|O_CREAT|O_LARGEFILE, 0666)<br>
> = -1 EACCES (Permission denied)<br>
><br>
> See attached for remainder<br>
<br>
</div></div>Should I be posting this issue elsewhere?<br>
Is more information needed?<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)</div>
</div>