I already provided my response at:

http://stackoverflow.com/questions/12200323/error-when-using-make-for-mod-wsgi-3-3

Looks to be something wrong with your Python installation.

This used to only occur on MacOSX with older Python versions which
didn't support fat binaries with multiple architectures. Apple
provided their own patched version which fixed it, but original Python
distro would give this until it was somehow fixed.

You should post what configure options you use when building that
custom Python version and compare it to option used for standard
distro version.

Configure flags can be found in lib/pythonX.Y/config/Makefile of where
ever Python is installed.

You may have to replicate configure options that correctly installed
version uses.

Graham

On 31 August 2012 01:19, ldavidson <[email protected]> wrote:
> Hi,
>
> I am getting the following error when trying to run "make" on mod_wsgi 3.3
> compilation on CentOS x86_64:
>
> /usr/local/include/python2.6/pyport.h:694:2: error: #error "LONG_BIT
> definition appears wrong for platform (bad gcc/glibc config?)."
>
>
> Setup Info:
>
> My configure script:
>
> ./configure --prefix=/usr/local  --with-python=/usr/local/bin/python2.6
> --with-apxs=/usr/sbin/apxs
>
> make:
>
> LD_RUN_PATH=/usr/local/lib make
>
>
> file /usr/local/bin/python2.6:
> /usr/local/bin/python2.6: ELF 64-bit LSB executable, AMD x86-64, version 1
> (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not
> stripped
>
>  file /usr/sbin/httpd:
> /usr/sbin/httpd: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV),
> for GNU/Linux 2.6.9, stripped
>
>
>
> Please help.
>
> Thanks alot.
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/EYr7tyiaznMJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to