The build took 00h 00m 38s and was SUCCESSFUL.
The program in this build is written in the following languages, according to sloccount:
| SLOC | Language |
|---|---|
10,567 |
sh |
3,721 |
ansic |
1,769 |
makefile |
16,057 |
total |
The process tree of the build process is here.
To avoid scrolling, you may jump to the last line of the
invocation of makepkg that was used to build this
package.
Removed vanilla repositories from pacman.conf and added:
CMD: sudo -u tuscan red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
==> Making package: libsigsegv 2.10-2 (Wed Aug 24 14:05:13 UTC 2016)==> Checking runtime dependencies...==> Checking buildtime dependencies...==> WARNING: Using existing $srcdir/ tree==> Starting build()...configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be usedBuild Tools:checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for x86_64-unknown-linux-strip... nochecking for strip... stripchecking for a thread-safe mkdir -p... /usr/sbin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for x86_64-unknown-linux-gcc... nochecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... nonechecking how to run the C preprocessor... gcc -Echecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking host platform... x86_64-unknown-linux4.7.1-gnuchecking how to print strings... printfchecking for a sed that does not truncate output... /usr/sbin/sedchecking for grep that handles long lines and -e... /usr/sbin/grepchecking for egrep... /usr/sbin/grep -Echecking for fgrep... /usr/sbin/grep -Fchecking for ld used by gcc... /usr/sbin/ldchecking if the linker (/usr/sbin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/sbin/nm -Bchecking the name lister (/usr/sbin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1572864checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noopchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noopchecking for /usr/sbin/ld option to reload object files... -rchecking for x86_64-unknown-linux-objdump... nochecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for x86_64-unknown-linux-dlltool... nochecking for dlltool... nochecking how to associate runtime and link libraries... printf %s\nchecking for x86_64-unknown-linux-ar... nochecking for ar... archecking for archiver @FILE support... @checking for x86_64-unknown-linux-strip... stripchecking for x86_64-unknown-linux-ranlib... nochecking for ranlib... ranlibchecking command to parse /usr/sbin/nm -B output from gcc object... okchecking for sysroot... nochecking for x86_64-unknown-linux-mt... nochecking for mt... nochecking if : is a manifest tool... nochecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... yeschecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/sbin/ld -m elf_x86_64) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... yesOptional Platform Environment:checking sys/signal.h usability... yeschecking sys/signal.h presence... yeschecking for sys/signal.h... yeschecking for unistd.h... (cached) yeschecking for getpagesize... yeschecking for sysconf(_SC_PAGESIZE)... yeschecking for PAGESIZE in limits.h... nochecking for mmap with MAP_ANON... yeschecking for mmap with MAP_ANONYMOUS... yeschecking for mmap of /dev/zero... yeschecking whether a fault handler according to POSIX works... yeschecking whether a fault handler according to Linux/i386 works... nochecking whether a fault handler according to old Linux/i386 works... nochecking whether a fault handler according to Linux/m68k works... nochecking whether a fault handler according to Linux/PowerPC works... nochecking whether a fault handler according to Linux/HPPA works... nochecking whether a fault handler according to BSD works... nochecking whether a fault handler according to IRIX works... nochecking whether a fault handler according to HP-UX HPPA works... nochecking whether a fault handler according to OSF/1 Alpha works... nochecking whether a fault handler according to NetBSD Alpha works... nochecking whether a fault handler according to AIX works... nochecking whether a fault handler according to MacOSX/Darwin7 PowerPC works... nochecking whether a fault handler according to MacOSX/Darwin5 PowerPC works... nochecking whether a fault handler according to Hurd works... nochecking ucontext.h usability... yeschecking ucontext.h presence... yeschecking for ucontext.h... yeschecking for the fault handler specifics... fault-linux-i386.hchecking if the system supports catching SIGSEGV... yeschecking for stack direction... grows downchecking for PIOCMAP in sys/procfs.h... nochecking for mquery... nochecking for mincore... yeschecking for getrlimit... yeschecking for setrlimit... yeschecking for sigaltstack... yeschecking for stack_t... yeschecking for working sigaltstack... yeschecking for correct stack_t interpretation... yeschecking whether a signal handler can be left through longjmp... yeschecking whether a signal handler can be left through longjmp and sigaltstack... yeschecking whether a signal handler can be left through longjmp and setcontext... yeschecking whether a signal handler can be left through siglongjmp... yeschecking whether a signal handler can be left through siglongjmp and sigaltstack... yeschecking whether a signal handler can be left through siglongjmp and setcontext... yeschecking if the system supports catching stack overflow... yeschecking for uintptr_t... yesBuild Parameters:checking whether to activate relocatable installation... noOutput Substitution:configure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/Makefileconfig.status: creating src/sigsegv.hconfig.status: creating tests/Makefileconfig.status: creating config.hconfig.status: executing depfiles commandsconfig.status: executing libtool commandsNow please type 'make' to compile. Good luck.make TARGETSTACK=" all" all-recursivemake[1]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10'Making all in srcmake[2]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10/src'/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c -o handler.lo handler.c/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c -o stackvma.lo stackvma.clibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c stackvma.c -fPIC -DPIC -o .libs/stackvma.olibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c handler.c -fPIC -DPIC -o .libs/handler.olibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c stackvma.c -o stackvma.o >/dev/null 2>&1libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c handler.c -o handler.o >/dev/null 2>&1/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c -o leave.lo leave.clibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c leave.c -fPIC -DPIC -o .libs/leave.o/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c -o dispatcher.lo dispatcher.clibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c leave.c -o leave.o >/dev/null 2>&1libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c dispatcher.c -fPIC -DPIC -o .libs/dispatcher.o/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c -o version.lo version.clibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c version.c -fPIC -DPIC -o .libs/version.olibtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c dispatcher.c -o dispatcher.o >/dev/null 2>&1libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I. -c version.c -o version.o >/dev/null 2>&1/bin/sh ../libtool --tag=CC --mode=link gcc -rpath /usr/lib -version-info 2:3:0 -lc -no-undefined -o libsigsegv.la -rpath /usr/lib handler.lo stackvma.lo leave.lo dispatcher.lo version.lo libtool: link: gcc -shared -fPIC -DPIC .libs/handler.o .libs/stackvma.o .libs/leave.o .libs/dispatcher.o .libs/version.o -lc -Wl,-soname -Wl,libsigsegv.so.2 -o .libs/libsigsegv.so.2.0.3libtool: link: (cd ".libs" && rm -f "libsigsegv.so.2" && ln -s "libsigsegv.so.2.0.3" "libsigsegv.so.2")libtool: link: (cd ".libs" && rm -f "libsigsegv.so" && ln -s "libsigsegv.so.2.0.3" "libsigsegv.so")libtool: link: ar cru .libs/libsigsegv.a handler.o stackvma.o leave.o dispatcher.o version.oar: `u' modifier ignored since `D' is the default (see `U')libtool: link: ranlib .libs/libsigsegv.alibtool: link: ( cd ".libs" && rm -f "libsigsegv.la" && ln -s "../libsigsegv.la" "libsigsegv.la" )make[2]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10/src'Making all in testsmake[2]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10/tests'gcc -DHAVE_CONFIG_H -I. -I.. -I../src -c sigsegv1.cgcc -DHAVE_CONFIG_H -I. -I.. -I../src -c sigsegv2.cgcc -DHAVE_CONFIG_H -I. -I.. -I../src -c sigsegv3.cgcc -DHAVE_CONFIG_H -I. -I.. -I../src -c stackoverflow1.cgcc -DHAVE_CONFIG_H -I. -I.. -I../src -c stackoverflow2.c/bin/sh ../libtool --tag=CC --mode=link gcc -o sigsegv1 sigsegv1.o ../src/libsigsegv.la /bin/sh ../libtool --tag=CC --mode=link gcc -o sigsegv2 sigsegv2.o ../src/libsigsegv.la libtool: link: gcc -o .libs/sigsegv1 sigsegv1.o ../src/.libs/libsigsegv.so -lclibtool: link: gcc -o .libs/sigsegv2 sigsegv2.o ../src/.libs/libsigsegv.so -lc/bin/sh ../libtool --tag=CC --mode=link gcc -o sigsegv3 sigsegv3.o ../src/libsigsegv.la /bin/sh ../libtool --tag=CC --mode=link gcc -o stackoverflow1 stackoverflow1.o ../src/libsigsegv.la libtool: link: gcc -o .libs/sigsegv3 sigsegv3.o ../src/.libs/libsigsegv.so -lclibtool: link: gcc -o .libs/stackoverflow1 stackoverflow1.o ../src/.libs/libsigsegv.so -lc/bin/sh ../libtool --tag=CC --mode=link gcc -o stackoverflow2 stackoverflow2.o ../src/libsigsegv.la libtool: link: gcc -o .libs/stackoverflow2 stackoverflow2.o ../src/.libs/libsigsegv.so -lcmake[2]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10/tests'make[2]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10'Now please type 'make check' to run a quick test suite. Hope it works.make[2]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10'make[1]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10'==> Entering fakeroot environment...==> Starting package()...Making install in srcmake[1]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10/src'make[2]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10/src'test -z "/usr/lib" || /usr/sbin/mkdir -p "/tmp/libsigsegv/pkg/libsigsegv/usr/lib"/bin/sh /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/install-sh -d /tmp/libsigsegv/pkg/libsigsegv/usr/include /bin/sh ../libtool --mode=install /usr/bin/install -c libsigsegv.la '/tmp/libsigsegv/pkg/libsigsegv/usr/lib'/usr/bin/install -c -m 644 sigsegv.h /tmp/libsigsegv/pkg/libsigsegv/usr/include/sigsegv.hlibtool: install: /usr/bin/install -c .libs/libsigsegv.so.2.0.3 /tmp/libsigsegv/pkg/libsigsegv/usr/lib/libsigsegv.so.2.0.3libtool: install: (cd /tmp/libsigsegv/pkg/libsigsegv/usr/lib && { ln -s -f libsigsegv.so.2.0.3 libsigsegv.so.2 || { rm -f libsigsegv.so.2 && ln -s libsigsegv.so.2.0.3 libsigsegv.so.2; }; })libtool: install: (cd /tmp/libsigsegv/pkg/libsigsegv/usr/lib && { ln -s -f libsigsegv.so.2.0.3 libsigsegv.so || { rm -f libsigsegv.so && ln -s libsigsegv.so.2.0.3 libsigsegv.so; }; })libtool: install: /usr/bin/install -c .libs/libsigsegv.lai /tmp/libsigsegv/pkg/libsigsegv/usr/lib/libsigsegv.lalibtool: install: /usr/bin/install -c .libs/libsigsegv.a /tmp/libsigsegv/pkg/libsigsegv/usr/lib/libsigsegv.alibtool: install: chmod 644 /tmp/libsigsegv/pkg/libsigsegv/usr/lib/libsigsegv.alibtool: install: ranlib /tmp/libsigsegv/pkg/libsigsegv/usr/lib/libsigsegv.alibtool: install: warning: remember to run `libtool --finish /usr/lib'make[2]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10/src'make[1]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10/src'Making install in testsmake[1]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10/tests'make[2]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10/tests'make[2]: Nothing to be done for 'install-exec-am'.make[2]: Nothing to be done for 'install-data-am'.make[2]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10/tests'make[1]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10/tests'make[1]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10'make[2]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10'make[2]: Nothing to be done for 'install-exec-am'.make TARGETSTACK="install-recursive install-am install-data-am" install-data-hookmake[3]: Entering directory '/tmp/libsigsegv/src/libsigsegv-2.10'Now use the package; you can remove it later via 'make uninstall'.make[3]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10'make[2]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10'make[1]: Leaving directory '/tmp/libsigsegv/src/libsigsegv-2.10'==> Tidying install... -> Removing doc files... -> Purging unwanted files...==> Checking for packaging issue...==> Creating package "libsigsegv"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file...error: invalid option '--noprogressbar' -> Generating .MTREE file... -> Compressing package...==> Leaving fakeroot environment.==> Finished making: libsigsegv 2.10-2 (Wed Aug 24 14:05:25 UTC 2016)CMD: pacman --query --file libsigsegv-2.10-2-x86_64.pkg.tar.xz
Creating hybrid package for 'libsigsegv'
Trying to find vanilla package 'libsigsegv'...
CMD: pacman --query --file /mirror/libsigsegv-2.10-2.pkg.tar.xz
Package file has the following structure:
/.PKGINFO/.MTREE/usr/lib/libsigsegv.so/usr/lib/libsigsegv.so.2.0.3/usr/lib/libsigsegv.so.2/usr/include/sigsegv.h/sysroot/usr/lib/libsigsegv.so.2.0.3/sysroot/usr/lib/libsigsegv.so.2/sysroot/usr/lib/libsigsegv.so/sysroot/usr/lib/libsigsegv.la/sysroot/usr/lib/libsigsegv.a/sysroot/usr/include/sigsegv.hGenerating .MTREE
CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO usr sysroot
Tar-ing up files
CMD: bsdtar -cf - .PKGINFO usr sysroot .MTREE
CMD: xz -c -z
Successfully ran bsdtar -cf - .PKGINFO usr sysroot .MTREE | xz -c -z
CMD: bsdtar -tqf libsigsegv.pkg.tar.xz .PKGINFO
Created package at path /var/cache/pacman/pkg/libsigsegv.pkg.tar.xz
Attempting to access local repository, attempt 1
CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/libsigsegv.pkg.tar.xz
==> Extracting database to a temporary location...==> Extracting database to a temporary location...==> Adding package '/var/cache/pacman/pkg/libsigsegv.pkg.tar.xz' -> Computing checksums... -> Creating 'desc' db entry... -> Creating 'files' db entry...==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'Printing config logfiles
CMD: config logfiles '/tmp/libsigsegv/src/libsigsegv-2.10/config.log'
This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake.It was created by configure, which wasgenerated by GNU Autoconf 2.68. Invocation command line was$ ./configure --host=x86_64-unknown-linux --prefix=/usr --enable-shared## --------- #### Platform. #### --------- ##hostname = 9c4ef2b88497uname -m = x86_64uname -r = 4.7.1-1-ARCHuname -s = Linuxuname -v = #1 SMP PREEMPT Wed Aug 17 08:13:35 CEST 2016/usr/bin/uname -p = unknown/bin/uname -X = unknown/bin/arch = unknown/usr/bin/arch -k = unknown/usr/convex/getsysinfo = unknown/usr/bin/hostinfo = unknown/bin/machine = unknown/usr/bin/oslevel = unknown/bin/universe = unknownPATH: /usr/local/sbinPATH: /usr/local/binPATH: /usr/sbinPATH: /usr/binPATH: /sbinPATH: /bin## ----------- #### Core tests. #### ----------- ##configure:2335: checking for a BSD-compatible installconfigure:2403: result: /usr/bin/install -cconfigure:2414: checking whether build environment is saneconfigure:2464: result: yesconfigure:2513: checking for x86_64-unknown-linux-stripconfigure:2543: result: noconfigure:2553: checking for stripconfigure:2569: found /usr/sbin/stripconfigure:2580: result: stripconfigure:2605: checking for a thread-safe mkdir -pconfigure:2644: result: /usr/sbin/mkdir -pconfigure:2657: checking for gawkconfigure:2673: found /usr/sbin/gawkconfigure:2684: result: gawkconfigure:2695: checking whether make sets $(MAKE)configure:2717: result: yesconfigure:2810: checking for x86_64-unknown-linux-gccconfigure:2840: result: noconfigure:2850: checking for gccconfigure:2866: found /usr/sbin/gccconfigure:2877: result: gccconfigure:3106: checking for C compiler versionconfigure:3115: gcc --version >&5gcc (GCC) 6.1.1 20160602Copyright (C) 2016 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.configure:3126: $? = 0configure:3115: gcc -v >&5Using built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapperTarget: x86_64-pc-linux-gnuConfigured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=releaseThread model: posixgcc version 6.1.1 20160602 (GCC)configure:3126: $? = 0configure:3115: gcc -V >&5gcc: error: unrecognized command line option '-V'gcc: fatal error: no input filescompilation terminated.configure:3126: $? = 1configure:3115: gcc -qversion >&5gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?gcc: fatal error: no input filescompilation terminated.configure:3126: $? = 1configure:3146: checking whether the C compiler worksconfigure:3168: gcc conftest.c >&5configure:3172: $? = 0configure:3220: result: yesconfigure:3223: checking for C compiler default output file nameconfigure:3225: result: a.outconfigure:3231: checking for suffix of executablesconfigure:3238: gcc -o conftest conftest.c >&5configure:3242: $? = 0configure:3264: result:configure:3286: checking whether we are cross compilingconfigure:3294: gcc -o conftest conftest.c >&5configure:3298: $? = 0configure:3305: ./conftestconfigure:3309: $? = 0configure:3324: result: noconfigure:3329: checking for suffix of object filesconfigure:3351: gcc -c conftest.c >&5configure:3355: $? = 0configure:3376: result: oconfigure:3380: checking whether we are using the GNU C compilerconfigure:3399: gcc -c conftest.c >&5configure:3399: $? = 0configure:3408: result: yesconfigure:3417: checking whether gcc accepts -gconfigure:3437: gcc -c -g conftest.c >&5configure:3437: $? = 0configure:3478: result: yesconfigure:3495: checking for gcc option to accept ISO C89configure:3559: gcc -c conftest.c >&5configure:3559: $? = 0configure:3572: result: none neededconfigure:3603: checking for style of include used by makeconfigure:3631: result: GNUconfigure:3656: checking dependency style of gccconfigure:3766: result: noneconfigure:3786: checking how to run the C preprocessorconfigure:3817: gcc -E conftest.cconfigure:3817: $? = 0configure:3831: gcc -E conftest.cconftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory#include ^compilation terminated.configure:3831: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| /* end confdefs.h. */| #include configure:3856: result: gcc -Econfigure:3876: gcc -E conftest.cconfigure:3876: $? = 0configure:3890: gcc -E conftest.cconftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory#include ^compilation terminated.configure:3890: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| /* end confdefs.h. */| #include configure:3923: checking build system typeconfigure:3937: result: x86_64-unknown-linux-gnuconfigure:3957: checking host system typeconfigure:3970: result: x86_64-unknown-linux-gnuconfigure:3993: checking host platformconfigure:4012: result: x86_64-unknown-linux4.7.1-gnuconfigure:4067: checking how to print stringsconfigure:4094: result: printfconfigure:4115: checking for a sed that does not truncate outputconfigure:4179: result: /usr/sbin/sedconfigure:4197: checking for grep that handles long lines and -econfigure:4255: result: /usr/sbin/grepconfigure:4260: checking for egrepconfigure:4322: result: /usr/sbin/grep -Econfigure:4327: checking for fgrepconfigure:4389: result: /usr/sbin/grep -Fconfigure:4424: checking for ld used by gccconfigure:4491: result: /usr/sbin/ldconfigure:4498: checking if the linker (/usr/sbin/ld) is GNU ldconfigure:4513: result: yesconfigure:4525: checking for BSD- or MS-compatible name lister (nm)configure:4574: result: /usr/sbin/nm -Bconfigure:4704: checking the name lister (/usr/sbin/nm -B) interfaceconfigure:4711: gcc -c conftest.c >&5configure:4714: /usr/sbin/nm -B "conftest.o"configure:4717: output0000000000000000 B some_variableconfigure:4724: result: BSD nmconfigure:4727: checking whether ln -s worksconfigure:4731: result: yesconfigure:4739: checking the maximum length of command line argumentsconfigure:4864: result: 1572864configure:4881: checking whether the shell understands some XSI constructsconfigure:4891: result: yesconfigure:4895: checking whether the shell understands "+="configure:4901: result: yesconfigure:4936: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu formatconfigure:4976: result: func_convert_file_noopconfigure:4983: checking how to convert x86_64-unknown-linux-gnu file names to toolchain formatconfigure:5003: result: func_convert_file_noopconfigure:5010: checking for /usr/sbin/ld option to reload object filesconfigure:5017: result: -rconfigure:5051: checking for x86_64-unknown-linux-objdumpconfigure:5081: result: noconfigure:5091: checking for objdumpconfigure:5107: found /usr/sbin/objdumpconfigure:5118: result: objdumpconfigure:5150: checking how to recognize dependent librariesconfigure:5352: result: pass_allconfigure:5397: checking for x86_64-unknown-linux-dlltoolconfigure:5427: result: noconfigure:5437: checking for dlltoolconfigure:5467: result: noconfigure:5497: checking how to associate runtime and link librariesconfigure:5524: result: printf %s\nconfigure:5541: checking for x86_64-unknown-linux-arconfigure:5571: result: noconfigure:5585: checking for arconfigure:5601: found /usr/sbin/arconfigure:5612: result: arconfigure:5649: checking for archiver @FILE supportconfigure:5666: gcc -c conftest.c >&5configure:5666: $? = 0configure:5669: ar cru libconftest.a @conftest.lst >&5ar: `u' modifier ignored since `D' is the default (see `U')configure:5672: $? = 0configure:5677: ar cru libconftest.a @conftest.lst >&5ar: `u' modifier ignored since `D' is the default (see `U')ar: conftest.o: No such file or directoryconfigure:5680: $? = 1configure:5692: result: @configure:5710: checking for x86_64-unknown-linux-stripconfigure:5737: result: stripconfigure:5809: checking for x86_64-unknown-linux-ranlibconfigure:5839: result: noconfigure:5849: checking for ranlibconfigure:5865: found /usr/sbin/ranlibconfigure:5876: result: ranlibconfigure:5978: checking command to parse /usr/sbin/nm -B output from gcc objectconfigure:6097: gcc -c conftest.c >&5configure:6100: $? = 0configure:6104: /usr/sbin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nmconfigure:6107: $? = 0configure:6173: gcc -o conftest conftest.c conftstm.o >&5configure:6176: $? = 0configure:6214: result: okconfigure:6251: checking for sysrootconfigure:6281: result: noconfigure:6358: gcc -c conftest.c >&5configure:6361: $? = 0configure:6484: checking for x86_64-unknown-linux-mtconfigure:6514: result: noconfigure:6524: checking for mtconfigure:6554: result: noconfigure:6574: checking if : is a manifest toolconfigure:6580: : '-?'configure:6588: result: noconfigure:7216: checking for ANSI C header filesconfigure:7236: gcc -c conftest.c >&5configure:7236: $? = 0configure:7309: gcc -o conftest conftest.c >&5configure:7309: $? = 0configure:7309: ./conftestconfigure:7309: $? = 0configure:7320: result: yesconfigure:7333: checking for sys/types.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for sys/stat.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for stdlib.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for string.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for memory.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for strings.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for inttypes.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for stdint.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7333: checking for unistd.hconfigure:7333: gcc -c conftest.c >&5configure:7333: $? = 0configure:7333: result: yesconfigure:7347: checking for dlfcn.hconfigure:7347: gcc -c conftest.c >&5configure:7347: $? = 0configure:7347: result: yesconfigure:7533: checking for objdirconfigure:7548: result: .libsconfigure:7819: checking if gcc supports -fno-rtti -fno-exceptionsconfigure:7837: gcc -c -fno-rtti -fno-exceptions conftest.c >&5cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for Cconfigure:7841: $? = 0configure:7854: result: noconfigure:8164: checking for gcc option to produce PICconfigure:8171: result: -fPIC -DPICconfigure:8179: checking if gcc PIC flag -fPIC -DPIC worksconfigure:8197: gcc -c -fPIC -DPIC -DPIC conftest.c >&5configure:8201: $? = 0configure:8214: result: yesconfigure:8243: checking if gcc static flag -static worksconfigure:8271: result: yesconfigure:8286: checking if gcc supports -c -o file.oconfigure:8307: gcc -c -o out/conftest2.o conftest.c >&5configure:8311: $? = 0configure:8333: result: yesconfigure:8341: checking if gcc supports -c -o file.oconfigure:8388: result: yesconfigure:8421: checking whether the gcc linker (/usr/sbin/ld -m elf_x86_64) supports shared librariesconfigure:9579: result: yesconfigure:9616: checking whether -lc should be explicitly linked inconfigure:9624: gcc -c conftest.c >&5configure:9627: $? = 0configure:9642: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/sbin/grep -lc \>/dev/null 2\>\&1configure:9645: $? = 0configure:9659: result: noconfigure:9824: checking dynamic linker characteristicsconfigure:10338: gcc -o conftest -Wl,-rpath -Wl,/foo conftest.c >&5configure:10338: $? = 0configure:10560: result: GNU/Linux ld.soconfigure:10667: checking how to hardcode library paths into programsconfigure:10692: result: immediateconfigure:11232: checking whether stripping libraries is possibleconfigure:11237: result: yesconfigure:11272: checking if libtool supports shared librariesconfigure:11274: result: yesconfigure:11277: checking whether to build shared librariesconfigure:11298: result: yesconfigure:11301: checking whether to build static librariesconfigure:11305: result: yesconfigure:11348: checking sys/signal.h usabilityconfigure:11348: gcc -c conftest.c >&5configure:11348: $? = 0configure:11348: result: yesconfigure:11348: checking sys/signal.h presenceconfigure:11348: gcc -E conftest.cconfigure:11348: $? = 0configure:11348: result: yesconfigure:11348: checking for sys/signal.hconfigure:11348: result: yesconfigure:11387: checking for unistd.hconfigure:11387: result: yesconfigure:11399: checking for getpagesizeconfigure:11422: gcc -o conftest conftest.c >&5configure:11422: $? = 0configure:11430: result: yesconfigure:11439: checking for sysconf(_SC_PAGESIZE)configure:11462: gcc -o conftest conftest.c >&5configure:11462: $? = 0configure:11470: result: yesconfigure:11479: checking for PAGESIZE in limits.hconfigure:11497: gcc -o conftest conftest.c >&5conftest.c: In function 'main':conftest.c:33:12: error: 'PAGESIZE' undeclared (first use in this function)int pgsz = PAGESIZE;^~~~~~~~conftest.c:33:12: note: each undeclared identifier is reported only once for each function it appears inconfigure:11497: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 ()| {| int pgsz = PAGESIZE;| ;| return 0;| }configure:11505: result: noconfigure:11523: checking for mmap with MAP_ANONconfigure:11573: gcc -o conftest conftest.c >&5configure:11573: $? = 0configure:11573: ./conftestconfigure:11573: $? = 0configure:11584: result: yesconfigure:11593: checking for mmap with MAP_ANONYMOUSconfigure:11645: gcc -o conftest conftest.c >&5configure:11645: $? = 0configure:11645: ./conftestconfigure:11645: $? = 0configure:11656: result: yesconfigure:11665: checking for mmap of /dev/zeroconfigure:11728: gcc -o conftest conftest.c >&5configure:11728: $? = 0configure:11728: ./conftestconfigure:11728: $? = 0configure:11739: result: yesconfigure:11763: checking whether a fault handler according to POSIX worksconfigure:11898: gcc -o conftest conftest.c >&5configure:11898: $? = 0configure:11898: ./conftestconfigure:11898: $? = 0configure:11909: result: yesconfigure:11917: checking whether a fault handler according to Linux/i386 worksconfigure:12053: gcc -o conftest conftest.c >&5In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:39:8: error: redefinition of 'struct _fpx_sw_bytes'struct _fpx_sw_bytes {^~~~~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:29:8: note: originally defined herestruct _fpx_sw_bytes^~~~~~~~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:84:8: error: redefinition of 'struct _fpreg'struct _fpreg {^~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:38:8: note: originally defined herestruct _fpreg^~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:90:8: error: redefinition of 'struct _fpxreg'struct _fpxreg {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:44:8: note: originally defined herestruct _fpxreg^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:97:8: error: redefinition of 'struct _xmmreg'struct _xmmreg {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:51:8: note: originally defined herestruct _xmmreg^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:179:8: error: redefinition of 'struct _ymmh_state'struct _ymmh_state {^~~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:182:8: note: originally defined herestruct _ymmh_state^~~~~~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:191:8: error: redefinition of 'struct _xstate'struct _xstate {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:187:8: note: originally defined herestruct _xstate^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:316:8: error: redefinition of 'struct sigcontext'struct sigcontext {^~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:137:8: note: originally defined herestruct sigcontext^~~~~~~~~~configure:12053: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12064: result: noconfigure:12072: checking whether a fault handler according to old Linux/i386 worksconfigure:12208: gcc -o conftest conftest.c >&5configure:12208: $? = 0configure:12208: ./conftestconfigure:12208: $? = 3configure: program exited with status 3configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12219: result: noconfigure:12227: checking whether a fault handler according to Linux/m68k worksconfigure:12365: gcc -o conftest conftest.c >&5In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:39:8: error: redefinition of 'struct _fpx_sw_bytes'struct _fpx_sw_bytes {^~~~~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:29:8: note: originally defined herestruct _fpx_sw_bytes^~~~~~~~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:84:8: error: redefinition of 'struct _fpreg'struct _fpreg {^~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:38:8: note: originally defined herestruct _fpreg^~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:90:8: error: redefinition of 'struct _fpxreg'struct _fpxreg {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:44:8: note: originally defined herestruct _fpxreg^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:97:8: error: redefinition of 'struct _xmmreg'struct _xmmreg {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:51:8: note: originally defined herestruct _xmmreg^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:179:8: error: redefinition of 'struct _ymmh_state'struct _ymmh_state {^~~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:182:8: note: originally defined herestruct _ymmh_state^~~~~~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:191:8: error: redefinition of 'struct _xstate'struct _xstate {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:187:8: note: originally defined herestruct _xstate^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:316:8: error: redefinition of 'struct sigcontext'struct sigcontext {^~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:137:8: note: originally defined herestruct sigcontext^~~~~~~~~~In file included from conftest.c:39:0:./src/fault-linux-m68k-old.c: In function 'get_fault_addr':./src/fault-linux-m68k-old.c:22:20: error: 'struct sigcontext' has no member named 'sc_formatvec'int format = (scp->sc_formatvec >> 12) & 0xf;^~configure:12365: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12376: result: noconfigure:12384: checking whether a fault handler according to Linux/PowerPC worksconfigure:12520: gcc -o conftest conftest.c >&5In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:39:8: error: redefinition of 'struct _fpx_sw_bytes'struct _fpx_sw_bytes {^~~~~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:29:8: note: originally defined herestruct _fpx_sw_bytes^~~~~~~~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:84:8: error: redefinition of 'struct _fpreg'struct _fpreg {^~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:38:8: note: originally defined herestruct _fpreg^~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:90:8: error: redefinition of 'struct _fpxreg'struct _fpxreg {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:44:8: note: originally defined herestruct _fpxreg^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:97:8: error: redefinition of 'struct _xmmreg'struct _xmmreg {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:51:8: note: originally defined herestruct _xmmreg^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:179:8: error: redefinition of 'struct _ymmh_state'struct _ymmh_state {^~~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:182:8: note: originally defined herestruct _ymmh_state^~~~~~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:191:8: error: redefinition of 'struct _xstate'struct _xstate {^~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:187:8: note: originally defined herestruct _xstate^~~~~~~In file included from conftest.c:38:0:/usr/include/asm/sigcontext.h:316:8: error: redefinition of 'struct sigcontext'struct sigcontext {^~~~~~~~~~In file included from /usr/include/signal.h:306:0,from conftest.c:34:/usr/include/bits/sigcontext.h:137:8: note: originally defined herestruct sigcontext^~~~~~~~~~conftest.c: In function 'sigsegv_handler':conftest.c:69:38: error: 'struct sigcontext' has no member named 'regs'; did you mean 'gs'?void *fault_address = (void *) (scp->regs->dar);^~configure:12520: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12531: result: noconfigure:12539: checking whether a fault handler according to Linux/HPPA worksconfigure:12674: gcc -o conftest conftest.c >&5configure:12674: $? = 0configure:12674: ./conftestconfigure:12674: $? = 3configure: program exited with status 3configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12685: result: noconfigure:12693: checking whether a fault handler according to BSD worksconfigure:12829: gcc -o conftest conftest.c >&5configure:12829: $? = 0configure:12829: ./conftestconfigure:12829: $? = 3configure: program exited with status 3configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12840: result: noconfigure:12848: checking whether a fault handler according to IRIX worksconfigure:12984: gcc -o conftest conftest.c >&5conftest.c: In function 'sigsegv_handler':conftest.c:69:54: error: 'struct sigcontext' has no member named 'sc_badvaddr'void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);^~configure:12984: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:12995: result: noconfigure:13003: checking whether a fault handler according to HP-UX HPPA worksconfigure:13149: gcc -o conftest conftest.c >&5conftest.c: In function 'sigsegv_handler':conftest.c:72:48: error: 'struct sigcontext' has no member named 'sc_sl'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^conftest.c:39:33: note: in definition of macro 'USE_64BIT_REGS'#define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))^~conftest.c:72:35: note: in expansion of macro 'GET_CR21'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^~~~~~~~conftest.c:39:48: error: 'SS_WIDEREGS' undeclared (first use in this function)#define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))^conftest.c:40:25: note: in expansion of macro 'USE_64BIT_REGS'#define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)^~~~~~~~~~~~~~conftest.c:72:35: note: in expansion of macro 'GET_CR21'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^~~~~~~~conftest.c:39:48: note: each undeclared identifier is reported only once for each function it appears in#define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))^conftest.c:40:25: note: in expansion of macro 'USE_64BIT_REGS'#define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)^~~~~~~~~~~~~~conftest.c:72:35: note: in expansion of macro 'GET_CR21'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^~~~~~~~conftest.c:72:48: error: 'struct sigcontext' has no member named 'sc_sl'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^conftest.c:39:66: note: in definition of macro 'USE_64BIT_REGS'#define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))^~conftest.c:72:35: note: in expansion of macro 'GET_CR21'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^~~~~~~~conftest.c:39:81: error: 'SS_NARROWISINVALID' undeclared (first use in this function)#define USE_64BIT_REGS(mc) (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))^conftest.c:40:25: note: in expansion of macro 'USE_64BIT_REGS'#define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)^~~~~~~~~~~~~~conftest.c:72:35: note: in expansion of macro 'GET_CR21'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^~~~~~~~conftest.c:72:48: error: 'struct sigcontext' has no member named 'sc_sl'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^conftest.c:40:47: note: in definition of 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:72:48: error: 'struct sigcontext' has no member named 'sc_sl'void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));^conftest.c:40:76: note: in definition of macro 'GET_CR21'#define GET_CR21(mc) (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)^~configure:13149: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:13160: result: noconfigure:13168: checking whether a fault handler according to OSF/1 Alpha worksconfigure:13304: gcc -o conftest conftest.c >&5conftest.c: In function 'sigsegv_handler':conftest.c:69:38: error: 'struct sigcontext' has no member named 'sc_traparg_a0'void *fault_address = (void *) (scp->sc_traparg_a0);^~configure:13304: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:13315: result: noconfigure:13323: checking whether a fault handler according to NetBSD Alpha worksconfigure:13459: gcc -o conftest conftest.c >&5In file included from conftest.c:38:0:./src/fault-netbsd-alpha.c: In function 'get_fault_addr':./src/fault-netbsd-alpha.c:25:46: error: 'struct sigcontext' has no member named 'sc_pc'unsigned int instr = *((unsigned int *)(scp->sc_pc));^~./src/fault-netbsd-alpha.c:36:18: error: 'struct sigcontext' has no member named 'sc_regs'faultaddr = scp->sc_regs[(instr >> 16) & 0x1f];^~configure:13459: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:13470: result: noconfigure:13478: checking whether a fault handler according to AIX worksconfigure:13614: gcc -o conftest conftest.c >&5conftest.c: In function 'sigsegv_handler':conftest.c:69:38: error: 'struct sigcontext' has no member named 'sc_jmpbuf'void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);^~configure:13614: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:13625: result: noconfigure:13633: checking whether a fault handler according to MacOSX/Darwin7 PowerPC worksconfigure:13768: gcc -o conftest conftest.c >&5In file included from conftest.c:38:0:./src/fault-macosdarwin7-powerpc.c: In function 'get_fault_addr':./src/fault-macosdarwin7-powerpc.c:43:22: error: invalid type argument of '->' (have 'mcontext_t {aka struct }') &ucp->uc_mcontext->ss.r0; /* r0..r31 */^~./src/fault-macosdarwin7-powerpc.c:130:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]return (void *) addr;^conftest.c: In function 'main':conftest.c:107:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]action.sa_sigaction = &sigsegv_handler;^configure:13768: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:13779: result: noconfigure:13788: checking whether a fault handler according to MacOSX/Darwin5 PowerPC worksconfigure:13924: gcc -o conftest conftest.c >&5In file included from conftest.c:38:0:./src/fault-macosdarwin5-powerpc.c: In function 'get_fault_addr':./src/fault-macosdarwin5-powerpc.c:36:46: error: 'struct sigcontext' has no member named 'sc_ir'unsigned int instr = *((unsigned int *) scp->sc_ir);^~./src/fault-macosdarwin5-powerpc.c:37:46: error: 'struct sigcontext' has no member named 'sc_regs'unsigned int *regs = &((unsigned int *) scp->sc_regs)[2];^~./src/fault-macosdarwin5-powerpc.c:123:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]return (void *) addr;^configure:13924: $? = 1configure: program exited with status 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:13935: result: noconfigure:13944: checking whether a fault handler according to Hurd worksconfigure:14080: gcc -o conftest conftest.c >&5conftest.c: In function 'sigsegv_handler':conftest.c:69:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]void *fault_address = (void *) (code);^configure:14080: $? = 0configure:14080: ./conftestconfigure:14080: $? = 3configure: program exited with status 3configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 __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 (mprotect ((void *) page, 0x10000, PROT_READ) < 0)| 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:14091: result: noconfigure:14207: checking ucontext.h usabilityconfigure:14207: gcc -c conftest.c >&5configure:14207: $? = 0configure:14207: result: yesconfigure:14207: checking ucontext.h presenceconfigure:14207: gcc -E conftest.cconfigure:14207: $? = 0configure:14207: result: yesconfigure:14207: checking for ucontext.hconfigure:14207: result: yesconfigure:14445: checking for the fault handler specificsconfigure:14456: result: fault-linux-i386.hconfigure:14481: checking if the system supports catching SIGSEGVconfigure:14483: result: yesconfigure:14496: checking for stack directionconfigure:14593: result: grows downconfigure:14604: checking for PIOCMAP in sys/procfs.hconfigure:14621: gcc -o conftest conftest.c >&5conftest.c: In function 'main':conftest.c:39:9: error: 'PIOCNMAP' undeclared (first use in this function)int x = PIOCNMAP + PIOCMAP; prmap_t y;^~~~~~~~conftest.c:39:9: note: each undeclared identifier is reported only once for each function it appears inconftest.c:39:20: error: 'PIOCMAP' undeclared (first use in this function)int x = PIOCNMAP + PIOCMAP; prmap_t y;^~~~~~~conftest.c:39:29: error: unknown type name 'prmap_t'int x = PIOCNMAP + PIOCMAP; prmap_t y;^~~~~~~configure:14621: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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. */| #include | int| main ()| {| int x = PIOCNMAP + PIOCMAP; prmap_t y;| ;| return 0;| }configure:14630: result: noconfigure:14635: checking for mqueryconfigure:14635: gcc -o conftest conftest.c >&5/tmp/ccteZSjv.o: In function `main':conftest.c:(.text+0xa): undefined reference to `mquery'collect2: error: ld returned 1 exit statusconfigure:14635: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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 (); below.| Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ || #ifdef __STDC__| # include | #else| # include | #endif|| #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 ();| /* 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 ()| {| return mquery ();| ;| return 0;| }configure:14635: result: noconfigure:14635: checking for mincoreconfigure:14635: gcc -o conftest conftest.c >&5configure:14635: $? = 0configure:14635: result: yesconfigure:14681: checking for getrlimitconfigure:14681: gcc -o conftest conftest.c >&5configure:14681: $? = 0configure:14681: result: yesconfigure:14681: checking for setrlimitconfigure:14681: gcc -o conftest conftest.c >&5configure:14681: $? = 0configure:14681: result: yesconfigure:14697: checking for sigaltstackconfigure:14697: gcc -o conftest conftest.c >&5configure:14697: $? = 0configure:14697: result: yesconfigure:14708: checking for stack_tconfigure:14708: gcc -c conftest.c >&5configure:14708: $? = 0configure:14708: gcc -c conftest.c >&5conftest.c: In function 'main':conftest.c:51:22: error: expected expression before ')' tokenif (sizeof ((stack_t)))^configure:14708: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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| /* end confdefs.h. */|| #include | #if HAVE_SYS_SIGNAL_H| # include | #endif||| int| main ()| {| if (sizeof ((stack_t)))| return 0;| ;| return 0;| }configure:14708: result: yesconfigure:14726: checking for working sigaltstackconfigure:14850: gcc -o conftest conftest.c >&5configure:14850: $? = 0configure:14850: ./conftestconfigure:14850: $? = 0configure:14866: result: yesconfigure:14873: checking for correct stack_t interpretationconfigure:14937: gcc -o conftest conftest.c >&5configure:14937: $? = 0configure:14937: ./conftestconfigure:14937: $? = 0configure:14948: result: yesconfigure:14974: checking whether a signal handler can be left through longjmpconfigure:15063: gcc -o conftest conftest.c >&5configure:15063: $? = 0configure:15063: ./conftestconfigure:15063: $? = 0configure:15074: result: yesconfigure:15082: checking whether a signal handler can be left through longjmp and sigaltstackconfigure:15181: gcc -o conftest conftest.c >&5configure:15181: $? = 0configure:15181: ./conftestconfigure:15181: $? = 0configure:15192: result: yesconfigure:15200: checking whether a signal handler can be left through longjmp and setcontextconfigure:15304: gcc -o conftest conftest.c >&5configure:15304: $? = 0configure:15304: ./conftestconfigure:15304: $? = 0configure:15315: result: yesconfigure:15337: checking whether a signal handler can be left through siglongjmpconfigure:15424: gcc -o conftest conftest.c >&5configure:15424: $? = 0configure:15424: ./conftestconfigure:15424: $? = 0configure:15435: result: yesconfigure:15443: checking whether a signal handler can be left through siglongjmp and sigaltstackconfigure:15540: gcc -o conftest conftest.c >&5configure:15540: $? = 0configure:15540: ./conftestconfigure:15540: $? = 0configure:15551: result: yesconfigure:15559: checking whether a signal handler can be left through siglongjmp and setcontextconfigure:15661: gcc -o conftest conftest.c >&5configure:15661: $? = 0configure:15661: ./conftestconfigure:15661: $? = 0configure:15672: result: yesconfigure:15711: checking if the system supports catching stack overflowconfigure:15798: result: yesconfigure:15932: checking for uintptr_tconfigure:15932: gcc -c conftest.c >&5configure:15932: $? = 0configure:15932: gcc -c conftest.c >&5conftest.c: In function 'main':conftest.c:80:24: error: expected expression before ')' tokenif (sizeof ((uintptr_t)))^configure:15932: $? = 1configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL ""| #define PACKAGE "libsigsegv"| #define VERSION "2.10"| #define STDC_HEADERS 1| #define HAVE_SYS_TYPES_H 1| #define HAVE_SYS_STAT_H 1| #define HAVE_STDLIB_H 1| #define HAVE_STRING_H 1| #define HAVE_MEMORY_H 1| #define HAVE_STRINGS_H 1| #define HAVE_INTTYPES_H 1| #define HAVE_STDINT_H 1| #define HAVE_UNISTD_H 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_WORKING_SIGALTSTACK 1| #define CFG_LEAVE "leave-nop.c"| #define CFG_HANDLER "handler-unix.c"| /* end confdefs.h. */| #include | #ifdef HAVE_SYS_TYPES_H| # include | #endif| #ifdef HAVE_SYS_STAT_H| # include | #endif| #ifdef STDC_HEADERS| # include | # include | #else| # ifdef HAVE_STDLIB_H| # include | # endif| #endif| #ifdef HAVE_STRING_H| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H| # include | # endif| # include | #endif| #ifdef HAVE_STRINGS_H| # include | #endif| #ifdef HAVE_INTTYPES_H| # include | #endif| #ifdef HAVE_STDINT_H| # include | #endif| #ifdef HAVE_UNISTD_H| # include | #endif| int| main ()| {| if (sizeof ((uintptr_t)))| return 0;| ;| return 0;| }configure:15932: result: yesconfigure:15972: checking whether to activate relocatable installationconfigure:15987: result: noconfigure:16133: creating ./config.status## ---------------------- #### Running config.status. #### ---------------------- ##This file was extended by config.status, which wasgenerated by GNU Autoconf 2.68. Invocation command line wasCONFIG_FILES =CONFIG_HEADERS =CONFIG_LINKS =CONFIG_COMMANDS =$ ./config.statuson 9c4ef2b88497config.status:1125: creating Makefileconfig.status:1125: creating src/Makefileconfig.status:1125: creating src/sigsegv.hconfig.status:1125: creating tests/Makefileconfig.status:1125: creating config.hconfig.status:1354: executing depfiles commandsconfig.status:1354: executing libtool commands## ---------------- #### Cache variables. #### ---------------- ##ac_cv_build=x86_64-unknown-linux-gnuac_cv_c_compiler_gnu=yesac_cv_env_CC_set=ac_cv_env_CC_value=ac_cv_env_CFLAGS_set=setac_cv_env_CFLAGS_value=ac_cv_env_CPPFLAGS_set=setac_cv_env_CPPFLAGS_value=ac_cv_env_CPP_set=ac_cv_env_CPP_value=ac_cv_env_LDFLAGS_set=setac_cv_env_LDFLAGS_value=ac_cv_env_LIBS_set=ac_cv_env_LIBS_value=ac_cv_env_build_alias_set=ac_cv_env_build_alias_value=ac_cv_env_host_alias_set=setac_cv_env_host_alias_value=x86_64-unknown-linuxac_cv_env_target_alias_set=ac_cv_env_target_alias_value=ac_cv_func_getrlimit=yesac_cv_func_mincore=yesac_cv_func_mquery=noac_cv_func_setrlimit=yesac_cv_func_sigaltstack=yesac_cv_header_dlfcn_h=yesac_cv_header_inttypes_h=yesac_cv_header_memory_h=yesac_cv_header_stdc=yesac_cv_header_stdint_h=yesac_cv_header_stdlib_h=yesac_cv_header_string_h=yesac_cv_header_strings_h=yesac_cv_header_sys_signal_h=yesac_cv_header_sys_stat_h=yesac_cv_header_sys_types_h=yesac_cv_header_ucontext_h=yesac_cv_header_unistd_h=yesac_cv_host=x86_64-unknown-linux-gnuac_cv_objext=oac_cv_path_EGREP='/usr/sbin/grep -E'ac_cv_path_FGREP='/usr/sbin/grep -F'ac_cv_path_GREP=/usr/sbin/grepac_cv_path_SED=/usr/sbin/sedac_cv_path_install='/usr/bin/install -c'ac_cv_path_mkdir=/usr/sbin/mkdirac_cv_prog_AWK=gawkac_cv_prog_CPP='gcc -E'ac_cv_prog_STRIP=stripac_cv_prog_ac_ct_AR=arac_cv_prog_ac_ct_CC=gccac_cv_prog_ac_ct_OBJDUMP=objdumpac_cv_prog_ac_ct_RANLIB=ranlibac_cv_prog_ac_ct_STRIP=stripac_cv_prog_cc_c89=ac_cv_prog_cc_g=yesac_cv_prog_make_make_set=yesac_cv_type_stack_t=yesac_cv_type_uintptr_t=yesam_cv_CC_dependencies_compiler_type=nonelt_cv_ar_at_file=@lt_cv_archive_cmds_need_lc=nolt_cv_deplibs_check_method=pass_alllt_cv_file_magic_cmd='$MAGIC_CMD'lt_cv_file_magic_test_file=lt_cv_ld_reload_flag=-rlt_cv_nm_interface='BSD nm'lt_cv_objdir=.libslt_cv_path_LD=/usr/sbin/ldlt_cv_path_NM='/usr/sbin/nm -B'lt_cv_path_mainfest_tool=nolt_cv_prog_compiler_c_o=yeslt_cv_prog_compiler_pic='-fPIC -DPIC'lt_cv_prog_compiler_pic_works=yeslt_cv_prog_compiler_rtti_exceptions=nolt_cv_prog_compiler_static_works=yeslt_cv_prog_gnu_ld=yeslt_cv_sharedlib_from_linklib_cmd='printf %s\n'lt_cv_shlibpath_overrides_runpath=nolt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''lt_cv_sys_max_cmd_len=1572864lt_cv_to_host_file_cmd=func_convert_file_nooplt_cv_to_tool_file_cmd=func_convert_file_noopsv_cv_fault_aix=nosv_cv_fault_bsd=nosv_cv_fault_hpux_hppa=nosv_cv_fault_hurd=nosv_cv_fault_include=fault-linux-i386.hsv_cv_fault_irix=nosv_cv_fault_linux_hppa=nosv_cv_fault_linux_i386=nosv_cv_fault_linux_i386_old=nosv_cv_fault_linux_m68k=nosv_cv_fault_linux_powerpc=nosv_cv_fault_macosdarwin5_ppc=nosv_cv_fault_macosdarwin7_ppc=nosv_cv_fault_netbsd_alpha=nosv_cv_fault_osf_alpha=nosv_cv_fault_posix=yessv_cv_func_getpagesize=yessv_cv_func_mmap_anon=yessv_cv_func_mmap_anonymous=yessv_cv_func_mmap_devzero=yessv_cv_func_sysconf_pagesize=yessv_cv_have_sigsegv_recovery=yessv_cv_have_stack_overflow_recovery=yessv_cv_host=x86_64-unknown-linux4.7.1-gnusv_cv_leave_handler_longjmp=yessv_cv_leave_handler_longjmp_setcontext=yessv_cv_leave_handler_longjmp_sigaltstack=yessv_cv_leave_handler_siglongjmp=yessv_cv_leave_handler_siglongjmp_setcontext=yessv_cv_leave_handler_siglongjmp_sigaltstack=yessv_cv_macro_pagesize=nosv_cv_procfsvma=nosv_cv_sigaltstack=yessv_cv_sigaltstack_low_base=yessv_cv_stack_direction=-1sv_cv_stack_direction_msg='grows down'## ----------------- #### Output variables. #### ----------------- ##ACLOCAL='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/missing --run aclocal-1.11'AMDEPBACKSLASH='\'AMDEP_FALSE='#'AMDEP_TRUE=''AMTAR='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/missing --run tar'AR='ar'AUTOCONF='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/missing --run autoconf'AUTOHEADER='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/missing --run autoheader'AUTOMAKE='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/missing --run automake-1.11'AWK='gawk'CC='gcc'CCDEPMODE='depmode=none'CFG_HANDLER='handler-unix.c'CFG_LEAVE='leave-nop.c'CFG_STACKVMA='stackvma-linux.c'CFLAGS=''CPP='gcc -E'CPPFLAGS=''CYGPATH_W='echo'CYGWIN_FALSE=''CYGWIN_TRUE='#'DEFS='-DHAVE_CONFIG_H'DEPDIR='.deps'DLLTOOL='false'DSYMUTIL=''DUMPBIN=''ECHO_C=''ECHO_N='-n'ECHO_T=''EGREP='/usr/sbin/grep -E'ENABLE_EFAULT_FALSE=''ENABLE_EFAULT_TRUE='#'EXEEXT=''FAULT_CONTEXT='ucontext_t'FAULT_CONTEXT_INCLUDE='#include ' FGREP='/usr/sbin/grep -F'GREP='/usr/sbin/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/sbin/ld -m elf_x86_64'LDFLAGS=''LIBOBJS=''LIBS=''LIBTOOL='$(SHELL) $(top_builddir)/libtool'LIPO=''LN_S='ln -s'LTLIBOBJS=''MAKEINFO='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/missing --run makeinfo'MANIFEST_TOOL=':'MKDIR_P='/usr/sbin/mkdir -p'NM='/usr/sbin/nm -B'NMEDIT=''OBJDUMP='objdump'OBJEXT='o'OTOOL64=''OTOOL=''PACKAGE='libsigsegv'PACKAGE_BUGREPORT=''PACKAGE_NAME=''PACKAGE_STRING=''PACKAGE_TARNAME=''PACKAGE_URL=''PACKAGE_VERSION=''PATH_SEPARATOR=':'PLATFORM='x86_64-unknown-linux4.7.1-gnu'RANLIB='ranlib'RELOCATABLE='no'SED='/usr/sbin/sed'SET_MAKE=''SHELL='/bin/sh'STRIP='strip'VERSION='2.10'ac_ct_AR='ar'ac_ct_CC='gcc'ac_ct_DUMPBIN=''am__EXEEXT_FALSE=''am__EXEEXT_TRUE='#'am__fastdepCC_FALSE=''am__fastdepCC_TRUE='#'am__include='include'am__isrc=''am__leading_dot='.'am__quote=''am__tar='${AMTAR} chf - --owner=root --group=root "$$tardir"'am__untar='${AMTAR} xf -'bindir='${exec_prefix}/bin'build='x86_64-unknown-linux-gnu'build_alias=''build_cpu='x86_64'build_os='linux-gnu'build_vendor='unknown'datadir='${datarootdir}'datarootdir='${prefix}/share'docdir='${datarootdir}/doc/${PACKAGE}'dvidir='${docdir}'exec_prefix='${prefix}'host='x86_64-unknown-linux-gnu'host_alias='x86_64-unknown-linux'host_cpu='x86_64'host_os='linux-gnu'host_vendor='unknown'htmldir='${docdir}'includedir='${prefix}/include'infodir='${datarootdir}/info'install_sh='${SHELL} /tmp/libsigsegv/src/libsigsegv-2.10/build-aux/install-sh'libdir='${exec_prefix}/lib'libexecdir='${exec_prefix}/libexec'localedir='${datarootdir}/locale'localstatedir='${prefix}/var'mandir='${datarootdir}/man'mkdir_p='/usr/sbin/mkdir -p'oldincludedir='/usr/include'pdfdir='${docdir}'prefix='/usr'program_transform_name='s,x,x,'psdir='${docdir}'sbindir='${exec_prefix}/sbin'sharedstatedir='${prefix}/com'sysconfdir='${prefix}/etc'target_alias=''## ----------- #### confdefs.h. #### ----------- ##/* confdefs.h */#define PACKAGE_NAME ""#define PACKAGE_TARNAME ""#define PACKAGE_VERSION ""#define PACKAGE_STRING ""#define PACKAGE_BUGREPORT ""#define PACKAGE_URL ""#define PACKAGE "libsigsegv"#define VERSION "2.10"#define STDC_HEADERS 1#define HAVE_SYS_TYPES_H 1#define HAVE_SYS_STAT_H 1#define HAVE_STDLIB_H 1#define HAVE_STRING_H 1#define HAVE_MEMORY_H 1#define HAVE_STRINGS_H 1#define HAVE_INTTYPES_H 1#define HAVE_STDINT_H 1#define HAVE_UNISTD_H 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_WORKING_SIGALTSTACK 1#define CFG_LEAVE "leave-nop.c"#define CFG_HANDLER "handler-unix.c"#define HAVE_UINTPTR_T 1configure: exit 0