Complie fine with apache 2.4.7/python 2.7.3 Ubuntu 12.0.4

./configure --with-apxs=/opt/bg/deploy/apache24/bin/apxs 
--with-python=/usr/bin/python
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for prctl... yes
checking Apache version... 2.4.7
configure: creating ./config.status
config.status: creating Makefile
make
/opt/bg/deploy/apache24/bin/apxs -c -I/usr/include/python2.7 -DNDEBUG 
-D_FORTIFY_SOURCE=2  -Wc,-g -Wc,-O2  mod_wsgi.c -L/usr/lib 
-L/usr/lib/python2.7/config  -lpython2.7 -lpthread -ldl  -lutil -lm
/opt/bg/deploy/apache24/build/libtool --silent --mode=compile gcc 
-std=gnu99 -prefer-pic -g  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/opt/bg/deploy/apache24/include  -I/opt/bg/deploy/apache24/include   
-I/opt/bg/deploy/apache24/include  -g -O2 -I/usr/include/python2.7 -DNDEBUG 
-D_FORTIFY_SOURCE=2  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
In file included from /usr/include/python2.7/Python.h:8:0,
                 from mod_wsgi.c:146:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" 
redefined [enabled by default]
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:26:0,
                 from /opt/bg/deploy/apache24/include/apr.h:164,
                 from /opt/bg/deploy/apache24/include/ap_hooks.h:39,
                 from /opt/bg/deploy/apache24/include/ap_config.h:25,
                 from /opt/bg/deploy/apache24/include/httpd.h:44,
                 from mod_wsgi.c:34:
/usr/include/features.h:164:0: note: this is the location of the previous 
definition
In file included from /usr/include/python2.7/Python.h:8:0,
                 from mod_wsgi.c:146:
/usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" 
redefined [enabled by default]
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:26:0,
                 from /opt/bg/deploy/apache24/include/apr.h:164,
                 from /opt/bg/deploy/apache24/include/ap_hooks.h:39,
                 from /opt/bg/deploy/apache24/include/ap_config.h:25,
                 from /opt/bg/deploy/apache24/include/httpd.h:44,
                 from mod_wsgi.c:34:
/usr/include/features.h:166:0: note: this is the location of the previous 
definition
/opt/bg/deploy/apache24/build/libtool --silent --mode=link gcc 
-std=gnu99    -o mod_wsgi.la  -rpath /opt/bg/deploy/apache24/modules 
-module -avoid-version    mod_wsgi.lo -L/usr/lib 
-L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm
make install
/opt/bg/deploy/apache24/bin/apxs -i -S 
LIBEXECDIR=/opt/bg/deploy/apache24/modules -n 'mod_wsgi' mod_wsgi.la
/opt/bg/deploy/apache24/build/instdso.sh 
SH_LIBTOOL='/opt/bg/deploy/apache24/build/libtool' mod_wsgi.la 
/opt/bg/deploy/apache24/modules
/opt/bg/deploy/apache24/build/libtool --mode=install install mod_wsgi.la 
/opt/bg/deploy/apache24/modules/
libtool: install: install .libs/mod_wsgi.so 
/opt/bg/deploy/apache24/modules/mod_wsgi.so
libtool: install: install .libs/mod_wsgi.lai 
/opt/bg/deploy/apache24/modules/mod_wsgi.la
libtool: install: install .libs/mod_wsgi.a 
/opt/bg/deploy/apache24/modules/mod_wsgi.a
libtool: install: chmod 644 /opt/bg/deploy/apache24/modules/mod_wsgi.a
libtool: install: ranlib /opt/bg/deploy/apache24/modules/mod_wsgi.a
libtool: finish: 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" 
ldconfig -n /opt/bg/deploy/apache24/modules


