On Tue, 20 Jun 2006, Eric Blake wrote:

> After looking more at POSIX, and testing on a Solaris 8 machine, I propose
> the following patch.  Santiago, can you test it on ia64, and see if it
> gets rid of the warning you were seeing?
> 
> 2006-06-20  Eric Blake  <[EMAIL PROTECTED]>
> 
>       Avoid obsolete sigstack when POSIX sigaltstack is available:
>       * src/m4.c: Blindly assume signal.h, since stackovf.c and gnulib
>       do likewise.
> [...]

Now it seems to work, finally.

After another bootstrap with gnulib, I did this, as before:

$ cd m4
$ ./configure CFLAGS=-Wall >& LOG-configure
$ make CFLAGS='-Wall -Werror' >& LOG-make

LOG-configure and LOG-make attached
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking siginfo.h usability... no
checking siginfo.h presence... no
checking for siginfo.h... no
checking for siginfo_t... yes
checking for struct sigaction.sa_sigaction... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for mkstemp... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for sigstack... yes
checking for sigvec... yes
checking for strerror... yes
checking for tmpfile... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long_only... yes
checking whether optreset is declared... no
checking for working GNU getopt function... yes
checking whether getenv is declared... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for mbstate_t... yes
checking whether mbrtowc and mbstate_t are properly declared... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for C/C++ restrict keyword... __restrict
checking for nl_langinfo and CODESET... yes
checking for isblank... yes
checking for mbrtowc... yes
checking for mempcpy... yes
checking for wcrtomb... yes
checking for wcscoll... yes
checking for isascii... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memchr... yes
checking for obstacks... yes
checking for working re_compile_pattern... no
checking for C/C++ restrict keyword... (cached) __restrict
checking for ssize_t... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for unistd.h... (cached) yes
checking ecvt declaration... yes
checking if stack overflow is detectable... yes
checking for rlim_t... yes
checking for stack_t... yes
checking for sigcontext... no
checking if changeword is wanted... no
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating checks/Makefile
config.status: creating examples/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing stamp-h commands
make  all-recursive
make[1]: Entering directory `/home/sanvila/tmp/m4'
Making all in examples
make[2]: Entering directory `/home/sanvila/tmp/m4/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/sanvila/tmp/m4/examples'
Making all in lib
make[2]: Entering directory `/home/sanvila/tmp/m4/lib'
cp ./alloca_.h alloca.h-t
mv alloca.h-t alloca.h
make  all-am
make[3]: Entering directory `/home/sanvila/tmp/m4/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c strnlen1.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c xalloc-die.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c exitfail.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c mbchar.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c regex.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c strcasecmp.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c xmalloc.c
rm -f libm4.a
ar cru libm4.a strnlen1.o xalloc-die.o exitfail.o mbchar.o regex.o strcasecmp.o 
xmalloc.o 
ranlib libm4.a
make[3]: Leaving directory `/home/sanvila/tmp/m4/lib'
make[2]: Leaving directory `/home/sanvila/tmp/m4/lib'
Making all in src
make[2]: Entering directory `/home/sanvila/tmp/m4/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT m4.o -MD -MP 
-MF ".deps/m4.Tpo" -c -o m4.o m4.c; \
        then mv -f ".deps/m4.Tpo" ".deps/m4.Po"; else rm -f ".deps/m4.Tpo"; 
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT builtin.o 
-MD -MP -MF ".deps/builtin.Tpo" -c -o builtin.o builtin.c; \
        then mv -f ".deps/builtin.Tpo" ".deps/builtin.Po"; else rm -f 
".deps/builtin.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT debug.o -MD 
-MP -MF ".deps/debug.Tpo" -c -o debug.o debug.c; \
        then mv -f ".deps/debug.Tpo" ".deps/debug.Po"; else rm -f 
".deps/debug.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT eval.o -MD 
-MP -MF ".deps/eval.Tpo" -c -o eval.o eval.c; \
        then mv -f ".deps/eval.Tpo" ".deps/eval.Po"; else rm -f 
".deps/eval.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT format.o -MD 
-MP -MF ".deps/format.Tpo" -c -o format.o format.c; \
        then mv -f ".deps/format.Tpo" ".deps/format.Po"; else rm -f 
".deps/format.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT freeze.o -MD 
-MP -MF ".deps/freeze.Tpo" -c -o freeze.o freeze.c; \
        then mv -f ".deps/freeze.Tpo" ".deps/freeze.Po"; else rm -f 
".deps/freeze.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT input.o -MD 
-MP -MF ".deps/input.Tpo" -c -o input.o input.c; \
        then mv -f ".deps/input.Tpo" ".deps/input.Po"; else rm -f 
".deps/input.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT macro.o -MD 
-MP -MF ".deps/macro.Tpo" -c -o macro.o macro.c; \
        then mv -f ".deps/macro.Tpo" ".deps/macro.Po"; else rm -f 
".deps/macro.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT output.o -MD 
-MP -MF ".deps/output.Tpo" -c -o output.o output.c; \
        then mv -f ".deps/output.Tpo" ".deps/output.Po"; else rm -f 
".deps/output.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT path.o -MD 
-MP -MF ".deps/path.Tpo" -c -o path.o path.c; \
        then mv -f ".deps/path.Tpo" ".deps/path.Po"; else rm -f 
".deps/path.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT symtab.o -MD 
-MP -MF ".deps/symtab.Tpo" -c -o symtab.o symtab.c; \
        then mv -f ".deps/symtab.Tpo" ".deps/symtab.Po"; else rm -f 
".deps/symtab.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I ../lib   -Wall -Werror -MT stackovf.o 
-MD -MP -MF ".deps/stackovf.Tpo" -c -o stackovf.o stackovf.c; \
        then mv -f ".deps/stackovf.Tpo" ".deps/stackovf.Po"; else rm -f 
".deps/stackovf.Tpo"; exit 1; fi
gcc  -Wall -Werror   -o m4  m4.o builtin.o debug.o eval.o format.o freeze.o 
input.o macro.o output.o path.o symtab.o stackovf.o ../lib/libm4.a 
make[2]: Leaving directory `/home/sanvila/tmp/m4/src'
Making all in doc
make[2]: Entering directory `/home/sanvila/tmp/m4/doc'
Updating ./version.texi
restore=: && backupdir=".am$$" && \
        am__cwd=`pwd` && cd . && \
        rm -rf $backupdir && mkdir $backupdir && \
        if (/bin/sh /home/sanvila/tmp/m4/missing --run makeinfo --version) 
>/dev/null 2>&1; then \
          for f in m4.info m4.info-[0-9] m4.info-[0-9][0-9] m4.i[0-9] 
m4.i[0-9][0-9]; do \
            if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
          done; \
        else :; fi && \
        cd "$am__cwd"; \
        if /bin/sh /home/sanvila/tmp/m4/missing --run makeinfo   -I . \
         -o m4.info m4.texinfo; \
        then \
          rc=0; \
          cd .; \
        else \
          rc=$?; \
          cd . && \
          $restore $backupdir/* `echo "./m4.info" | sed 's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
