Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to install mod_wsgi.so on my VPS runninr Centors 5.21. I installed python 2.6 and compiled mod_wsgi. It all worked with ought an error. When i include the mod_wsgi.so in Apache i get the error:

mod_wsgi.so: undefined symbol: ap_close_listeners ---

I searched google with no luck. Any ideas? Tnx.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

The mod_wsgi.so was compiled against a more recent version of Apache develelopment package than the version of Apache you are deploying to. Ensure that the core Apache package and development package version that you are compiling against are for the same version of Apache and you should be fine. Also ensure you are using most recent mod_wsgi version.

share|improve this answer
    
it was compiled on the same machine as the apache. i tried the latest mod_wsgi –  solomongaby Jun 8 '11 at 19:18
    
But are the apache core and dev packages you have installed the same version? Linux distributions split the two. The core package contains the Apache binary and the dev package the header files. The versions of each package need to be the same. Ensure you do an update of the core package to pick up latest in case it is an older version that doesn't have the ap_close_listeners() function as part of it. –  Graham Dumpleton Jun 9 '11 at 7:24
    
Specifically, the ap_close_listeners() function only became part of Apache back in 2005-11-15. So a very long time ago. The Apache header files you are compiling against though are for a version of Apache newer than that date. –  Graham Dumpleton Jun 9 '11 at 7:26
    
how can i check the apache core and dev? I know the apache running on this machine is 2.0.63 –  solomongaby Jun 9 '11 at 14:59
    
upgraded to apache2.2 and it seem to work –  solomongaby Jun 9 '11 at 20:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.