Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'error:': 0.07; 'subject:Question': 0.07; 'exit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'undefined': 0.09; 'subject:How': 0.10; 'python': 0.11; 'bug': 0.12; 'already,': 0.16; 'luck!': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Add': 0.16; 'url:detail': 0.16; 'url:issues': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; "haven't": 0.24; 'looks': 0.24; 'tracker': 0.26; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'url:code': 0.29; 'returned': 0.30; 'open': 0.33; 'running': 0.33; 'could': 0.34; 'problem': 0.35; 'but': 0.35; 'add': 0.35; 'building': 0.35; 'doubt': 0.36; 'much.': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'searching': 0.37; 'so,': 0.37; 'skip:- 20': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'that,': 0.38; 'skip:. 10': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'tell': 0.60; 'you.': 0.62; 'url:p': 0.64; 'subject:Build': 0.68; 'received:204': 0.75; 'article': 0.77; 'received:204.14': 0.84; 'officially': 0.91; '***': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? Date: Sat, 01 Nov 2014 03:52:44 -0700 References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 204.14.154.216 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414839182 news.xs4all.nl 2940 [2001:888:2000:d::a6]:58095 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80084 In article , Cyd Haselton wrote: > So, after trying various ways to add that flag before lpython in > setup.py, I stripped all --allow-shlib-undefined > --no-allow-shlib-undefined feom the Makefile, ran make clean, and > make. > > I still get the following error: > Modules/python.o \ > -lc -ldl -lm -L. -lpython2.7 -lm > ./libpython2.7.so: undefined reference to `sincos' > collect2: error: ld returned 1 exit status > make: *** [python] Error 1 I don't understand why you are seeing that problem *unless" you might be running into this issue that I found by searching for "sincos Android": https://code.google.com/p/android/issues/detail?id=38423 That looks awfully suspicious. If it isn't that, I don't know what to tell you. You could open an issue on the Python bug tracker (bugs.python.org) but we don't officially support Android so I doubt that will help much. If you haven't already, you might try asking on some Android forums; I know other oddities of building things on Android have been reported. Good luck! -- Ned Deily, nad@acm.org