Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling/linking failed #37

Closed
GoogleCodeExporter opened this issue Aug 25, 2015 · 1 comment
Closed

Compiling/linking failed #37

GoogleCodeExporter opened this issue Aug 25, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I unpack the source in /usr/src/pyo_version..
2. compile with "python ./setup.py build" and get a error message from linker
3. The behaviour is the same with different pyo versions

I get the error message:
pyo_0.6.2-src/src/objects/chorusmodule.c:507: undefined reference to `roundf'
and many other math functions (powf, sinf etc.) too. The above error message is 
the last one from the list i get.


What version of the product are you using? On what operating system?
I use Mageia 1, 64 bit with python 2.7

I try several options for compiling e.g. --use-double but ever the same errors.

Can anyone help on this issue. Please feel free to ask more, may I can help to 
solve this.

Many thanks in advance.

FM

Original issue reported on code.google.com by franky.3...@googlemail.com on 11 Oct 2012 at 7:54

@AS383
Copy link

AS383 commented Oct 17, 2016

I solve this problem by adding a following line to setup.py
libraries+=['m']
It configure liniker to link with lm (math library).
The diff is:
--- setup.py 2016-10-17 21:34:18.130941454 +0700
+++ setup_patched.py 2016-10-17 21:33:44.380942458 +0700
@@ -150,6 +150,7 @@
if build_with_jack_support:
libraries.append('jack')

+libraries+=['m']
extra_compile_args = ['-Wno-strict-prototypes', '-Wno-strict-aliasing', oflag, gflag]

extensions = []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants