$./configure
checking for apxs2... no
checking for apxs... /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
checking for python... /home/usr1/.pyenv/shims/python
configure: creating ./config.status
config.status: creating Makefile
$make
/bin/apxs -c -I/home/usr1/.pyenv/versions/3.8.0/include/python3.8 -DNDEBUG -Wc,-g -Wc,-O2 src/server/mod_wsgi.c src/server/wsgi_*.c -L/home/usr1/.pyenv/versions/3.8.0/lib -L/home/usr1/.pyenv/versions/3.8.0/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/home/usr1/.pyenv/versions/3.8.0/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 /home/usr1/.pyenv/versions/3.8.0/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/home/usr1/.pyenv/versions/3.8.0/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/home/usr1/.pyenv/versions/3.8.0/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/home/usr1/.pyenv/versions/3.8.0/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/home/usr1/.pyenv/versions/3.8.0/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/home/usr1/.pyenv/versions/3.8.0/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] エラー 1
インストール済み
$yum list installed httpd*
httpd.x86_64 2.4.6-90.el7.centos
httpd-devel.x86_64 2.4.6-90.el7.centos
httpd-tools.x86_64 2.4.6-90.el7.centos
$yum list installed python-devel
python-devel.x86_64 2.7.5-80.el7_6
python version(pyenv)
$python --version
Python 3.8.0
DjangoとApacheの連携を試みているところですがmakeが実行できず解決方法を探しています。
ご教示願います。
回答1件
あなたの回答
tips
プレビュー