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

mod_python.so: undefined symbol: sincos Action 'configtest' failed. #40

Closed
fneitzel opened this issue Mar 29, 2015 · 1 comment
Closed

Comments

@fneitzel
Copy link

I wanted to have a working python3 with Apache.
But I don't get it working. What am I doing wrong?

Platform: Linux-3.2.0-4-amd64 Debian-7.8 (3.2.65)
Apache-Version: 2.2.22
Python-Version: 3.5.0a2
mod_python version : 3.5.0-9d223c3

Compiled Python3.5 with CFLAGSFORSHARED="-fPIC" CCSHARED="-fPIC" CCSHARED="-fPIC"
Compiled mod_python from git-Source with: ./configure --with-apxs=/usr/bin/apxs2 --with-python=/usr/local/bin/python3.5 --with-mutex-dir=/tmp --with-max-locks=32

Apache has no errorlogs concerning the issue.
When testing with 'make test':

apache2: Syntax error on line 48 of /root/Downloads/mod_python/test/conf/test.conf: Cannot load /root/Downloads/mod_python/src/mod_python.so into server: /root/Downloads/mod_python/src/mod_python.so: undefined symbol: sincos
Stopping Apache...

...over and over again.

By installing from package: apt-get install libapache2-mod-python everything works, beacuse apache is using python2.7. But this is not what i wanted ...

How to tell Apache that he's not allowed to use Python 2.7 instead Python3.5 has to be used!
I red that the compiled mod_python is deciding which Python is used ... but how can i tell the packet manager that 'libapache2-mod-python' shall be installed for 3.5

EDIT: So this is the current install 👎
[Sun Mar 29 20:36:21 2015] [notice] Apache/2.2.22 (Debian) mod_python/3.3.1 Python/2.7.3 configured -- resuming normal operations

I hope someone can help me.
Best

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

No branches or pull requests

3 participants