make error : src/server/wsgi_interp.c:441:28: error: dereferencing pointer to incomplete type

74 views
Skip to first unread message

Eric Demarqui

unread,
Feb 11, 2020, 10:59:26 AM2/11/20
to modwsgi
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

Graham Dumpleton

unread,
Feb 11, 2020, 5:29:16 PM2/11/20
to mod...@googlegroups.com
Use the latest version of mod_wsgi source code if needing to using Python 3.7+. The error indicates you are using an older version of the mod_wsgi source code from before it supported Python 3.7.

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

Eric Demarqui

unread,
Feb 12, 2020, 6:27:04 AM2/12/20
to modwsgi
Hi Graham


I see not other version more recent than 22 October 2018.

I still get the same error at make.

let me know if I am wrong before I am reverting back to the older version of python 3.7.1 (instead of 3.8.1)

Thanks
Eric


Graham Dumpleton

unread,
Feb 12, 2020, 7:36:18 AM2/12/20
to mod...@googlegroups.com
Click on show newer releases at:


There are 4 newer releases.

Seems I forgot to add release notes to entry, so GitHub hides them.

--
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 modwsgi+u...@googlegroups.com.

Eric Demarqui

unread,
Feb 12, 2020, 8:32:38 AM2/12/20
to modwsgi
Ok got it . Thanks

Will try with the latest one. Thanks for your help
I ll keep you posted

Eric


Le mercredi 12 février 2020 13:36:18 UTC+1, Graham Dumpleton a écrit :
Click on show newer releases at:


There are 4 newer releases.

Seems I forgot to add release notes to entry, so GitHub hides them.
On 12 Feb 2020, at 10:27 pm, Eric Demarqui <eric.d...@gmail.com> wrote:

Hi Graham


I see not other version more recent than 22 October 2018.

I still get the same error at make.

let me know if I am wrong before I am reverting back to the older version of python 3.7.1 (instead of 3.8.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 mod...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages