mod_auth_openidc installation error on Apache 2.2.27 #847
Unanswered
jiang-ziqiang1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are trying to use mod_auth_openidc on Apache 2.2.27. (CentOS Linux release 7.6)
mod_auth_openidc version is 2.4.10.
I excuted '/configure' with parameters and it was finished successfully.
but when I excuted 'make' I got a error message as below.
configure:
[[email protected] mod_auth_openidc-2.4.10]$sudo ./configure --with-apxs=/usr/local/apache2/bin/apxs PKG_CONFIG_PATH=/usr/local/apache2/lib/pkgconfig JANSSON_CFLAGS=-I/usr/local/include JANSSON_LIBS='-L/usr/local/lib -ljansson' CJOSE_CFLAGS=-I/usr/local/include CJOSE_LIBS='-L/usr/local/lib -lcjose' OPENSSL_CFLAGS=-I/usr/local/include OPENSSL_LIBS='-L/usr/local/lib64'
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... -std=gnu11
checking whether gcc -std=gnu11 understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc -std=gnu11... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu11... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
checking the name lister (/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /bin/nm -B output from gcc -std=gnu11 object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu11 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu11 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu11 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu11 static flag -static works... no
checking if gcc -std=gnu11 supports -c -o file.o... yes
checking if gcc -std=gnu11 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu11 linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for apr-1, apr-util-1... yes
checking for libcurl... yes
checking for openssl... yes
checking for apr_memcache.h... yes
checking for jansson... yes
checking for cjose... yes
checking for libpcre... yes
checking for hiredis... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make:
[[email protected] mod_auth_openidc-2.4.10]$sudo make
depbase=
echo test/test-cmd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'
;gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT test/test-cmd.o -MD -MP -MF $depbase.Tpo -c -o test/test-cmd.o test/test-cmd.c &&
mv -f $depbase.Tpo $depbase.Po
depbase=
echo test/stub.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'
;gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT test/stub.o -MD -MP -MF $depbase.Tpo -c -o test/stub.o test/stub.c &&
mv -f $depbase.Tpo $depbase.Po
depbase=
echo src/mod_auth_openidc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/mod_auth_openidc.lo -MD -MP -MF $depbase.Tpo -c -o src/mod_auth_openidc.lo src/mod_auth_openidc.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/mod_auth_openidc.lo -MD -MP -MF src/.deps/mod_auth_openidc.Tpo -c src/mod_auth_openidc.c -fPIC -DPIC -o src/.libs/mod_auth_openidc.o
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/mod_auth_openidc.lo -MD -MP -MF src/.deps/mod_auth_openidc.Tpo -c src/mod_auth_openidc.c -o src/mod_auth_openidc.o >/dev/null 2>&1
depbase=
echo src/cache/file.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/file.lo -MD -MP -MF $depbase.Tpo -c -o src/cache/file.lo src/cache/file.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/file.lo -MD -MP -MF src/cache/.deps/file.Tpo -c src/cache/file.c -fPIC -DPIC -o src/cache/.libs/file.o
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/file.lo -MD -MP -MF src/cache/.deps/file.Tpo -c src/cache/file.c -o src/cache/file.o >/dev/null 2>&1
depbase=
echo src/cache/shm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/shm.lo -MD -MP -MF $depbase.Tpo -c -o src/cache/shm.lo src/cache/shm.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/shm.lo -MD -MP -MF src/cache/.deps/shm.Tpo -c src/cache/shm.c -fPIC -DPIC -o src/cache/.libs/shm.o
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/shm.lo -MD -MP -MF src/cache/.deps/shm.Tpo -c src/cache/shm.c -o src/cache/shm.o >/dev/null 2>&1
depbase=
echo src/cache/common.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/common.lo -MD -MP -MF $depbase.Tpo -c -o src/cache/common.lo src/cache/common.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/common.lo -MD -MP -MF src/cache/.deps/common.Tpo -c src/cache/common.c -fPIC -DPIC -o src/cache/.libs/common.o
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/cache/common.lo -MD -MP -MF src/cache/.deps/common.Tpo -c src/cache/common.c -o src/cache/common.o >/dev/null 2>&1
depbase=
echo src/oauth.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/oauth.lo -MD -MP -MF $depbase.Tpo -c -o src/oauth.lo src/oauth.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/oauth.lo -MD -MP -MF src/.deps/oauth.Tpo -c src/oauth.c -fPIC -DPIC -o src/.libs/oauth.o
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/oauth.lo -MD -MP -MF src/.deps/oauth.Tpo -c src/oauth.c -o src/oauth.o >/dev/null 2>&1
depbase=
echo src/proto.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/proto.lo -MD -MP -MF $depbase.Tpo -c -o src/proto.lo src/proto.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/proto.lo -MD -MP -MF src/.deps/proto.Tpo -c src/proto.c -fPIC -DPIC -o src/.libs/proto.o
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/proto.lo -MD -MP -MF src/.deps/proto.Tpo -c src/proto.c -o src/proto.o >/dev/null 2>&1
depbase=
echo src/config.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'
;/bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER="mod_auth_openidc-2.4.10" -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/config.lo -MD -MP -MF $depbase.Tpo -c -o src/config.lo src/config.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -std=gnu11 -DHAVE_CONFIG_H -I. -I./src -I/usr/local/apache2/include -DNAMEVER=mod_auth_openidc-2.4.10 -I./src -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -DUSE_MEMCACHE -g -O2 -MT src/config.lo -MD -MP -MF src/.deps/config.Tpo -c src/config.c -fPIC -DPIC -o src/.libs/config.o
src/config.c:420:15: error: static declaration of ‘ap_get_exec_line’ follows non-static declaration
static char * ap_get_exec_line(apr_pool_t *p,
^
In file included from src/mod_auth_openidc.h:57:0,
from src/config.c:44:
/usr/local/apache2/include/httpd.h:1899:20: note: previous declaration of ‘ap_get_exec_line’ was here
AP_DECLARE(char *) ap_get_exec_line(apr_pool_t *p,
^
make: *** [src/config.lo] Error 1
Can someone tell me how to fix it .thanks.
Beta Was this translation helpful? Give feedback.
All reactions