This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libsigsegv configure 2.14, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libsigsegv-2.14 --htmldir=/usr/share/doc/libsigsegv-2.14/html --with-sysroot=/ --libdir=/usr/lib64 --enable-shared --disable-static ## --------- ## ## Platform. ## ## --------- ## hostname = localhost uname -m = x86_64 uname -r = 6.1.10-gentoo-dist-hardened uname -s = Linux uname -v = #1 SMP PREEMPT_DYNAMIC Mon Feb 6 20:47:55 GMT 2023 /usr/bin/uname -p = AMD Ryzen 9 3950X 16-Core Processor /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /var/tmp/portage/dev-libs/libsigsegv-2.14/temp/clang-wrappers/ PATH: /usr/lib/ccache/bin/ PATH: /usr/lib/portage/python3.11/ebuild-helpers/xattr/ PATH: /usr/lib/portage/python3.11/ebuild-helpers/ PATH: /usr/local/sbin/ PATH: /usr/local/bin/ PATH: /usr/bin/ PATH: /opt/bin/ PATH: /usr/lib/llvm/17/bin/ PATH: /usr/lib/llvm/16/bin/ PATH: /usr/lib/llvm/15/bin/ PATH: /usr/lib/llvm/14/bin/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:2156: loading site script /usr/share/config.site | #!/bin/sh | # Copyright 2009-2014 Gentoo Foundation | # Distributed under the terms of the GNU General Public License v2 | | # provided by crossdev | SITEDIR="/usr/share/crossdev/include/site" | | # user override | ETC_SITEDIR="/etc/crossdev/include/site" | | config_site_arch() { | local host="${CHOST%%-*}" | | case ${host} in | arm*b*) host=armeb ;; | arm*) host=arm ;; | mips*l*) host=mipsel ;; | mips*) host=mips ;; | esac | | echo "${host}" | } | | config_site_names() { | local site_arch="$(config_site_arch)" | local sites="" | local x | | case ${CHOST} in | *-linux-*) sites="${sites} linux ${site_arch}-linux" ;; | *-darwin*) sites="${sites} darwin ${site_arch}-darwin" ;; | mingw*|*-mingw*) sites="${sites} mingw ${site_arch}-mingw" ;; | esac | | case ${CHOST} in | *-linux-uclibc*) sites="${sites} linux-uclibc ${site_arch}-linux-uclibc" ;; | *-linux-gnu*) sites="${sites} linux-gnu ${site_arch}-linux-gnu" ;; | *-linux-musl*) sites="${sites} linux-musl ${site_arch}-linux-musl" ;; | esac | | case ${CHOST} in | *-linux-uclibceabi*) sites="${sites} linux-uclibceabi ${site_arch}-linux-uclibceabi" ;; | *-linux-gnueabi*) sites="${sites} linux-gnueabi ${site_arch}-linux-gnueabi" ;; | esac | | for x in ${sites} ${CHOST}; do | [ -e "${SITEDIR}/${x}" ] && echo "${SITEDIR}/${x}" | [ -e "${ETC_SITEDIR}/${x}" ] && echo "${ETC_SITEDIR}/${x}" | done | } | | # Only kick in for cross-compiles so we don't break native builds #427184 | if [ "${CBUILD:-${CHOST}}" != "${CHOST}" ] ; then | sites="$(config_site_names)" | if [ -n "${sites}" ] ; then | for site in ${sites}; do | echo "${0##*/}: loading site script ${site}" | . "${site}" | done | fi | unset site sites | fi configure:2516: looking for aux files: ltmain.sh config.guess config.sub compile missing install-sh configure:2529: trying ./build-aux/ configure:2558: ./build-aux/ltmain.sh found configure:2558: ./build-aux/config.guess found configure:2558: ./build-aux/config.sub found configure:2558: ./build-aux/compile found configure:2558: ./build-aux/missing found configure:2540: ./build-aux/install-sh found configure:2737: checking for a BSD-compatible install configure:2810: result: /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c configure:2821: checking whether build environment is sane configure:2876: result: yes configure:3035: checking for a race-free mkdir -p configure:3079: result: /usr/bin/mkdir -p configure:3086: checking for gawk configure:3107: found /usr/bin/gawk configure:3118: result: gawk configure:3129: checking whether make sets $(MAKE) configure:3152: result: yes configure:3182: checking whether make supports nested variables configure:3200: result: yes configure:3356: checking for x86_64-pc-linux-gnu-gcc configure:3388: result: clang-16 configure:3786: checking for C compiler version configure:3795: clang-16 --version >&5 clang version 16.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg configure:3806: $? = 0 configure:3795: clang-16 -v >&5 clang version 16.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg System configuration file directory: /etc/clang Selected GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/13 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 ... rest of stderr output deleted ... configure:3806: $? = 0 configure:3795: clang-16 -V >&5 clang-16: error: argument to '-V' is missing (expected 1 value) clang-16: error: no input files configure:3806: $? = 1 configure:3795: clang-16 -qversion >&5 clang-16: error: unknown argument '-qversion'; did you mean '--version'? clang-16: error: no input files configure:3806: $? = 1 configure:3795: clang-16 -version >&5 clang-16: error: unknown argument '-version'; did you mean '--version'? clang-16: error: no input files configure:3806: $? = 1 configure:3826: checking whether the C compiler works configure:3848: clang-16 -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:3852: $? = 0 configure:3902: result: yes configure:3905: checking for C compiler default output file name configure:3907: result: a.out configure:3913: checking for suffix of executables configure:3920: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:3924: $? = 0 configure:3947: result: configure:3969: checking whether we are cross compiling configure:3977: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:3981: $? = 0 configure:3988: ./conftest configure:3992: $? = 0 configure:4007: result: no configure:4012: checking for suffix of object files configure:4035: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:4039: $? = 0 configure:4061: result: o configure:4065: checking whether the compiler supports GNU C configure:4085: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:4085: $? = 0 configure:4095: result: yes configure:4106: checking whether clang-16 accepts -g configure:4127: clang-16 -c -g conftest.c >&5 configure:4127: $? = 0 configure:4171: result: yes configure:4191: checking for clang-16 option to enable C11 features configure:4206: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:4206: $? = 0 configure:4224: result: none needed configure:4340: checking whether clang-16 understands -c and -o together configure:4363: clang-16 -c conftest.c -o conftest2.o configure:4366: $? = 0 configure:4363: clang-16 -c conftest.c -o conftest2.o configure:4366: $? = 0 configure:4378: result: yes configure:4398: checking whether make supports the include directive configure:4413: make -f confmf.GNU && cat confinc.out this is the am__doit target configure:4416: $? = 0 configure:4435: result: yes (GNU style) configure:4461: checking dependency style of clang-16 configure:4573: result: none configure:4593: checking how to run the C preprocessor configure:4619: clang-16 -E conftest.c configure:4619: $? = 0 configure:4634: clang-16 -E conftest.c conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:4634: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | /* end confdefs.h. */ | #include configure:4661: result: clang-16 -E configure:4675: clang-16 -E conftest.c configure:4675: $? = 0 configure:4690: clang-16 -E conftest.c conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:4690: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | /* end confdefs.h. */ | #include configure:4727: checking build system type configure:4742: result: x86_64-pc-linux-gnu configure:4762: checking host system type configure:4776: result: x86_64-pc-linux-gnu configure:4799: checking host platform configure:4824: result: x86_64-pc-linux6.1.10-gnu-glibc2.37 configure:4880: checking how to print strings configure:4907: result: printf configure:4928: checking for a sed that does not truncate output configure:4998: result: /usr/bin/sed configure:5016: checking for grep that handles long lines and -e configure:5080: result: /usr/bin/grep configure:5085: checking for egrep configure:5153: result: /usr/bin/grep -E configure:5158: checking for fgrep configure:5226: result: /usr/bin/grep -F configure:5262: checking for ld used by clang-16 configure:5330: result: /usr/bin/x86_64-pc-linux-gnu-ld configure:5337: checking if the linker (/usr/bin/x86_64-pc-linux-gnu-ld) is GNU ld configure:5353: result: yes configure:5365: checking for BSD- or MS-compatible name lister (nm) configure:5420: result: /usr/bin/x86_64-pc-linux-gnu-nm -B configure:5560: checking the name lister (/usr/bin/x86_64-pc-linux-gnu-nm -B) interface configure:5568: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:5571: /usr/bin/x86_64-pc-linux-gnu-nm -B "conftest.o" configure:5574: output 0000000000000000 B some_variable configure:5581: result: BSD nm configure:5584: checking whether ln -s works configure:5588: result: yes configure:5596: checking the maximum length of command line arguments configure:5733: result: 1572864 configure:5781: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format configure:5822: result: func_convert_file_noop configure:5829: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:5850: result: func_convert_file_noop configure:5857: checking for /usr/bin/x86_64-pc-linux-gnu-ld option to reload object files configure:5865: result: -r configure:5899: checking for x86_64-pc-linux-gnu-file configure:5934: result: no configure:5944: checking for file configure:5965: found /usr/bin/file configure:5976: result: file configure:6007: checking for x86_64-pc-linux-gnu-objdump configure:6028: found /usr/bin/x86_64-pc-linux-gnu-objdump configure:6039: result: x86_64-pc-linux-gnu-objdump configure:6116: checking how to recognize dependent libraries configure:6317: result: pass_all configure:6362: checking for x86_64-pc-linux-gnu-dlltool configure:6383: found /usr/bin/x86_64-pc-linux-gnu-dlltool configure:6394: result: x86_64-pc-linux-gnu-dlltool configure:6472: checking how to associate runtime and link libraries configure:6500: result: printf %s\n configure:6517: checking for x86_64-pc-linux-gnu-ar configure:6538: found /usr/bin/x86_64-pc-linux-gnu-ar configure:6549: result: x86_64-pc-linux-gnu-ar configure:6651: checking for archiver @FILE support configure:6669: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:6669: $? = 0 configure:6673: x86_64-pc-linux-gnu-ar cr libconftest.a @conftest.lst >&5 configure:6676: $? = 0 configure:6681: x86_64-pc-linux-gnu-ar cr libconftest.a @conftest.lst >&5 x86_64-pc-linux-gnu-ar: conftest.o: No such file or directory configure:6684: $? = 1 configure:6696: result: @ configure:6714: checking for x86_64-pc-linux-gnu-strip configure:6735: found /usr/bin/x86_64-pc-linux-gnu-strip configure:6746: result: x86_64-pc-linux-gnu-strip configure:6823: checking for x86_64-pc-linux-gnu-ranlib configure:6844: found /usr/bin/x86_64-pc-linux-gnu-ranlib configure:6855: result: x86_64-pc-linux-gnu-ranlib configure:7002: checking command to parse /usr/bin/x86_64-pc-linux-gnu-nm -B output from clang-16 object configure:7156: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:7159: $? = 0 configure:7163: /usr/bin/x86_64-pc-linux-gnu-nm -B conftest.o \| /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/ /p' | /usr/bin/sed '/ __gnu_lto/d' \> conftest.nm configure:7166: $? = 0 configure:7232: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c conftstm.o >&5 configure:7235: $? = 0 configure:7273: result: ok configure:7320: checking for sysroot configure:7351: result: / configure:7358: checking for a working dd configure:7402: result: /usr/bin/dd configure:7406: checking how to truncate binary pipes configure:7422: result: /usr/bin/dd bs=4096 count=1 configure:7559: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:7562: $? = 0 configure:7714: checking for x86_64-pc-linux-gnu-mt configure:7749: result: no configure:7759: checking for mt configure:7794: result: no configure:7814: checking if : is a manifest tool configure:7821: : '-?' configure:7829: result: no configure:8554: checking for stdio.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for stdlib.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for string.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for inttypes.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for stdint.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for strings.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for sys/stat.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for sys/types.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8554: checking for unistd.h configure:8554: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8554: $? = 0 configure:8554: result: yes configure:8579: checking for dlfcn.h configure:8579: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:8579: $? = 0 configure:8579: result: yes configure:8837: checking for objdir configure:8853: result: .libs configure:9117: checking if clang-16 supports -fno-rtti -fno-exceptions configure:9136: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -fno-rtti -fno-exceptions conftest.c >&5 configure:9140: $? = 0 configure:9153: result: yes configure:9511: checking for clang-16 option to produce PIC configure:9519: result: -fPIC -DPIC configure:9527: checking if clang-16 PIC flag -fPIC -DPIC works configure:9546: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -fPIC -DPIC -DPIC conftest.c >&5 configure:9550: $? = 0 configure:9563: result: yes configure:9592: checking if clang-16 static flag -static works configure:9621: result: yes configure:9636: checking if clang-16 supports -c -o file.o configure:9658: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -o out/conftest2.o conftest.c >&5 configure:9662: $? = 0 configure:9684: result: yes configure:9692: checking if clang-16 supports -c -o file.o configure:9740: result: yes configure:9773: checking whether the clang-16 linker (/usr/bin/x86_64-pc-linux-gnu-ld -m elf_x86_64) supports shared libraries configure:11041: result: yes configure:11078: checking whether -lc should be explicitly linked in configure:11087: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:11090: $? = 0 configure:11105: clang-16 -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1 configure:11108: $? = 0 configure:11122: result: no configure:11282: checking dynamic linker characteristics configure:11877: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Wl,-rpath -Wl,/foo conftest.c >&5 configure:11877: $? = 0 configure:12116: result: GNU/Linux ld.so configure:12238: checking how to hardcode library paths into programs configure:12263: result: immediate configure:12845: checking whether stripping libraries is possible configure:12854: result: yes configure:12896: checking if libtool supports shared libraries configure:12898: result: yes configure:12901: checking whether to build shared libraries configure:12926: result: yes configure:12929: checking whether to build static libraries configure:12933: result: no configure:12976: checking for sys/signal.h configure:12976: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:12976: $? = 0 configure:12976: result: yes configure:13009: checking for unistd.h configure:13009: result: yes configure:13018: checking for getpagesize configure:13042: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13042: $? = 0 configure:13051: result: yes configure:13060: checking for sysconf(_SC_PAGESIZE) configure:13084: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13084: $? = 0 configure:13093: result: yes configure:13102: checking for PAGESIZE in limits.h configure:13121: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:33:12: error: use of undeclared identifier 'PAGESIZE' int pgsz = PAGESIZE; ^ 1 error generated. configure:13121: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | /* end confdefs.h. */ | | #include | int | main (void) | { | int pgsz = PAGESIZE; | ; | return 0; | } configure:13130: result: no configure:13148: checking for mmap with MAP_ANON configure:13201: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13201: $? = 0 configure:13201: ./conftest configure:13201: $? = 0 configure:13213: result: yes configure:13222: checking for mmap with MAP_ANONYMOUS configure:13277: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13277: $? = 0 configure:13277: ./conftest configure:13277: $? = 0 configure:13289: result: yes configure:13298: checking for mmap of /dev/zero configure:13364: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13364: $? = 0 configure:13364: ./conftest configure:13364: $? = 0 configure:13376: result: yes configure:13411: checking whether a fault handler according to POSIX works configure:13559: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13559: $? = 0 configure:13559: ./conftest configure:13559: $? = 0 configure:13571: result: yes configure:13579: checking whether a fault handler according to Linux/i386 works configure:13728: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 In file included from conftest.c:38: /usr/include/asm/sigcontext.h:40:8: error: redefinition of '_fpx_sw_bytes' struct _fpx_sw_bytes { ^ /usr/include/bits/sigcontext.h:31:8: note: previous definition is here struct _fpx_sw_bytes ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:85:8: error: redefinition of '_fpreg' struct _fpreg { ^ /usr/include/bits/sigcontext.h:40:8: note: previous definition is here struct _fpreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:91:8: error: redefinition of '_fpxreg' struct _fpxreg { ^ /usr/include/bits/sigcontext.h:46:8: note: previous definition is here struct _fpxreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:98:8: error: redefinition of '_xmmreg' struct _xmmreg { ^ /usr/include/bits/sigcontext.h:53:8: note: previous definition is here struct _xmmreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:180:8: error: redefinition of '_ymmh_state' struct _ymmh_state { ^ /usr/include/bits/sigcontext.h:184:8: note: previous definition is here struct _ymmh_state ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:192:8: error: redefinition of '_xstate' struct _xstate { ^ /usr/include/bits/sigcontext.h:189:8: note: previous definition is here struct _xstate ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:317:8: error: redefinition of 'sigcontext' struct sigcontext { ^ /usr/include/bits/sigcontext.h:139:8: note: previous definition is here struct sigcontext ^ 7 errors generated. configure:13728: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, struct sigcontext sc) | { | void *fault_address = (void *) (sc.cr2); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:13740: result: no configure:13748: checking whether a fault handler according to old Linux/i386 works configure:13897: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:13897: $? = 0 configure:13897: ./conftest configure:13897: $? = 4 configure: program exited with status 4 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, unsigned int more) | { | void *fault_address = (void *) (((unsigned long *) &more) [21]); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:13909: result: no configure:13917: checking whether a fault handler according to Linux/m68k works configure:14068: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 In file included from conftest.c:38: /usr/include/asm/sigcontext.h:40:8: error: redefinition of '_fpx_sw_bytes' struct _fpx_sw_bytes { ^ /usr/include/bits/sigcontext.h:31:8: note: previous definition is here struct _fpx_sw_bytes ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:85:8: error: redefinition of '_fpreg' struct _fpreg { ^ /usr/include/bits/sigcontext.h:40:8: note: previous definition is here struct _fpreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:91:8: error: redefinition of '_fpxreg' struct _fpxreg { ^ /usr/include/bits/sigcontext.h:46:8: note: previous definition is here struct _fpxreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:98:8: error: redefinition of '_xmmreg' struct _xmmreg { ^ /usr/include/bits/sigcontext.h:53:8: note: previous definition is here struct _xmmreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:180:8: error: redefinition of '_ymmh_state' struct _ymmh_state { ^ /usr/include/bits/sigcontext.h:184:8: note: previous definition is here struct _ymmh_state ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:192:8: error: redefinition of '_xstate' struct _xstate { ^ /usr/include/bits/sigcontext.h:189:8: note: previous definition is here struct _xstate ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:317:8: error: redefinition of 'sigcontext' struct sigcontext { ^ /usr/include/bits/sigcontext.h:139:8: note: previous definition is here struct sigcontext ^ In file included from conftest.c:39: ././src/fault-linux-m68k-old.c:22:22: error: no member named 'sc_formatvec' in 'struct sigcontext' int format = (scp->sc_formatvec >> 12) & 0xf; ~~~ ^ 8 errors generated. configure:14068: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include | #include "./src/fault-linux-m68k-old.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (get_fault_addr (scp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:14080: result: no configure:14088: checking whether a fault handler according to Linux/PowerPC works configure:14237: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 In file included from conftest.c:38: /usr/include/asm/sigcontext.h:40:8: error: redefinition of '_fpx_sw_bytes' struct _fpx_sw_bytes { ^ /usr/include/bits/sigcontext.h:31:8: note: previous definition is here struct _fpx_sw_bytes ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:85:8: error: redefinition of '_fpreg' struct _fpreg { ^ /usr/include/bits/sigcontext.h:40:8: note: previous definition is here struct _fpreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:91:8: error: redefinition of '_fpxreg' struct _fpxreg { ^ /usr/include/bits/sigcontext.h:46:8: note: previous definition is here struct _fpxreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:98:8: error: redefinition of '_xmmreg' struct _xmmreg { ^ /usr/include/bits/sigcontext.h:53:8: note: previous definition is here struct _xmmreg ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:180:8: error: redefinition of '_ymmh_state' struct _ymmh_state { ^ /usr/include/bits/sigcontext.h:184:8: note: previous definition is here struct _ymmh_state ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:192:8: error: redefinition of '_xstate' struct _xstate { ^ /usr/include/bits/sigcontext.h:189:8: note: previous definition is here struct _xstate ^ In file included from conftest.c:38: /usr/include/asm/sigcontext.h:317:8: error: redefinition of 'sigcontext' struct sigcontext { ^ /usr/include/bits/sigcontext.h:139:8: note: previous definition is here struct sigcontext ^ conftest.c:73:40: error: no member named 'regs' in 'struct sigcontext' void *fault_address = (void *) (scp->regs->dar); ~~~ ^ 8 errors generated. configure:14237: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, struct sigcontext *scp) | { | void *fault_address = (void *) (scp->regs->dar); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:14249: result: no configure:14257: checking whether a fault handler according to Linux/HPPA works configure:14405: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:14405: $? = 0 configure:14405: ./conftest configure:14405: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, siginfo_t *sip, void *ucp) | { | void *fault_address = (void *) (sip->si_ptr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | action.sa_sigaction = &sigsegv_handler; | action.sa_flags = SA_SIGINFO; | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:14417: result: no configure:14425: checking whether a fault handler according to BSD works configure:14574: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:14574: $? = 0 configure:14574: ./conftest configure:14574: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr) | { | void *fault_address = (void *) (addr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:14586: result: no configure:14594: checking whether a fault handler according to IRIX works configure:14743: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:73:56: error: no member named 'sc_badvaddr' in 'struct sigcontext' void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr); ~~~ ^ 1 error generated. configure:14743: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:14755: result: no configure:14763: checking whether a fault handler according to HP-UX HPPA works configure:14922: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:76:50: error: no member named 'sc_sl' in 'struct sigcontext' void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); ~~~ ^ conftest.c:40:40: note: expanded from macro 'GET_CR21' #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) ^~ conftest.c:39:33: note: expanded from macro 'USE_64BIT_REGS' #define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID)) ^~ conftest.c:76:35: error: use of undeclared identifier 'SS_WIDEREGS' void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); ^ conftest.c:40:25: note: expanded from macro 'GET_CR21' #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) ^ conftest.c:39:48: note: expanded from macro 'USE_64BIT_REGS' #define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID)) ^ conftest.c:76:50: error: no member named 'sc_sl' in 'struct sigcontext' void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); ~~~ ^ conftest.c:40:40: note: expanded from macro 'GET_CR21' #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) ^~ conftest.c:39:66: note: expanded from macro 'USE_64BIT_REGS' #define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID)) ^~ conftest.c:76:35: error: use of undeclared identifier 'SS_NARROWISINVALID' void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); ^ conftest.c:40:25: note: expanded from macro 'GET_CR21' #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) ^ conftest.c:39:81: note: expanded from macro 'USE_64BIT_REGS' #define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID)) ^ conftest.c:76:50: error: no member named 'sc_sl' in 'struct sigcontext' void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); ~~~ ^ conftest.c:40:47: note: expanded from macro 'GET_CR21' #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) ^~ conftest.c:76:50: error: no member named 'sc_sl' in 'struct sigcontext' void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); ~~~ ^ conftest.c:40:76: note: expanded from macro 'GET_CR21' #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) ^~ 6 errors generated. configure:14922: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID)) | #define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21) | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:14934: result: no configure:14942: checking whether a fault handler according to OSF/1 Alpha works configure:15091: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:73:40: error: no member named 'sc_traparg_a0' in 'struct sigcontext' void *fault_address = (void *) (scp->sc_traparg_a0); ~~~ ^ 1 error generated. configure:15091: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (scp->sc_traparg_a0); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:15103: result: no configure:15111: checking whether a fault handler according to NetBSD Alpha works configure:15260: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 In file included from conftest.c:38: ././src/fault-netbsd-alpha.c:25:48: error: no member named 'sc_pc' in 'struct sigcontext' unsigned int instr = *((unsigned int *)(scp->sc_pc)); ~~~ ^ ././src/fault-netbsd-alpha.c:36:20: error: no member named 'sc_regs' in 'struct sigcontext' faultaddr = scp->sc_regs[(instr >> 16) & 0x1f]; ~~~ ^ 2 errors generated. configure:15260: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include "./src/fault-netbsd-alpha.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (get_fault_addr (scp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:15272: result: no configure:15280: checking whether a fault handler according to AIX works configure:15429: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:73:40: error: no member named 'sc_jmpbuf' in 'struct sigcontext' void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr); ~~~ ^ 1 error generated. configure:15429: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:15441: result: no configure:15449: checking whether a fault handler according to MacOSX/Darwin7 PowerPC works configure:15597: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 In file included from conftest.c:38: ././src/fault-macosdarwin7-powerpc.c:43:22: error: member reference type 'mcontext_t' is not a pointer; did you mean to use '.'? &ucp->uc_mcontext->ss.r0; /* r0..r31 */ ~~~~~~~~~~~~~~~~^~ . ././src/fault-macosdarwin7-powerpc.c:43:24: error: no member named 'ss' in 'mcontext_t' &ucp->uc_mcontext->ss.r0; /* r0..r31 */ ~~~~~~~~~~~~~~~~ ^ ././src/fault-macosdarwin7-powerpc.c:130:10: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] return (void *) addr; ^~~~~~~~~~~~~ conftest.c:117:21: error: incompatible function pointer types assigning to 'void (*)(int, siginfo_t *, void *)' from 'void (*)(int, siginfo_t *, ucontext_t *)' (aka 'void (*)(int, siginfo_t *, struct ucontext_t *)') [-Wincompatible-function-pointer-types] action.sa_sigaction = &sigsegv_handler; ^ ~~~~~~~~~~~~~~~~ 1 warning and 3 errors generated. configure:15597: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include "./src/fault-macosdarwin7-powerpc.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp) | { | void *fault_address = (void *) (get_fault_addr (sip, ucp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | action.sa_sigaction = &sigsegv_handler; | action.sa_flags = SA_SIGINFO; | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:15609: result: no configure:15618: checking whether a fault handler according to MacOSX/Darwin5 PowerPC works configure:15767: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 In file included from conftest.c:38: ././src/fault-macosdarwin5-powerpc.c:36:48: error: no member named 'sc_ir' in 'struct sigcontext' unsigned int instr = *((unsigned int *) scp->sc_ir); ~~~ ^ ././src/fault-macosdarwin5-powerpc.c:37:48: error: no member named 'sc_regs' in 'struct sigcontext' unsigned int *regs = &((unsigned int *) scp->sc_regs)[2]; ~~~ ^ ././src/fault-macosdarwin5-powerpc.c:123:10: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] return (void *) addr; ^~~~~~~~~~~~~ 1 warning and 2 errors generated. configure:15767: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | #include "./src/fault-macosdarwin5-powerpc.c" | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (get_fault_addr (scp)); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:15779: result: no configure:15788: checking whether a fault handler according to Hurd works configure:15937: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:73:25: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] void *fault_address = (void *) (code); ^~~~~~~~~~~~~~~ 1 warning generated. configure:15937: $? = 0 configure:15937: ./conftest configure:15937: $? = 3 configure: program exited with status 3 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | /* end confdefs.h. */ | | | #include | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | #include | #include | #if HAVE_MMAP_DEVZERO | # include | # ifndef MAP_FILE | # define MAP_FILE 0 | # endif | #endif | #ifndef PROT_NONE | # define PROT_NONE 0 | #endif | #if HAVE_MMAP_ANON | # define zero_fd -1 | # define map_flags MAP_ANON | MAP_PRIVATE | #elif HAVE_MMAP_ANONYMOUS | # define zero_fd -1 | # define map_flags MAP_ANONYMOUS | MAP_PRIVATE | #elif HAVE_MMAP_DEVZERO | static int zero_fd; | # define map_flags MAP_FILE | MAP_PRIVATE | #endif | #if defined __NetBSD__ && (defined __sparc__ || defined __sparc64__) | /* getpagesize () is 0x1000 or 0x2000, depending on hardware. */ | # include | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (getpagesize () - 1) | #elif defined __linux__ && (defined __s390__ || defined __s390x__) | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS (0x1000UL - 1) | #else | # define SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS 0UL | #endif | unsigned long page; | int handler_called = 0; | void sigsegv_handler (int sig, int code, struct sigcontext *scp) | { | void *fault_address = (void *) (code); | handler_called++; | if (handler_called == 10) | exit (4); | if (fault_address | != (void*)((page + 0x678) & ~SIGSEGV_FAULT_ADDRESS_ROUNDOFF_BITS)) | exit (3); | if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0) | exit (2); | } | void crasher (unsigned long p) | { | *(int *) (p + 0x678) = 42; | } | int main () | { | void *p; | struct sigaction action; | /* Preparations. */ | #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO | zero_fd = open ("/dev/zero", O_RDONLY, 0644); | #endif | /* Setup some mmaped memory. */ | #ifdef __hpux | /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete | freedom about the address range. */ | p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #else | p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0); | #endif | if (p == (void *)(-1)) | exit (2); | page = (unsigned long) p; | /* Make it read-only. */ | #if defined __linux__ && defined __sparc__ | /* On Linux 2.6.26/SPARC64, PROT_READ has the same effect as | PROT_READ | PROT_WRITE. */ | if (mprotect ((void *) page, 0x10000, PROT_NONE) < 0) | #else | if (mprotect ((void *) page, 0x10000, PROT_READ) < 0) | #endif | exit (2); | /* Install the SIGSEGV handler. */ | sigemptyset(&action.sa_mask); | | action.sa_handler = (void (*) (int)) &sigsegv_handler; | action.sa_flags = 0; | | sigaction (SIGSEGV, &action, (struct sigaction *) NULL); | sigaction (SIGBUS, &action, (struct sigaction *) NULL); | /* The first write access should invoke the handler and then complete. */ | crasher (page); | /* The second write access should not invoke the handler. */ | crasher (page); | /* Check that the handler was called only once. */ | if (handler_called != 1) | exit (1); | /* Test passed! */ | return 0; | } configure:15949: result: no configure:16088: checking for ucontext.h configure:16088: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:16088: $? = 0 configure:16088: result: yes configure:16369: checking for the fault handler specifics configure:16380: result: fault-linux-i386.h configure:16401: checking if the system supports catching SIGSEGV configure:16403: result: yes configure:16417: checking for stack direction configure:16532: result: grows down configure:16550: checking for prmap_t in sys/procfs.h configure:16572: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 conftest.c:43:1: error: use of undeclared identifier 'prmap_t' prmap_t x; ^ 1 error generated. configure:16572: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | #define HAVE_UCONTEXT_H 1 | #define CFG_FAULT "fault-linux-i386.h" | #define CFG_MACHFAULT "fault-none.h" | #define STACK_DIRECTION -1 | /* end confdefs.h. */ | | /* Persuade Solaris OpenIndiana to declare 'struct sigaltstack'. */ | #define __EXTENSIONS__ 1 | #include | | int | main (void) | { | prmap_t x; | ; | return 0; | } configure:16582: result: no configure:16584: checking for mquery configure:16584: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 /usr/bin/x86_64-pc-linux-gnu-ld.bfd: /var/tmp/portage/dev-libs/libsigsegv-2.14/temp/conftest-f15d5c.o: in function `main': /var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/conftest.c:62: undefined reference to `mquery' clang-16: error: linker command failed with exit code 1 (use -v to see invocation) configure:16584: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | #define HAVE_UCONTEXT_H 1 | #define CFG_FAULT "fault-linux-i386.h" | #define CFG_MACHFAULT "fault-none.h" | #define STACK_DIRECTION -1 | /* end confdefs.h. */ | /* Define mquery to an innocuous variant, in case declares mquery. | For example, HP-UX 11i declares gettimeofday. */ | #define mquery innocuous_mquery | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char mquery (void); below. */ | | #include | #undef mquery | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char mquery (void); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_mquery || defined __stub___mquery | choke me | #endif | | int | main (void) | { | return mquery (); | ; | return 0; | } configure:16584: result: no configure:16590: checking for mincore configure:16590: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:16590: $? = 0 configure:16590: result: yes configure:16646: checking for getrlimit configure:16646: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:16646: $? = 0 configure:16646: result: yes configure:16652: checking for setrlimit configure:16652: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:16652: $? = 0 configure:16652: result: yes configure:16664: checking for sigaltstack configure:16664: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:16664: $? = 0 configure:16664: result: yes configure:16664: checking for setrlimit configure:16664: result: yes configure:16681: checking for stack_t configure:16681: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:16681: $? = 0 configure:16681: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 conftest.c:52:22: error: expected expression if (sizeof ((stack_t))) ^ 1 error generated. configure:16681: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | #define HAVE_UCONTEXT_H 1 | #define CFG_FAULT "fault-linux-i386.h" | #define CFG_MACHFAULT "fault-none.h" | #define STACK_DIRECTION -1 | #define HAVE_MINCORE 1 | #define HAVE_STACKVMA 1 | #define CFG_STACKVMA "stackvma-linux.c" | #define HAVE_GETRLIMIT 1 | #define HAVE_SETRLIMIT 1 | #define HAVE_SIGALTSTACK 1 | #define HAVE_SETRLIMIT 1 | /* end confdefs.h. */ | | #include | #if HAVE_SYS_SIGNAL_H | # include | #endif | | | int | main (void) | { | if (sizeof ((stack_t))) | return 0; | ; | return 0; | } configure:16681: result: yes configure:16700: checking for working sigaltstack configure:16829: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:16829: $? = 0 configure:16829: ./conftest configure:16829: $? = 0 configure:16846: result: yes configure:16853: checking for correct stack_t interpretation configure:16916: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:16916: $? = 0 configure:16916: ./conftest configure:16916: $? = 0 configure:16928: result: yes configure:16954: checking whether a signal handler can be left through longjmp configure:17055: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:17055: $? = 0 configure:17055: ./conftest configure:17055: $? = 0 configure:17067: result: yes configure:17075: checking whether a signal handler can be left through longjmp and sigaltstack configure:17186: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:17186: $? = 0 configure:17186: ./conftest configure:17186: $? = 0 configure:17198: result: yes configure:17206: checking whether a signal handler can be left through longjmp and setcontext configure:17322: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:17322: $? = 0 configure:17322: ./conftest configure:17322: $? = 0 configure:17334: result: yes configure:17356: checking whether a signal handler can be left through siglongjmp configure:17455: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:17455: $? = 0 configure:17455: ./conftest configure:17455: $? = 0 configure:17467: result: yes configure:17475: checking whether a signal handler can be left through siglongjmp and sigaltstack configure:17584: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:17584: $? = 0 configure:17584: ./conftest configure:17584: $? = 0 configure:17596: result: yes configure:17604: checking whether a signal handler can be left through siglongjmp and setcontext configure:17718: clang-16 -o conftest -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 conftest.c >&5 configure:17718: $? = 0 configure:17718: ./conftest configure:17718: $? = 0 configure:17730: result: yes configure:17768: checking if the system supports catching stack overflow configure:17858: result: yes configure:17996: checking for uintptr_t configure:17996: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 configure:17996: $? = 0 configure:17996: clang-16 -c -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs conftest.c >&5 conftest.c:76:24: error: expected expression if (sizeof ((uintptr_t))) ^ 1 error generated. configure:17996: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libsigsegv" | #define PACKAGE_TARNAME "libsigsegv" | #define PACKAGE_VERSION "2.14" | #define PACKAGE_STRING "libsigsegv 2.14" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "libsigsegv" | #define VERSION "2.14" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define STDC_HEADERS 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SYS_SIGNAL_H 1 | #define CFG_SIGNALS "signals.h" | #define HAVE_UNISTD_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_SYSCONF_PAGESIZE 1 | #define HAVE_MMAP_ANON 1 | #define HAVE_MMAP_ANONYMOUS 1 | #define HAVE_MMAP_DEVZERO 1 | #define HAVE_UCONTEXT_H 1 | #define CFG_FAULT "fault-linux-i386.h" | #define CFG_MACHFAULT "fault-none.h" | #define STACK_DIRECTION -1 | #define HAVE_MINCORE 1 | #define HAVE_STACKVMA 1 | #define CFG_STACKVMA "stackvma-linux.c" | #define HAVE_GETRLIMIT 1 | #define HAVE_SETRLIMIT 1 | #define HAVE_SIGALTSTACK 1 | #define HAVE_SETRLIMIT 1 | #define HAVE_WORKING_SIGALTSTACK 1 | #define CFG_LEAVE "leave-nop.c" | #define CFG_HANDLER "handler-unix.c" | /* end confdefs.h. */ | #include | #ifdef HAVE_STDIO_H | # include | #endif | #ifdef HAVE_STDLIB_H | # include | #endif | #ifdef HAVE_STRING_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | int | main (void) | { | if (sizeof ((uintptr_t))) | return 0; | ; | return 0; | } configure:17996: result: yes configure:18037: checking whether to activate relocatable installation configure:18053: result: no configure:18173: checking that generated files are newer than configure configure:18179: result: done configure:18210: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by libsigsegv config.status 2.14, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on localhost config.status:1125: creating Makefile config.status:1125: creating src/Makefile config.status:1125: creating src/sigsegv.h config.status:1125: creating tests/Makefile config.status:1125: creating config.h config.status:1354: executing depfiles commands config.status:1354: executing libtool commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build='x86_64-pc-linux-gnu' ac_cv_c_compiler_gnu='yes' ac_cv_c_undeclared_builtin_options='none needed' ac_cv_env_CC_set='set' ac_cv_env_CC_value='clang-16' ac_cv_env_CFLAGS_set='set' ac_cv_env_CFLAGS_value='-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs' ac_cv_env_CPPFLAGS_set='' ac_cv_env_CPPFLAGS_value='' ac_cv_env_CPP_set='' ac_cv_env_CPP_value='' ac_cv_env_LDFLAGS_set='set' ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 ' ac_cv_env_LIBS_set='' ac_cv_env_LIBS_value='' ac_cv_env_LT_SYS_LIBRARY_PATH_set='' ac_cv_env_LT_SYS_LIBRARY_PATH_value='' ac_cv_env_build_alias_set='set' ac_cv_env_build_alias_value='x86_64-pc-linux-gnu' ac_cv_env_host_alias_set='set' ac_cv_env_host_alias_value='x86_64-pc-linux-gnu' ac_cv_env_target_alias_set='' ac_cv_env_target_alias_value='' ac_cv_func_getrlimit='yes' ac_cv_func_mincore='yes' ac_cv_func_mquery='no' ac_cv_func_setrlimit='yes' ac_cv_func_sigaltstack='yes' ac_cv_header_dlfcn_h='yes' ac_cv_header_inttypes_h='yes' ac_cv_header_stdint_h='yes' ac_cv_header_stdio_h='yes' ac_cv_header_stdlib_h='yes' ac_cv_header_string_h='yes' ac_cv_header_strings_h='yes' ac_cv_header_sys_signal_h='yes' ac_cv_header_sys_stat_h='yes' ac_cv_header_sys_types_h='yes' ac_cv_header_ucontext_h='yes' ac_cv_header_unistd_h='yes' ac_cv_host='x86_64-pc-linux-gnu' ac_cv_objext='o' ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_FGREP='/usr/bin/grep -F' ac_cv_path_GREP='/usr/bin/grep' ac_cv_path_GZIP_PROG='/usr/sbin/pigz' ac_cv_path_SED='/usr/bin/sed' ac_cv_path_install='/usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c' ac_cv_path_lt_DD='/usr/bin/dd' ac_cv_path_mkdir='/usr/bin/mkdir' ac_cv_prog_AR='x86_64-pc-linux-gnu-ar' ac_cv_prog_AWK='gawk' ac_cv_prog_CC='clang-16' ac_cv_prog_CPP='clang-16 -E' ac_cv_prog_DLLTOOL='x86_64-pc-linux-gnu-dlltool' ac_cv_prog_OBJDUMP='x86_64-pc-linux-gnu-objdump' ac_cv_prog_RANLIB='x86_64-pc-linux-gnu-ranlib' ac_cv_prog_STRIP='x86_64-pc-linux-gnu-strip' ac_cv_prog_ac_ct_FILECMD='file' ac_cv_prog_cc_c11='' ac_cv_prog_cc_g='yes' ac_cv_prog_cc_stdc='' ac_cv_prog_make_make_set='yes' ac_cv_type_stack_t='yes' ac_cv_type_uintptr_t='yes' am_cv_CC_dependencies_compiler_type='none' am_cv_make_support_nested_variables='yes' am_cv_prog_cc_c_o='yes' gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' lt_cv_ar_at_file='@' lt_cv_archive_cmds_need_lc='no' lt_cv_deplibs_check_method='pass_all' lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file='' lt_cv_ld_reload_flag='-r' lt_cv_nm_interface='BSD nm' lt_cv_objdir='.libs' lt_cv_path_LD='/usr/bin/x86_64-pc-linux-gnu-ld' lt_cv_path_NM='/usr/bin/x86_64-pc-linux-gnu-nm -B' lt_cv_path_mainfest_tool='no' lt_cv_prog_compiler_c_o='yes' lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_works='yes' lt_cv_prog_compiler_rtti_exceptions='yes' lt_cv_prog_compiler_static_works='yes' lt_cv_prog_gnu_ld='yes' lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath='yes' lt_cv_sys_global_symbol_pipe='/usr/bin/sed -n -e '"'"'s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'"'"' | /usr/bin/sed '"'"'/ __gnu_lto/d'"'" lt_cv_sys_global_symbol_to_c_name_address='/usr/bin/sed -n -e '"'"'s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'"'"' -e '"'"'s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'"'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='/usr/bin/sed -n -e '"'"'s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'"'"' -e '"'"'s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'"'"' -e '"'"'s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'"'" lt_cv_sys_global_symbol_to_cdecl='/usr/bin/sed -n -e '"'"'s/^T .* \(.*\)$/extern int \1();/p'"'"' -e '"'"'s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'"'" lt_cv_sys_global_symbol_to_import='' lt_cv_sys_max_cmd_len='1572864' lt_cv_to_host_file_cmd='func_convert_file_noop' lt_cv_to_tool_file_cmd='func_convert_file_noop' lt_cv_truncate_bin='/usr/bin/dd bs=4096 count=1' sv_cv_fault_aix='no' sv_cv_fault_bsd='no' sv_cv_fault_hpux_hppa='no' sv_cv_fault_hurd='no' sv_cv_fault_include='fault-linux-i386.h' sv_cv_fault_irix='no' sv_cv_fault_linux_hppa='no' sv_cv_fault_linux_i386='no' sv_cv_fault_linux_i386_old='no' sv_cv_fault_linux_m68k='no' sv_cv_fault_linux_powerpc='no' sv_cv_fault_macosdarwin5_ppc='no' sv_cv_fault_macosdarwin7_ppc='no' sv_cv_fault_netbsd_alpha='no' sv_cv_fault_osf_alpha='no' sv_cv_fault_posix='yes' sv_cv_func_getpagesize='yes' sv_cv_func_mmap_anon='yes' sv_cv_func_mmap_anonymous='yes' sv_cv_func_mmap_devzero='yes' sv_cv_func_sysconf_pagesize='yes' sv_cv_have_sigsegv_recovery='yes' sv_cv_have_stack_overflow_recovery='yes' sv_cv_host='x86_64-pc-linux6.1.10-gnu-glibc2.37' sv_cv_leave_handler_longjmp='yes' sv_cv_leave_handler_longjmp_setcontext='yes' sv_cv_leave_handler_longjmp_sigaltstack='yes' sv_cv_leave_handler_siglongjmp='yes' sv_cv_leave_handler_siglongjmp_setcontext='yes' sv_cv_leave_handler_siglongjmp_sigaltstack='yes' sv_cv_macro_pagesize='no' sv_cv_procfsvma='no' sv_cv_sigaltstack='yes' sv_cv_sigaltstack_low_base='yes' sv_cv_stack_direction='-1' sv_cv_stack_direction_msg='grows down' ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} '\''/var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/build-aux/missing'\'' aclocal-1.16' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='#' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='x86_64-pc-linux-gnu-ar' AUTOCONF='${SHELL} '\''/var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/build-aux/missing'\'' autoconf' AUTOHEADER='${SHELL} '\''/var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/build-aux/missing'\'' autoheader' AUTOMAKE='${SHELL} '\''/var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/build-aux/missing'\'' automake-1.16' AWK='gawk' CC='clang-16' CCDEPMODE='depmode=none' CFG_HANDLER='handler-unix.c' CFG_LEAVE='leave-nop.c' CFG_STACKVMA='stackvma-linux.c' CFLAGS='-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fdebug-default-version=4 -gdwarf-4 -Werror=implicit-function-declaration -Werror=implicit-int -Wreturn-type -Wformat -Wint-conversion -Waddress -Warray-bounds -Wfree-nonheap-object -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Wint-conversion -Wint-to-pointer-cast -Wmain -Wnonnull -Wodr -Wparentheses -Wreturn-type -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstring-compare -Wuninitialized -Wunused-value -Wvarargs' CPP='clang-16 -E' CPPFLAGS='' CSCOPE='cscope' CTAGS='ctags' CYGPATH_W='echo' CYGWIN_FALSE='' CYGWIN_TRUE='#' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DLLTOOL='x86_64-pc-linux-gnu-dlltool' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' ENABLE_EFAULT_FALSE='' ENABLE_EFAULT_TRUE='#' ETAGS='etags' EXEEXT='' FAULT_CONTEXT='ucontext_t' FAULT_CONTEXT_INCLUDE='#include ' FGREP='/usr/bin/grep -F' FILECMD='file' GREP='/usr/bin/grep' HAVE_SIGSEGV_RECOVERY='1' HAVE_STACK_OVERFLOW_RECOVERY='1' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/usr/bin/x86_64-pc-linux-gnu-ld -m elf_x86_64' LDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs -ggdb3 -fdebug-default-version=4 -gdwarf-4 ' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='ln -s' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MAKEINFO='${SHELL} '\''/var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/build-aux/missing'\'' makeinfo' MANIFEST_TOOL=':' MKDIR_P='/usr/bin/mkdir -p' NM='/usr/bin/x86_64-pc-linux-gnu-nm -B' NMEDIT='' OBJDUMP='x86_64-pc-linux-gnu-objdump' OBJEXT='o' OTOOL64='' OTOOL='' PACKAGE='libsigsegv' PACKAGE_BUGREPORT='' PACKAGE_NAME='libsigsegv' PACKAGE_STRING='libsigsegv 2.14' PACKAGE_TARNAME='libsigsegv' PACKAGE_URL='' PACKAGE_VERSION='2.14' PATH_SEPARATOR=':' PLATFORM='x86_64-pc-linux6.1.10-gnu-glibc2.37' RANLIB='x86_64-pc-linux-gnu-ranlib' RELOCATABLE='no' SED='/usr/bin/sed' SET_MAKE='' SHELL='/bin/sh' STRIP='x86_64-pc-linux-gnu-strip' VERSION='2.14' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='#' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='#' am__include='include' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='${AMTAR} chf - --owner=root --group=root "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='x86_64-pc-linux-gnu' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='/usr/share' datarootdir='${prefix}/share' docdir='/usr/share/doc/libsigsegv-2.14' dvidir='${docdir}' exec_prefix='${prefix}' host='x86_64-pc-linux-gnu' host_alias='x86_64-pc-linux-gnu' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='/usr/share/doc/libsigsegv-2.14/html' includedir='${prefix}/include' infodir='/usr/share/info' install_sh='${SHELL} /var/tmp/portage/dev-libs/libsigsegv-2.14/work/libsigsegv-2.14/build-aux/install-sh' libdir='/usr/lib64' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='/var/lib' mandir='/usr/share/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "libsigsegv" #define PACKAGE_TARNAME "libsigsegv" #define PACKAGE_VERSION "2.14" #define PACKAGE_STRING "libsigsegv 2.14" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "libsigsegv" #define VERSION "2.14" #define HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_STRINGS_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define STDC_HEADERS 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_SYS_SIGNAL_H 1 #define CFG_SIGNALS "signals.h" #define HAVE_UNISTD_H 1 #define HAVE_GETPAGESIZE 1 #define HAVE_SYSCONF_PAGESIZE 1 #define HAVE_MMAP_ANON 1 #define HAVE_MMAP_ANONYMOUS 1 #define HAVE_MMAP_DEVZERO 1 #define HAVE_UCONTEXT_H 1 #define CFG_FAULT "fault-linux-i386.h" #define CFG_MACHFAULT "fault-none.h" #define STACK_DIRECTION -1 #define HAVE_MINCORE 1 #define HAVE_STACKVMA 1 #define CFG_STACKVMA "stackvma-linux.c" #define HAVE_GETRLIMIT 1 #define HAVE_SETRLIMIT 1 #define HAVE_SIGALTSTACK 1 #define HAVE_SETRLIMIT 1 #define HAVE_WORKING_SIGALTSTACK 1 #define CFG_LEAVE "leave-nop.c" #define CFG_HANDLER "handler-unix.c" #define HAVE_UINTPTR_T 1 configure: exit 0