Updating man page m4.1
make[2]: Leaving directory `/home/sanvila/tmp/m4/doc'
Making all in checks
make[2]: Entering directory `/home/sanvila/tmp/m4/checks'
rm -f ./*[0-9][0-9].*
cd . && AWK=gawk ./get-them ../doc/m4.texinfo
Node: Top 
Node: Preliminaries - truncated
Node: Intro 
Node: History 
Node: Invoking m4 
Node: Bugs 
Node: Manual 
Node: Syntax 
Node: Names 
Node: Quoted strings - truncated
Node: Other tokens - truncated
Node: Comments 
Node: Macros 
Node: Invocation 
Node: Inhibiting Invocation - truncated --  1 file
Node: Macro Arguments - truncated --  1 file
Node: Quoting Arguments - truncated
Node: Macro expansion - truncated
Node: Definitions 
Node: Define  --  1 file
Node: Arguments  --  4 files
Node: Pseudo Arguments - truncated --  5 files
Node: Undefine  --  2 files
Node: Defn  --  1 file
Node: Pushdef  --  2 files
Node: Indir  --  1 file
Node: Builtin 
Node: Conditionals - truncated
Node: Ifdef  --  1 file
Node: Ifelse  --  2 files
Node: Loops  --  2 files
Node: Debugging 
Node: Dumpdef  --  2 files
Node: Trace  --  3 files
Node: Debug Levels - truncated
Node: Debug Output - truncated
Node: Input Control - truncated
Node: Dnl  --  1 file
Node: Changequote  --  3 files
Node: Changecom  --  2 files
Node: Changeword 
Node: M4wrap  --  2 files
Node: File Inclusion - truncated
Node: Include  --  3 files
Node: Search Path 
Node: Diversions 
Node: Divert  --  3 files
Node: Undivert  --  3 files
Node: Divnum  --  1 file
Node: Cleardiv  --  2 files
Node: Text handling - truncated
Node: Len  --  1 file
Node: Index macro  --  1 file
Node: Regexp  --  2 files
Node: Substr  --  1 file
Node: Translit  --  1 file
Node: Patsubst  --  2 files
Node: Format  --  1 file
Node: Arithmetic 
Node: Incr  --  1 file
Node: Eval  --  2 files
Node: UNIX commands - truncated
Node: Syscmd 
Node: Esyscmd  --  1 file
Node: Sysval  --  1 file
Node: Maketemp  --  1 file
Node: Miscellaneous - truncated
Node: Errprint  --  2 files
Node: M4exit  --  2 files
Node: Frozen files - truncated
Node: Compatibility - truncated
Node: Extensions 
Node: Incompatibilities - truncated
Node: Other Incompatibilities - truncated
Node: Concept index - truncated
Node: Macro index 
touch ./stamp-checks
make[2]: Leaving directory `/home/sanvila/tmp/m4/checks'
make[2]: Entering directory `/home/sanvila/tmp/m4'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/sanvila/tmp/m4'
make[1]: Leaving directory `/home/sanvila/tmp/m4'
_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches

Reply via email to