Hi Graham,

One year ago I installed successfully mod_wsgi-4.6.5  with python 3.7.1

now I am installing on a different server the same with python 3.8.1 (RHEL7)

I followed same steps but can not get the mod_wsgi.so created. can not find 
where I am wrong 
I found known error from May 2019 but the version I use include the 
corrections.


Here are the steps :

1) 
./configure --with-python=/usr/local/bin/python3.8

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.6
configure: creating ./config.status
config.status: creating Makefile


2)
make

/usr/bin/apxs -c -I/usr/local/include/python3.8 -DNDEBUG  -Wc,-g -Wc,-O2  
src/server/mod_wsgi.c src/server/wsgi_*.c -L/usr/local/lib 
-L/usr/local/lib/python3.8/config  -lpython3.8 -lcrypt -lpthread -ldl  
-lutil -lm -lm
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-I/usr/local/include/python3.8 -DNDEBUG  -c -o src/server/mod_wsgi.lo 
src/server/mod_wsgi.c && touch src/server/mod_wsgi.slo
src/server/mod_wsgi.c: In function 'Adapter_start_response':
src/server/mod_wsgi.c:2111:25: warning: variable 'thread_info' set but not 
used [-Wunused-but-set-variable]
         WSGIThreadInfo *thread_info;
                         ^
src/server/mod_wsgi.c: In function 'wsgi_python_child_init':
src/server/mod_wsgi.c:4349:9: warning: 'PyOS_AfterFork' is deprecated 
(declared at /usr/local/include/python3.8/intrcheck.h:18) 
[-Wdeprecated-declarations]
         PyOS_AfterFork();
         ^
src/server/mod_wsgi.c: In function 'wsgi_log_stack_traces':
src/server/mod_wsgi.c:9456:30: warning: assignment discards 'const' 
qualifier from pointer target type [enabled by default]
                     filename = 
PyUnicode_AsUTF8(current->f_code->co_filename);
                              ^
src/server/mod_wsgi.c:9457:26: warning: assignment discards 'const' 
qualifier from pointer target type [enabled by default]
                     name = PyUnicode_AsUTF8(current->f_code->co_name);
                          ^
src/server/mod_wsgi.c: In function 'wsgi_process_proxy_headers':
src/server/mod_wsgi.c:13883:25: warning: variable 'value' set but not used 
[-Wunused-but-set-variable]
             const char *value = NULL;
                         ^
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-I/usr/local/include/python3.8 -DNDEBUG  -c -o src/server/wsgi_apache.lo 
src/server/wsgi_apache.c && touch src/server/wsgi_apache.slo
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-I/usr/local/include/python3.8 -DNDEBUG  -c -o src/server/wsgi_buckets.lo 
src/server/wsgi_buckets.c && touch src/server/wsgi_buckets.slo
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-I/usr/local/include/python3.8 -DNDEBUG  -c -o src/server/wsgi_convert.lo 
src/server/wsgi_convert.c && touch src/server/wsgi_convert.slo
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-I/usr/local/include/python3.8 -DNDEBUG  -c -o src/server/wsgi_daemon.lo 
src/server/wsgi_daemon.c && touch src/server/wsgi_daemon.slo
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -g -O2 
-I/usr/local/include/python3.8 -DNDEBUG  -c -o src/server/wsgi_interp.lo 
src/server/wsgi_interp.c && touch src/server/wsgi_interp.slo
src/server/wsgi_interp.c: In function 'ShutdownInterpreter_call':
src/server/wsgi_interp.c:341:32: error: dereferencing pointer to incomplete 
type
         tstate = tstate->interp->tstate_head;
                                ^
src/server/wsgi_interp.c: In function 'newInterpreterObject':
src/server/wsgi_interp.c:440:22: error: dereferencing pointer to incomplete 
type
         while (interp->next)
                      ^
src/server/wsgi_interp.c:441:28: error: dereferencing pointer to incomplete 
type
             interp = interp->next;
                            ^
apxs:Error: Command failed with rc=65536
.
make: *** [src/server/mod_wsgi.la] Error 1

Thanks
Eric

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/885e3964-17db-4d7a-80d1-3c40948e374b%40googlegroups.com.

Reply via email to