sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Mirko Wilhelmi <thegreatwiper AT web.de>
- To: sm-discuss AT lists.ibiblio.org
- Subject: [SM-Discuss] Installing spells fails
- Date: Mon, 15 Oct 2012 01:07:27 +0200
Hi @all,
a severe issue arised this evening, casting any spell fails when it
comes to installing it. This is what the logs are saying:
castfs: checking sanity of <mnt-dir> and <stage-dir>
castfs: stagedir is okay!
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
BLKROGET failed: Inappropriate ioctl for device
BLKRAGET failed: Inappropriate ioctl for device
/usr/src/stage-expat-2.1.0/MOUNT:
BLKGETSIZE failed: Inappropriate ioctl for device
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
BLKROGET failed: Inappropriate ioctl for device
BLKRAGET failed: Inappropriate ioctl for device
BLKGETSIZE failed: Inappropriate ioctl for device
/usr/src/stage-expat-2.1.0/MOUNT:
INSTALL failed!
Imho this seems hdparm related, but what has hdparm to do with
installing spells?
Running hdparm manually seems to work fine.
My root device is a Crucial M4 SSD and the filesystem is
btrfs (btrfs-progs: 0.20-rc1-dirty, Kernel: 3.5.4).
Greetings
Mirko
Compile log for expat 2.1.0 Built on Sun Oct 14 23:21:48 UTC 2012 Using gcc version: 4.6.3 [0m[36mBuilding [37m[1m[40mexpat[0m Building in dir: /usr/src/expat-2.1.0 expat 2.1.0 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64 checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for a BSD-compatible install... /bin/install -c checking whether gcc accepts -fexceptions... yes checking for ANSI C header files... (cached) yes checking whether byte ordering is bigendian... no checking for an ANSI C-conforming const... yes checking for size_t... yes checking for memmove... yes checking for bcopy... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for off_t... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking for gcc option to accept ISO C99... -std=gnu99 checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99 checking for an ANSI C99-conforming __func__... yes configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating expat.pc config.status: creating expat_config.h config.status: executing libtool commands /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o lib/xmltok.lo -c lib/xmltok.c /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o lib/xmlrole.lo -c lib/xmlrole.c gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xmlwf/xmlwf.o -c xmlwf/xmlwf.c gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xmlwf/xmlfile.o -c xmlwf/xmlfile.c gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xmlwf/codepage.o -c xmlwf/codepage.c gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xmlwf/unixfilemap.o -c xmlwf/unixfilemap.c /bin/sh ./libtool --silent --mode=link gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -no-undefined -version-info 7:0:6 -rpath /usr/lib -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo /bin/sh ./libtool --silent --mode=link gcc -std=gnu99 -I./lib -I. -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o libexpat.la [0m[36mPreparing to install [37m[1m[40mexpat[0m Compile log for expat 2.1.0 Completed Build on Sun Oct 14 23:21:56 UTC 2012 castfs: checking sanity of <mnt-dir> and <stage-dir> castfs: stagedir is okay! HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device BLKROGET failed: Inappropriate ioctl for device BLKRAGET failed: Inappropriate ioctl for device /usr/src/stage-expat-2.1.0/MOUNT: BLKGETSIZE failed: Inappropriate ioctl for device HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device BLKROGET failed: Inappropriate ioctl for device BLKRAGET failed: Inappropriate ioctl for device BLKGETSIZE failed: Inappropriate ioctl for device /usr/src/stage-expat-2.1.0/MOUNT: INSTALL failed! ---config.log--- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by expat configure 2.1.0, which was generated by GNU Autoconf 2.68. Invocation command line was $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-pc-linux-gnu ## --------- ## ## Platform. ## ## --------- ## hostname = bla.home.kingdom uname -m = x86_64 uname -r = 3.5.4 uname -s = Linux uname -v = #1 SMP Sat Sep 29 20:13:25 UTC 2012 /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 = unknown PATH: /sbin PATH: /usr/sbin PATH: /usr/local/sbin PATH: /bin PATH: /usr/bin PATH: /usr/local/bin PATH: /usr/games PATH: /usr/local/games PATH: /usr/bin/X11 PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2385: checking build system type configure:2399: result: x86_64-pc-linux-gnu configure:2419: checking host system type configure:2432: result: x86_64-pc-linux-gnu configure:2801: checking how to print strings configure:2828: result: printf configure:2897: checking for gcc configure:2913: found /usr/bin/gcc configure:2924: result: gcc configure:3153: checking for C compiler version configure:3162: gcc --version >&5 gcc (GCC) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3173: $? = 0 configure:3162: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /usr/src/gcc-4.6.3/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-threads=posix --enable-languages=c,c++ --with-bugurl=http://bugs.sourcemage.org --enable-bootstrap --enable-checking=release --disable-multilib --without-ppl --without-cloog --build=x86_64-pc-linux-gnu --with-system-zlib --enable-nls Thread model: posix gcc version 4.6.3 (GCC) configure:3173: $? = 0 configure:3162: gcc -V >&5 gcc: error: unrecognized option '-V' gcc: fatal error: no input files compilation terminated. configure:3173: $? = 1 configure:3162: gcc -qversion >&5 gcc: error: unrecognized option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3173: $? = 1 configure:3193: checking whether the C compiler works configure:3215: gcc -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:3219: $? = 0 configure:3267: result: yes configure:3270: checking for C compiler default output file name configure:3272: result: a.out configure:3278: checking for suffix of executables configure:3285: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:3289: $? = 0 configure:3311: result: configure:3333: checking whether we are cross compiling configure:3341: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:3345: $? = 0 configure:3352: ./conftest configure:3356: $? = 0 configure:3371: result: no configure:3376: checking for suffix of object files configure:3398: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:3402: $? = 0 configure:3423: result: o configure:3427: checking whether we are using the GNU C compiler configure:3446: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:3446: $? = 0 configure:3455: result: yes configure:3464: checking whether gcc accepts -g configure:3484: gcc -c -g conftest.c >&5 configure:3484: $? = 0 configure:3525: result: yes configure:3542: checking for gcc option to accept ISO C89 configure:3606: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:3606: $? = 0 configure:3619: result: none needed configure:3639: checking for a sed that does not truncate output configure:3703: result: /bin/sed configure:3721: checking for grep that handles long lines and -e configure:3779: result: /usr/bin/grep configure:3784: checking for egrep configure:3846: result: /usr/bin/grep -E configure:3851: checking for fgrep configure:3913: result: /usr/bin/grep -F configure:3948: checking for ld used by gcc configure:4015: result: /usr/x86_64-pc-linux-gnu/bin/ld configure:4022: checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld configure:4037: result: yes configure:4049: checking for BSD- or MS-compatible name lister (nm) configure:4098: result: /usr/bin/nm -B configure:4228: checking the name lister (/usr/bin/nm -B) interface configure:4235: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:4238: /usr/bin/nm -B "conftest.o" configure:4241: output 0000000000000000 B some_variable configure:4248: result: BSD nm configure:4251: checking whether ln -s works configure:4255: result: yes configure:4263: checking the maximum length of command line arguments configure:4388: result: 1572864 configure:4405: checking whether the shell understands some XSI constructs configure:4415: result: yes configure:4419: checking whether the shell understands "+=" configure:4425: result: yes configure:4460: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format configure:4500: result: func_convert_file_noop configure:4507: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:4527: result: func_convert_file_noop configure:4534: checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files configure:4541: result: -r configure:4615: checking for objdump configure:4642: result: objdump configure:4671: checking how to recognize dependent libraries configure:4873: result: pass_all configure:4958: checking for dlltool configure:4985: result: dlltool configure:5015: checking how to associate runtime and link libraries configure:5042: result: printf %s\n configure:5103: checking for ar configure:5119: found /usr/bin/ar configure:5130: result: ar configure:5167: checking for archiver @FILE support configure:5184: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:5184: $? = 0 configure:5187: ar cru libconftest.a @conftest.lst >&5 configure:5190: $? = 0 configure:5195: ar cru libconftest.a @conftest.lst >&5 ar: conftest.o: No such file or directory configure:5198: $? = 1 configure:5210: result: @ configure:5268: checking for strip configure:5284: found /usr/bin/strip configure:5295: result: strip configure:5367: checking for ranlib configure:5383: found /usr/bin/ranlib configure:5394: result: ranlib configure:5471: checking for gawk configure:5487: found /bin/gawk configure:5498: result: gawk configure:5538: checking command to parse /usr/bin/nm -B output from gcc object configure:5657: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:5660: $? = 0 configure:5664: /usr/bin/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.nm configure:5667: $? = 0 configure:5733: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c conftstm.o >&5 configure:5736: $? = 0 configure:5774: result: ok configure:5811: checking for sysroot configure:5841: result: no configure:5918: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:5921: $? = 0 configure:6084: checking for mt configure:6114: result: no configure:6134: checking if : is a manifest tool configure:6140: : '-?' configure:6148: result: no configure:6780: checking how to run the C preprocessor configure:6811: gcc -E conftest.c configure:6811: $? = 0 configure:6825: gcc -E conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:6825: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:6850: result: gcc -E configure:6870: gcc -E conftest.c configure:6870: $? = 0 configure:6884: gcc -E conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:6884: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:6913: checking for ANSI C header files configure:6933: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:6933: $? = 0 configure:7006: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7006: $? = 0 configure:7006: ./conftest configure:7006: $? = 0 configure:7017: result: yes configure:7030: checking for sys/types.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for sys/stat.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for stdlib.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for string.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for memory.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for strings.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for inttypes.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for stdint.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7030: checking for unistd.h configure:7030: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7030: $? = 0 configure:7030: result: yes configure:7044: checking for dlfcn.h configure:7044: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:7044: $? = 0 configure:7044: result: yes configure:7229: checking for objdir configure:7244: result: .libs configure:7511: checking if gcc supports -fno-rtti -fno-exceptions configure:7529: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] configure:7533: $? = 0 configure:7546: result: no configure:7856: checking for gcc option to produce PIC configure:7863: result: -fPIC -DPIC configure:7871: checking if gcc PIC flag -fPIC -DPIC works configure:7889: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -fPIC -DPIC -DPIC conftest.c >&5 configure:7893: $? = 0 configure:7906: result: yes configure:7935: checking if gcc static flag -static works configure:7963: result: yes configure:7978: checking if gcc supports -c -o file.o configure:7999: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -o out/conftest2.o conftest.c >&5 configure:8003: $? = 0 configure:8025: result: yes configure:8033: checking if gcc supports -c -o file.o configure:8080: result: yes configure:8113: checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries configure:9275: result: yes configure:9312: checking whether -lc should be explicitly linked in configure:9320: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.c >&5 configure:9323: $? = 0 configure:9338: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1 configure:9341: $? = 0 configure:9355: result: no configure:9520: checking dynamic linker characteristics configure:10035: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wl,-rpath -Wl,/foo conftest.c >&5 configure:10035: $? = 0 configure:10269: result: GNU/Linux ld.so configure:10376: checking how to hardcode library paths into programs configure:10401: result: immediate configure:10941: checking whether stripping libraries is possible configure:10946: result: yes configure:10981: checking if libtool supports shared libraries configure:10983: result: yes configure:10986: checking whether to build shared libraries configure:11007: result: yes configure:11010: checking whether to build static libraries configure:11014: result: yes configure:11102: checking for gcc configure:11129: result: gcc configure:11358: checking for C compiler version configure:11367: gcc --version >&5 gcc (GCC) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:11378: $? = 0 configure:11367: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /usr/src/gcc-4.6.3/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-threads=posix --enable-languages=c,c++ --with-bugurl=http://bugs.sourcemage.org --enable-bootstrap --enable-checking=release --disable-multilib --without-ppl --without-cloog --build=x86_64-pc-linux-gnu --with-system-zlib --enable-nls Thread model: posix gcc version 4.6.3 (GCC) configure:11378: $? = 0 configure:11367: gcc -V >&5 gcc: error: unrecognized option '-V' gcc: fatal error: no input files compilation terminated. configure:11378: $? = 1 configure:11367: gcc -qversion >&5 gcc: error: unrecognized option '-qversion' gcc: fatal error: no input files compilation terminated. configure:11378: $? = 1 configure:11382: checking whether we are using the GNU C compiler configure:11410: result: yes configure:11419: checking whether gcc accepts -g configure:11480: result: yes configure:11497: checking for gcc option to accept ISO C89 configure:11574: result: none needed configure:11652: checking for g++ configure:11668: found /usr/bin/g++ configure:11679: result: g++ configure:11706: checking for C++ compiler version configure:11715: g++ --version >&5 g++ (GCC) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:11726: $? = 0 configure:11715: g++ -v >&5 Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /usr/src/gcc-4.6.3/configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-threads=posix --enable-languages=c,c++ --with-bugurl=http://bugs.sourcemage.org --enable-bootstrap --enable-checking=release --disable-multilib --without-ppl --without-cloog --build=x86_64-pc-linux-gnu --with-system-zlib --enable-nls Thread model: posix gcc version 4.6.3 (GCC) configure:11726: $? = 0 configure:11715: g++ -V >&5 g++: error: unrecognized option '-V' g++: fatal error: no input files compilation terminated. configure:11726: $? = 1 configure:11715: g++ -qversion >&5 g++: error: unrecognized option '-qversion' g++: fatal error: no input files compilation terminated. configure:11726: $? = 1 configure:11730: checking whether we are using the GNU C++ compiler configure:11749: g++ -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.cpp >&5 configure:11749: $? = 0 configure:11758: result: yes configure:11767: checking whether g++ accepts -g configure:11787: g++ -c -g conftest.cpp >&5 configure:11787: $? = 0 configure:11828: result: yes configure:11869: checking how to run the C++ preprocessor configure:11896: g++ -E conftest.cpp configure:11896: $? = 0 configure:11910: g++ -E conftest.cpp conftest.cpp:21:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:11910: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | #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/" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:11935: result: g++ -E configure:11955: g++ -E conftest.cpp configure:11955: $? = 0 configure:11969: g++ -E conftest.cpp conftest.cpp:21:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:11969: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | #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/" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:12139: checking for ld used by g++ configure:12206: result: /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64 configure:12213: checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld configure:12228: result: yes configure:12283: checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries configure:13287: result: yes configure:13322: g++ -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC conftest.cpp >&5 configure:13325: $? = 0 configure:13845: checking for g++ option to produce PIC configure:13852: result: -fPIC -DPIC configure:13860: checking if g++ PIC flag -fPIC -DPIC works configure:13878: g++ -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -fPIC -DPIC -DPIC conftest.cpp >&5 configure:13882: $? = 0 configure:13895: result: yes configure:13918: checking if g++ static flag -static works configure:13946: result: yes configure:13958: checking if g++ supports -c -o file.o configure:13979: g++ -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -o out/conftest2.o conftest.cpp >&5 configure:13983: $? = 0 configure:14005: result: yes configure:14010: checking if g++ supports -c -o file.o configure:14057: result: yes configure:14087: checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries configure:14124: result: yes configure:14267: checking dynamic linker characteristics configure:14950: result: GNU/Linux ld.so configure:15003: checking how to hardcode library paths into programs configure:15028: result: immediate configure:15082: checking for a BSD-compatible install configure:15150: result: /bin/install -c configure:15165: checking whether gcc accepts -fexceptions configure:15178: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:23:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15178: $? = 0 configure:15179: result: yes configure:15190: checking for ANSI C header files configure:15294: result: yes configure:15304: checking whether byte ordering is bigendian configure:15326: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:25:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15326: $? = 0 configure:15343: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:25:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:29:2: error: unknown type name 'not' conftest.c:29:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'endian' configure:15343: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | #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 STDC_HEADERS 1 | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/param.h> | int | main () | { | | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | ; | return 0; | } configure:15379: result: no configure:15432: checking for an ANSI C-conforming const configure:15497: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:25:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:52:10: warning: 't' is used uninitialized in this function [-Wuninitialized] conftest.c:68:23: warning: 'b' may be used uninitialized in this function [-Wuninitialized] configure:15497: $? = 0 configure:15504: result: yes configure:15512: checking for size_t configure:15512: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:57:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15512: $? = 0 configure:15512: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:57:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:59:21: error: expected expression before ')' token configure:15512: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | #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 STDC_HEADERS 1 | #define BYTEORDER 1234 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | int | main () | { | if (sizeof ((size_t))) | return 0; | ; | return 0; | } configure:15512: result: yes configure:15526: checking for memmove configure:15526: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:46:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c:46:6: warning: conflicting types for built-in function 'memmove' [enabled by default] conftest.c:55:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15526: $? = 0 configure:15526: result: yes configure:15526: checking for bcopy configure:15526: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:47:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c:47:6: warning: conflicting types for built-in function 'bcopy' [enabled by default] conftest.c:56:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15526: $? = 0 configure:15526: result: yes configure:15539: checking fcntl.h usability configure:15539: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 configure:15539: $? = 0 configure:15539: result: yes configure:15539: checking fcntl.h presence configure:15539: gcc -E conftest.c configure:15539: $? = 0 configure:15539: result: yes configure:15539: checking for fcntl.h configure:15539: result: yes configure:15539: checking for unistd.h configure:15539: result: yes configure:15549: checking for off_t configure:15549: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:61:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15549: $? = 0 configure:15549: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:61:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:63:20: error: expected expression before ')' token configure:15549: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | #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 STDC_HEADERS 1 | #define BYTEORDER 1234 | #define HAVE_MEMMOVE 1 | #define HAVE_BCOPY 1 | #define HAVE_FCNTL_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | int | main () | { | if (sizeof ((off_t))) | return 0; | ; | return 0; | } configure:15549: result: yes configure:15566: checking for stdlib.h configure:15566: result: yes configure:15566: checking for unistd.h configure:15566: result: yes configure:15566: checking for sys/param.h configure:15566: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 configure:15566: $? = 0 configure:15566: result: yes configure:15586: checking for getpagesize configure:15586: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:53:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c:62:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15586: $? = 0 configure:15586: result: yes configure:15595: checking for working mmap configure:15742: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:129:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15742: $? = 0 configure:15742: ./conftest configure:15742: $? = 0 configure:15752: result: yes configure:15781: checking for gcc option to accept ISO C99 configure:15930: gcc -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:82:29: error: expected ';', ',' or ')' before 'text' conftest.c: In function 'test_varargs': conftest.c:103:9: warning: variable 'fnumber' set but not used [-Wunused-but-set-variable] conftest.c:102:7: warning: variable 'number' set but not used [-Wunused-but-set-variable] conftest.c:101:15: warning: variable 'str' set but not used [-Wunused-but-set-variable] conftest.c: At top level: conftest.c:127:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:134:3: warning: implicit declaration of function 'test_restrict' [-Wimplicit-function-declaration] conftest.c:136:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar' conftest.c:136:18: error: 'newvar' undeclared (first use in this function) conftest.c:136:18: note: each undeclared identifier is reported only once for each function it appears in conftest.c:146:3: error: 'for' loop initial declarations are only allowed in C99 mode conftest.c:146:3: note: use option -std=c99 or -std=gnu99 to compile your code configure:15930: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" | #define PACKAGE_URL "" | #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 STDC_HEADERS 1 | #define BYTEORDER 1234 | #define HAVE_MEMMOVE 1 | #define HAVE_BCOPY 1 | #define HAVE_FCNTL_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_PARAM_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_MMAP 1 | /* end confdefs.h. */ | #include <stdarg.h> | #include <stdbool.h> | #include <stdlib.h> | #include <wchar.h> | #include <stdio.h> | | // Check varargs macros. These examples are taken from C99 6.10.3.5. | #define debug(...) fprintf (stderr, __VA_ARGS__) | #define showlist(...) puts (#__VA_ARGS__) | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | static void | test_varargs_macros (void) | { | int x = 1234; | int y = 5678; | debug ("Flag"); | debug ("X = %d\n", x); | showlist (The first, second, and third items.); | report (x>y, "x is %d but y is %d", x, y); | } | | // Check long long types. | #define BIG64 18446744073709551615ull | #define BIG32 4294967295ul | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | #if !BIG_OK | your preprocessor is broken; | #endif | #if BIG_OK | #else | your preprocessor is broken; | #endif | static long long int bignum = -9223372036854775807LL; | static unsigned long long int ubignum = BIG64; | | struct incomplete_array | { | int datasize; | double data[]; | }; | | struct named_init { | int number; | const wchar_t *name; | double average; | }; | | typedef const char *ccp; | | static inline int | test_restrict (ccp restrict text) | { | // See if C++-style comments work. | // Iterate through items via the restricted pointer. | // Also check for declarations in for loops. | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | continue; | return 0; | } | | // Check varargs and va_copy. | static void | test_varargs (const char *format, ...) | { | va_list args; | va_start (args, format); | va_list args_copy; | va_copy (args_copy, args); | | const char *str; | int number; | float fnumber; | | while (*format) | { | switch (*format++) | { | case 's': // string | str = va_arg (args_copy, const char *); | break; | case 'd': // int | number = va_arg (args_copy, int); | break; | case 'f': // float | fnumber = va_arg (args_copy, double); | break; | default: | break; | } | } | va_end (args_copy); | va_end (args); | } | | int | main () | { | | // Check bool. | _Bool success = false; | | // Check restrict. | if (test_restrict ("String literal") == 0) | success = true; | char *restrict newvar = "Another string"; | | // Check varargs. | test_varargs ("s, d' f .", "string", 65, 34.234); | test_varargs_macros (); | | // Check flexible array members. | struct incomplete_array *ia = | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | ia->datasize = 10; | for (int i = 0; i < ia->datasize; ++i) | ia->data[i] = i * 1.234; | | // Check named initializers. | struct named_init ni = { | .number = 34, | .name = L"Test wide string", | .average = 543.34343, | }; | | ni.number = 58; | | int dynamic_array[ni.number]; | dynamic_array[ni.number - 1] = 543; | | // work around unused variable warnings | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | || dynamic_array[ni.number - 1] != 543); | | ; | return 0; | } configure:15930: gcc -std=gnu99 -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c: In function 'test_varargs': conftest.c:103:9: warning: variable 'fnumber' set but not used [-Wunused-but-set-variable] conftest.c:102:7: warning: variable 'number' set but not used [-Wunused-but-set-variable] conftest.c:101:15: warning: variable 'str' set but not used [-Wunused-but-set-variable] conftest.c: At top level: conftest.c:127:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] configure:15930: $? = 0 configure:15950: result: -std=gnu99 configure:16052: checking for gcc -std=gnu99 option to accept ISO Standard C configure:16066: result: -std=gnu99 configure:16070: checking for an ANSI C99-conforming __func__ configure:16086: gcc -std=gnu99 -c -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions conftest.c >&5 conftest.c:34:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:36:13: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] conftest.c:36:7: warning: unused variable 'foo' [-Wunused-variable] configure:16086: $? = 0 configure:16109: result: yes configure:16249: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by expat config.status 2.1.0, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on bla.home.kingdom config.status:1135: creating Makefile config.status:1238: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status:1135: creating expat.pc config.status:1135: creating expat_config.h config.status:1324: executing libtool commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-pc-linux-gnu ac_cv_c_bigendian=no ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_cpp_func=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC' ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-pc-linux-gnu ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_bcopy=yes ac_cv_func_getpagesize=yes ac_cv_func_memmove=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_header_dlfcn_h=yes ac_cv_header_fcntl_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_param_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=x86_64-pc-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_FGREP='/usr/bin/grep -F' ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/bin/sed ac_cv_path_install='/bin/install -c' ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_CXXCPP='g++ -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_DLLTOOL=dlltool ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_c99=-std=gnu99 ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc=-std=gnu99 ac_cv_prog_cxx_g=yes ac_cv_type_off_t=yes ac_cv_type_size_t=yes lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=no lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=/usr/x86_64-pc-linux-gnu/bin/ld lt_cv_path_LDCXX='/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64' lt_cv_path_NM='/usr/bin/nm -B' lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_pic_works_CXX=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_compiler_static_works_CXX=yes lt_cv_prog_gnu_ld=yes lt_cv_prog_gnu_ldcxx=yes lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath=no lt_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=1572864 lt_cv_to_host_file_cmd=func_convert_file_noop lt_cv_to_tool_file_cmd=func_convert_file_noop ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AS='as' AWK='gawk' CC='gcc -std=gnu99' CFLAGS='-march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions' CPP='gcc -E' CPPFLAGS='' CXX='g++' CXXCPP='g++ -E' CXXFLAGS='-march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -Wall -fexceptions' DEFS='-DHAVE_CONFIG_H' DLLTOOL='dlltool' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' FGREP='/usr/bin/grep -F' FILEMAP='unixfilemap' GREP='/usr/bin/grep' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' LD='/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64' LDFLAGS='' LIBAGE='6' LIBCURRENT='7' LIBOBJS='' LIBREVISION='0' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='ln -s' LTLIBOBJS='' MANIFEST_TOOL=':' NM='/usr/bin/nm -B' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OTOOL64='' OTOOL='' PACKAGE_BUGREPORT='expat-bugs AT libexpat.org' PACKAGE_NAME='expat' PACKAGE_STRING='expat 2.1.0' PACKAGE_TARNAME='expat' PACKAGE_URL='' PACKAGE_VERSION='2.1.0' PATH_SEPARATOR=':' RANLIB='ranlib' SED='/bin/sed' SHELL='/bin/sh' STRIP='strip' ac_ct_AR='ar' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_DUMPBIN='' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='x86_64-pc-linux-gnu' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' host='x86_64-pc-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='/usr/share/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='/var' mandir='/usr/share/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "expat" #define PACKAGE_TARNAME "expat" #define PACKAGE_VERSION "2.1.0" #define PACKAGE_STRING "expat 2.1.0" #define PACKAGE_BUGREPORT "expat-bugs AT libexpat.org" #define PACKAGE_URL "" #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 STDC_HEADERS 1 #define BYTEORDER 1234 #define HAVE_MEMMOVE 1 #define HAVE_BCOPY 1 #define HAVE_FCNTL_H 1 #define HAVE_UNISTD_H 1 #define HAVE_STDLIB_H 1 #define HAVE_UNISTD_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_GETPAGESIZE 1 #define HAVE_MMAP 1 #define XML_NS 1 #define XML_DTD 1 #define XML_CONTEXT_BYTES 1024 configure: exit 0main
logfile /tmp/sorcery/cast/12137/expat.compile.log.castfs.dbglog fd 3
debug level 255
mount path /tmp/sorcery/cast/12137/test-mount
stage path /tmp/sorcery/cast/12137/test-stage
ignored dir /tmp
argv[0] = "castfs"
argv[1] = "/tmp/sorcery/cast/12137/test-mount"
getattr /
Root Path: /
Address: 0x2203110
is staged: 0
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/
access /
Root Path: /
Address: 0x2203110
is staged: 0
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/
getattr /foo
create /foo, 100644
Root Path: /foo
Address: 0x2223E50
is staged: 0
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/foo
fgetattr /foo
fgetattr /foo
Root Path: /foo
Address: 0x2223E50
is staged: 1
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/foo
write /foo
release /foo
getattr /
Root Path: /
Address: 0x2203110
is staged: 0
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/
getattr /foo
Root Path: /foo
Address: 0x2223E50
is staged: 1
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/foo
open /foo, 0x8000
Root Path: /foo
Address: 0x2223E50
is staged: 1
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/foo
Okay it's staged
read /foo
fgetattr /foo
fgetattr /foo
Root Path: /foo
Address: 0x2223E50
is staged: 1
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/foo
release /foo
unlink /foo
Root Path: /foo
Address: 0x2223E50
is staged: 1
is deleted: 0
is ignored: 0
stage path: /tmp/sorcery/cast/12137/test-stage/foo
actually removing file /tmp/sorcery/cast/12137/test-stage/foo
main
logfile /tmp/sorcery/cast/12137/expat.compile.log.castfs.dbglog fd 4
debug level 255
mount path /usr/src/stage-expat-2.1.0/MOUNT
stage path /usr/src/stage-expat-2.1.0/TRANSL
ignored dir /dev
ignored dir /proc
ignored dir /tmp
ignored dir /var/tmp
ignored dir /sys
ignored dir /usr/src
ignored dir /var/lib/sorcery
ignored dir /var/lib/sorcery
ignored dir /var/spool/sorcery
ignored dir /etc/sorcery/local
ignored dir /etc/sorcery/local
ignored dir /var/state/sorcery
ignored dir /var/log/sorcery
argv[0] = "castfs"
argv[1] = "/usr/src/stage-expat-2.1.0/MOUNT"
getattr /dev
getattr /proc
getattr /sys
opendir /
Root Path: /
Address: 0xC92390
is staged: 0
is deleted: 0
is ignored: 0
stage path: /usr/src/stage-expat-2.1.0/TRANSL/
getattr /
Root Path: /
Address: 0xC92390
is staged: 0
is deleted: 0
is ignored: 0
stage path: /usr/src/stage-expat-2.1.0/TRANSL/
get_dirp
releasedir /
-
[SM-Discuss] Installing spells fails,
Mirko Wilhelmi, 10/14/2012
- Re: [SM-Discuss] Installing spells fails, Sukneet Basuta, 10/15/2012
Archive powered by MHonArc 2.6.24.