gssapi / mod_auth_gssapi

GSSAPI Negotiate module for Apache
Other
96 stars 40 forks source link

Error when building source with openssl 3 #285

Open JSyk79 opened 1 year ago

JSyk79 commented 1 year ago

Hi, I tried to build mod_auth_gssapi from source with opennsl 3 (3.0.8) a got below mentioned error. Same budil configuration with openssl 1.1.1 was OK. It is possible tu build actual release with openssl 3? Thanks

libtoolize: putting auxiliary files in .'. libtoolize: copying file./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. libtoolize: copying filem4/libtool.m4' libtoolize: copying file m4/ltoptions.m4' libtoolize: copying filem4/ltsugar.m4' libtoolize: copying file m4/ltversion.m4' libtoolize: copying filem4/lt~obsolete.m4' rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# CFLAGS="$CFLAGS -I /app/httpd/apache2/include -I $APR_PATH -I $APR_UTIL_PATH" rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# CPP_FLAGS="$CPP_FLAGS -I /app/httpd/apache2/include -I $APR_PATH -I $APR_UTIL_PATH" rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# export OPENSSL_LIBS="-L/app/httpd/apache2/lib -l:libssl.a -l:libcrypto.a -ldl -lpthread" rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# CPP_FLAGS="$CPP_FLAGS -I /app/httpd/apache2/include -I $APR_PATH -I $APR_UTIL_PATH" rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# export OPENSSL_LIBS="-L/app/httpd/apache2/lib -l:libssl.a -l:libcrypto.a -ldl -lpthread" rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# export PATH=/app/httpd/apache2/bin:$PATH rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# myRun "./configure --prefix=$PREFIXPATH --with-apxs=$PREFIXPATH/bin/apxs --with-apr=$PREFIXPATH/bin/apr-1-config" checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking for style of include used by make... GNU 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 dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for gcc option to accept ISO C99... -std=gnu99 checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99 checking for pkg-config... yes checking for bison... bison -y checking for bison... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for flex... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-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=gnu99... /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 whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-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=gnu99 object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -std=gnu99 -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes checking if gcc -std=gnu99 static flag -static works... no checking if gcc -std=gnu99 supports -c -o file.o... yes checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -std=gnu99 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 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 stdint.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for size_t... yes checking for uint32_t... yes checking for strcasecmp... yes checking for apache2... no checking for httpd... /app/httpd/apache2/bin/httpd configure: apxs found at /app/httpd/apache2/bin/apxs configure: apr found at /app/httpd/apache2/bin/apr-1-config checking for pkg-config... /bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for OPENSSL... yes checking for EVP_CIPHER_CTX_new... no checking for HMAC_CTX_new... no checking gssapi/gssapi.h usability... yes checking gssapi/gssapi.h presence... yes checking for gssapi/gssapi.h... yes checking gssapi/gssapi_ext.h usability... yes checking gssapi/gssapi_ext.h presence... yes checking for gssapi/gssapi_ext.h... yes checking gssapi/gssapi_krb5.h usability... yes checking gssapi/gssapi_krb5.h presence... yes checking for gssapi/gssapi_krb5.h... yes checking gssapi/gssapi_ntlmssp.h usability... no checking gssapi/gssapi_ntlmssp.h presence... no checking for gssapi/gssapi_ntlmssp.h... no checking for krb5-config... /app/httpd/apache2/bin/krb5-config checking for gss_accept_sec_context in -lgssapi_krb5... yes checking for gss_krb5_ccache_name... yes checking for gss_acquire_cred_with_password... yes checking for gss_acquire_cred_from... yes checking for gss_store_cred_into... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/asn1c/Makefile config.status: creating tests/Makefile config.status: creating contrib/mod_auth_gssapi.spec config.status: creating src/config.h config.status: src/config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# myRun "gmake clean" Making clean in src/asn1c gmake[1]: Entering directory /app/for_build/mod_auth_gssapi-1.6.5/src/asn1c' rm -rf .libs _libs test -z "libmagasn1.la" || rm -f libmagasn1.la rm -f ./so_locations rm -f *.o rm -f *.lo gmake[1]: Leaving directory/app/for_build/mod_auth_gssapi-1.6.5/src/asn1c' Making clean in src gmake[1]: Entering directory /app/for_build/mod_auth_gssapi-1.6.5/src' rm -rf .libs _libs rm -f mod_auth_gssapi.slo mod_auth_gssapi.la mod_auth_gssapi.lo .libs test -z "mod_auth_gssapi.la" || rm -f mod_auth_gssapi.la rm -f ./so_locations rm -f *.o rm -f *.lo gmake[1]: Leaving directory/app/for_build/mod_auth_gssapi-1.6.5/src' Making clean in tests gmake[1]: Entering directory /app/for_build/mod_auth_gssapi-1.6.5/tests' rm -rf .libs _libs rm -f *.lo gmake[1]: Leaving directory/app/for_build/mod_auth_gssapi-1.6.5/tests' gmake[1]: Entering directory /app/for_build/mod_auth_gssapi-1.6.5' rm -rf .libs _libs rm -f *.lo gmake[1]: Leaving directory/app/for_build/mod_auth_gssapi-1.6.5' rhitaa1at1:/app/for_build/mod_auth_gssapi-1.6.5# myRun "gmake" Making all in src/asn1c gmake[1]: Entering directory /app/for_build/mod_auth_gssapi-1.6.5/src/asn1c' depbase=echo asn_codecs_prim.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT asn_codecs_prim.lo -MD -MP -MF $depbase.Tpo -c -o asn_codecs_prim.lo asn_codecs_prim.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo ber_decoder.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT ber_decoder.lo -MD -MP -MF $depbase.Tpo -c -o ber_decoder.lo ber_decoder.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo ber_tlv_length.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT ber_tlv_length.lo -MD -MP -MF $depbase.Tpo -c -o ber_tlv_length.lo ber_tlv_length.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo ber_tlv_tag.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT ber_tlv_tag.lo -MD -MP -MF $depbase.Tpo -c -o ber_tlv_tag.lo ber_tlv_tag.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo BIT_STRING.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT BIT_STRING.lo -MD -MP -MF $depbase.Tpo -c -o BIT_STRING.lo BIT_STRING.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo BOOLEAN.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT BOOLEAN.lo -MD -MP -MF $depbase.Tpo -c -o BOOLEAN.lo BOOLEAN.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo constraints.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT constraints.lo -MD -MP -MF $depbase.Tpo -c -o constraints.lo constraints.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo constr_SEQUENCE.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT constr_SEQUENCE.lo -MD -MP -MF $depbase.Tpo -c -o constr_SEQUENCE.lo constr_SEQUENCE.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo constr_TYPE.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT constr_TYPE.lo -MD -MP -MF $depbase.Tpo -c -o constr_TYPE.lo constr_TYPE.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo der_encoder.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT der_encoder.lo -MD -MP -MF $depbase.Tpo -c -o der_encoder.lo der_encoder.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo INTEGER.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT INTEGER.lo -MD -MP -MF $depbase.Tpo -c -o INTEGER.lo INTEGER.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo NativeEnumerated.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT NativeEnumerated.lo -MD -MP -MF $depbase.Tpo -c -o NativeEnumerated.lo NativeEnumerated.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo NativeInteger.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT NativeInteger.lo -MD -MP -MF $depbase.Tpo -c -o NativeInteger.lo NativeInteger.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo OCTET_STRING.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT OCTET_STRING.lo -MD -MP -MF $depbase.Tpo -c -o OCTET_STRING.lo OCTET_STRING.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo per_decoder.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT per_decoder.lo -MD -MP -MF $depbase.Tpo -c -o per_decoder.lo per_decoder.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo per_encoder.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT per_encoder.lo -MD -MP -MF $depbase.Tpo -c -o per_encoder.lo per_encoder.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo per_opentype.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT per_opentype.lo -MD -MP -MF $depbase.Tpo -c -o per_opentype.lo per_opentype.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo per_support.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT per_support.lo -MD -MP -MF $depbase.Tpo -c -o per_support.lo per_support.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo xer_decoder.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT xer_decoder.lo -MD -MP -MF $depbase.Tpo -c -o xer_decoder.lo xer_decoder.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo xer_encoder.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT xer_encoder.lo -MD -MP -MF $depbase.Tpo -c -o xer_encoder.lo xer_encoder.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo xer_support.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT xer_support.lo -MD -MP -MF $depbase.Tpo -c -o xer_support.lo xer_support.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo GSSSessionData.lo | sed 's|[^/]$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT GSSSessionData.lo -MD -MP -MF $depbase.Tpo -c -o GSSSessionData.lo GSSSessionData.c &&\ mv -f $depbase.Tpo $depbase.Plo depbase=echo Uint32.lo | sed 's|[^/]*$|.deps/&|;s|.lo$||';\ /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT Uint32.lo -MD -MP -MF $depbase.Tpo -c -o Uint32.lo Uint32.c &&\ mv -f $depbase.Tpo $depbase.Plo /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=link gcc -std=gnu99 -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -o libmagasn1.la asn_codecs_prim.lo ber_decoder.lo ber_tlv_length.lo ber_tlv_tag.lo BIT_STRING.lo BOOLEAN.lo constraints.lo constr_SEQUENCE.lo constr_TYPE.lo der_encoder.lo INTEGER.lo NativeEnumerated.lo NativeInteger.lo OCTET_STRING.lo per_decoder.lo per_encoder.lo per_opentype.lo per_support.lo xer_decoder.lo xer_encoder.lo xer_support.lo GSSSessionData.lo Uint32.lo -lgssapi_krb5 gmake[1]: Leaving directory/app/for_build/mod_auth_gssapi-1.6.5/src/asn1c' Making all in src gmake[1]: Entering directory /app/for_build/mod_auth_gssapi-1.6.5/src' gmake all-am gmake[2]: Entering directory/app/for_build/mod_auth_gssapi-1.6.5/src' /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I ./asn1c -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -std=gnu99 -I /app/httpd/apache2/include -I -I -I /app/httpd/apache2/include -I -I -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/app/httpd/apache2/include -I/app/httpd/apache2/include -I/app/httpd/apache2/include/apr-1 -fPIC -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT mod_auth_gssapi_la-mod_auth_gssapi.lo -MD -MP -MF .deps/mod_auth_gssapi_la-mod_auth_gssapi.Tpo -c -o mod_auth_gssapi_la-mod_auth_gssapi.lo test -f 'mod_auth_gssapi.c' || echo './'mod_auth_gssapi.c mv -f .deps/mod_auth_gssapi_la-mod_auth_gssapi.Tpo .deps/mod_auth_gssapi_la-mod_auth_gssapi.Plo /app/httpd/apache2/build-1/libtool --silent --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I ./asn1c -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -std=gnu99 -I /app/httpd/apache2/include -I -I -I /app/httpd/apache2/include -I -I -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/app/httpd/apache2/include -I/app/httpd/apache2/include -I/app/httpd/apache2/include/apr-1 -fPIC -m64 -O3 -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -I /app/httpd/apache2/include -I -I -MT mod_auth_gssapi_la-crypto.lo -MD -MP -MF .deps/mod_auth_gssapi_la-crypto.Tpo -c -o mod_auth_gssapi_la-crypto.lo test -f 'crypto.c' || echo './'crypto.c In file included from /app/httpd/apache2/include/openssl/bio.h:30:0, from /app/httpd/apache2/include/openssl/evp.h:30, from crypto.c:4: crypto.c: In function ‘HMAC_CTX_new’: crypto.c:15:33: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX’ ctx = OPENSSL_malloc(sizeof(HMAC_CTX)); ^ /app/httpd/apache2/include/openssl/crypto.h:96:23: note: in definition of macro ‘OPENSSL_malloc’ CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE) ^ crypto.c:18:5: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration] HMAC_CTX_init(ctx); ^ crypto.c: In function ‘HMAC_CTX_free’: crypto.c:27:5: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration] HMAC_CTX_cleanup(ctx); ^ In file included from /app/httpd/apache2/include/openssl/bio.h:30:0, from /app/httpd/apache2/include/openssl/evp.h:30, from crypto.c:4: crypto.c: In function ‘EVP_CIPHER_CTX_new’: crypto.c:37:33: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ ctx = OPENSSL_malloc(sizeof(EVP_CIPHER_CTX)); ^ /app/httpd/apache2/include/openssl/crypto.h:96:23: note: in definition of macro ‘OPENSSL_malloc’ CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE) ^ crypto.c: In function ‘HMAC_BUFFER’: crypto.c:134:5: warning: ‘HMAC_CTX_new’ is deprecated (declared at crypto.c:11): Since OpenSSL 3.0 [-Wdeprecated-declarations] hmac_ctx = HMAC_CTX_new(); ^ crypto.c:137:5: warning: ‘HMAC_Init_ex’ is deprecated (declared at /app/httpd/apache2/include/openssl/hmac.h:43): Since OpenSSL 3.0 [-Wdeprecated-declarations] ret = HMAC_Init_ex(hmac_ctx, skey->hkey, ^ crypto.c:141:5: warning: ‘HMAC_Update’ is deprecated (declared at /app/httpd/apache2/include/openssl/hmac.h:45): Since OpenSSL 3.0 [-Wdeprecated-declarations] ret = HMAC_Update(hmac_ctx, buffer->value, buffer->length); ^ crypto.c:144:5: warning: ‘HMAC_Final’ is deprecated (declared at /app/httpd/apache2/include/openssl/hmac.h:47): Since OpenSSL 3.0 [-Wdeprecated-declarations] ret = HMAC_Final(hmac_ctx, result->value, &len); ^ crypto.c:147:5: warning: ‘HMAC_CTX_free’ is deprecated (declared at crypto.c:23): Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_CTX_free(hmac_ctx); ^ gmake[2]: [mod_auth_gssapi_la-crypto.lo] Error 1 gmake[2]: Leaving directory `/app/for_build/mod_auth_gssapi-1.6.5/src' gmake[1]: [all] Error 2 gmake[1]: Leaving directory `/app/for_build/mod_auth_gssapi-1.6.5/src' gmake: *** [all-recursive] Error 1 ERROR - command gmake not success

simo5 commented 1 year ago

How did you compile OpenSSL, did you compile it removing the deprecated functions ?

I do get the warnings of course, but with my build of OpenSSL (Fedora 37) the HMAC_CTX is still avaialable.

JSyk79 commented 1 year ago

OPENSSL is also builded from source with this configuration: ./config --prefix=$PREFIXPATH shared zlib So explicitly there is no config parameter with disable or enable deprecated function