On Friday, May 16, 2014 10:05:35 AM UTC-7, Joonas Lehtolahti wrote:
>
> > If anyone has some time, I would very much appreciate you getting down   
> > the source code from github: 
> > 
> >   https://github.com/GrahamDumpleton/mod_wsgi/archive/develop.tar.gz 
> > 
> > or by cloning the develop branch of the github repo, and confirming for 
>   
> > me that it at least compiles okay on whatever OS, Python and Apache   
> > versions you have available. 
> > 
> > If you can drop me a quick note as to what OS/Python/Apache combinations 
>   
> > you tried on, that would be much appreciated. 
> > 
> > If you can try it on some WSGI application and let me know that it also 
>   
> > seems to work okay, that would be even better. 
> > 
> > Graham 
>
> I downloaded the tar.gz linked in original mail and attempted to compile   
> it with the following 4 configurations (I can try later with Arch on ARM   
> platform too). Summary: all compiled fine, but on Arch Linux there were   
> some warnings. 
>
>
> Debian Jessie, x86_64, Python 2.7.6 (from Debian repo), Apache 2.4.9 (from 
>   
> Debian repo) 
> commands: ./configure && make 
> - compiles fine, no warnings 
> - runs my WSGI app fine at least with quick testing 
>
>
> Debian Jessie, x86_64, Python 3.3.5 (from Debian repo), Apache 2.4.9 (from 
>   
> Debian repo) 
> commands: ./configure --with-python=/usr/bin/python3 && make 
> - compiles fine, no warnings 
> - I did not try running app since my app is not Py3 compatible yet 
>
>
> Arch Linux, x86_64, Python 3.4.0 (repo), Apache 2.4.9 (repo) 
> commands: ./configure && make 
> - compiles fine, with a warning, output below: 
> checking for apxs2... no 
> checking for apxs... /usr/bin/apxs 
> checking for gcc... gcc 
> checking whether the C compiler works... yes 
> checking for C compiler default output file name... a.out 
> checking for suffix of executables... 
> checking whether we are cross compiling... no 
> checking for suffix of object files... o 
> checking whether we are using the GNU C compiler... yes 
> checking whether gcc accepts -g... yes 
> checking for gcc option to accept ISO C89... none needed 
> checking for prctl... yes 
> checking Apache version... 2.4.9 
> checking for python... /usr/bin/python 
> configure: creating ./config.status 
> config.status: creating Makefile 
>
> /usr/bin/apxs -c -I/usr/include/python3.4m -DDYNAMIC_ANNOTATIONS_ENABLED=1 
>   
> -DNDEBUG  -Wc,-g -Wc,-O2  mod_wsgi.c -L/usr/lib   
> -L/usr/lib/python3.4/config-3.4m  -lpython3.4m -lpthread -ldl  -lutil -lm 
> /usr/share/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99   
> -prefer-pic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector   
> --param=ssp-buffer-size=4  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread   
> -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   
> -I/usr/include -g -O2 -I/usr/include/python3.4m   
> -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && 
>   
> touch mod_wsgi.slo 
> mod_wsgi.c: In function 'newInterpreterObject': 
> mod_wsgi.c:4955:25: warning: assignment from incompatible pointer type 
>                   wrapper = newShutdownInterpreterObject(func); 
>                                            ^ 
> /usr/share/apr-1/build/libtool --silent --mode=link gcc -std=gnu99   
> -Wl,-O1,--sort-common,--as-needed,-z,relro   -o mod_wsgi.la  -rpath   
> /usr/lib/httpd/modules -module -avoid-version    mod_wsgi.lo -L/usr/lib   
> -L/usr/lib/python3.4/config-3.4m -lpython3.4m -lpthread -ldl -lutil -lm 
>
>
> Arch Linux, x86_64, Python 2.7.6 (repo), Apache 2.4.9 (repo) 
> commands: ./configure --with-python=/usr/bin/python2 && make 
> - compiles fine, with warnings: 
> checking for apxs2... no 
> checking for apxs... /usr/bin/apxs 
> checking for gcc... gcc 
> checking whether the C compiler works... yes 
> checking for C compiler default output file name... a.out 
> checking for suffix of executables... 
> checking whether we are cross compiling... no 
> checking for suffix of object files... o 
> checking whether we are using the GNU C compiler... yes 
> checking whether gcc accepts -g... yes 
> checking for gcc option to accept ISO C89... none needed 
> checking for prctl... yes 
> checking Apache version... 2.4.9 
> configure: creating ./config.status 
> config.status: creating Makefile 
>
> /usr/bin/apxs -c -I/usr/include/python2.7 -DNDEBUG  -Wc,-g -Wc,-O2   
> mod_wsgi.c -L/usr/lib -L/usr/lib/python2.7/config  -lpython2.7 -lpthread   
> -ldl  -lutil -lm 
> /usr/share/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99   
> -prefer-pic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector   
> --param=ssp-buffer-size=4  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread   
> -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   
> -I/usr/include -g -O2 -I/usr/include/python2.7 -DNDEBUG  -c -o mod_wsgi.lo 
>   
> mod_wsgi.c && touch mod_wsgi.slo 
> In file included from /usr/include/python2.7/Python.h:8:0, 
>                   from mod_wsgi.c:146: 
> /usr/include/python2.7/pyconfig.h:1179:0: warning: "_POSIX_C_SOURCE"   
> redefined 
>   #define _POSIX_C_SOURCE 200112L 
>   ^ 
> In file included from /usr/include/sys/types.h:25:0, 
>                   from /usr/include/apr-1/apr.h:164, 
>                   from /usr/include/httpd/ap_hooks.h:39, 
>                   from /usr/include/httpd/ap_config.h:25, 
>                   from /usr/include/httpd/httpd.h:44, 
>                   from mod_wsgi.c:34: 
> /usr/include/features.h:230:0: note: this is the location of the previous 
>   
> definition 
>   # define _POSIX_C_SOURCE 200809L 
>   ^ 
> In file included from /usr/include/python2.7/Python.h:8:0, 
>                   from mod_wsgi.c:146: 
> /usr/include/python2.7/pyconfig.h:1201:0: warning: "_XOPEN_SOURCE"   
> redefined 
>   #define _XOPEN_SOURCE 600 
>   ^ 
> In file included from /usr/include/sys/types.h:25:0, 
>                   from /usr/include/apr-1/apr.h:164, 
>                   from /usr/include/httpd/ap_hooks.h:39, 
>                   from /usr/include/httpd/ap_config.h:25, 
>                   from /usr/include/httpd/httpd.h:44, 
>                   from mod_wsgi.c:34: 
> /usr/include/features.h:162:0: note: this is the location of the previous 
>   
> definition 
>   # define _XOPEN_SOURCE 700 
>   ^ 
> /usr/share/apr-1/build/libtool --silent --mode=link gcc -std=gnu99   
> -Wl,-O1,--sort-common,--as-needed,-z,relro   -o mod_wsgi.la  -rpath   
> /usr/lib/httpd/modules -module -avoid-version    mod_wsgi.lo -L/usr/lib   
> -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm 
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to