Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'error:': 0.07; 'subject:Question': 0.07; 'exit': 0.09; 'undefined': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'bug': 0.12; 'already,': 0.16; 'luck!': 0.16; 'subject:Add': 0.16; 'url:detail': 0.16; 'url:issues': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; 'cc:addr:python.org': 0.22; 'error': 0.23; "haven't": 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'tracker': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'url:code': 0.29; 'returned': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'figure': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; 'could': 0.34; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'building': 0.35; 'doubt': 0.36; 'much.': 0.36; 'url:listinfo': 0.36; 'shows': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'searching': 0.37; 'so,': 0.37; 'skip:- 20': 0.37; 'nov': 0.38; 'issue': 0.38; 'that,': 0.38; 'skip:. 10': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'tell': 0.60; 'you.': 0.62; 'url:p': 0.64; 'subject:Build': 0.68; 'article': 0.77; 'hammer': 0.84; 'officially': 0.91; 'device.': 0.93; '***': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5rIv44JbrWq7TjXpyI4Sq6bGKO0dYKQEySpvznDsQkc=; b=DUrKT7fLV67y2wowWYrKzX4YTXdueuSg0s+1sUiFO6i53e8RMr0Co/3ljIYJVe7+su /pqLeuCi7UqVDdVhTUBZI5wb94PbNSGq+iTHCXrRuY8qD39UlxYmAXNQSQG+5azX/Oz+ WplD+T5q5dQ4ulYajJW+JNFHkq1/sxfNwPFe49Y0czW1yVhg2EvtHWtRkIr4hnBWYJhl v1v6AKAcCewnS8MiwqpXdRDdbb7lYhwk9kn9QiqdT9VwWxIk8hFTHTKJDn0hX3j8lW9v opJ8lVsi/WyiH1zvZVh5/9eOJYM+1PdIEWTIAylSKRyVWbw2EkPuNHyTh8JLsUQXQ19S HHKg== MIME-Version: 1.0 X-Received: by 10.60.76.130 with SMTP id k2mr1102209oew.74.1414867636838; Sat, 01 Nov 2014 11:47:16 -0700 (PDT) In-Reply-To: References: Date: Sat, 1 Nov 2014 13:47:16 -0500 Subject: Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? From: Cyd Haselton To: Ned Deily Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414867645 news.xs4all.nl 2977 [2001:888:2000:d::a6]:38143 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80100 On Sat, Nov 1, 2014 at 5:52 AM, Ned Deily wrote: > 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 > > -- > https://mail.python.org/mailman/listinfo/python-list Hammer -> Head -> Nail. Sure enough, nm -D libm.so shows that sincos is NOT available in that library on my Android device. Now to figure out what to do about it. Nice find! Cyd