m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stackovf implementation [Was: regex.c not 64-bit clean (?)]


From: Eric Blake
Subject: stackovf implementation [Was: regex.c not 64-bit clean (?)]
Date: Thu, 15 Jun 2006 06:18:06 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Santiago Vila on 6/15/2006 2:53 AM:
> 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
> cc1: warnings being treated as errors
> stackovf.c: In function 'setup_stackovf_trap':
> stackovf.c:344: warning: 'sigstack' is deprecated (declared at 
> /usr/include/signal.h:358)
> make[2]: *** [stackovf.o] Error 1

Hmm, on my normal cygwin development system, stackovf doesn't get
compiled, since the OS doesn't provide enough hooks sigstack or
sigaltstack.  I will have to look into this further, but I have an idea,
quoting from your configure log.

> checking for sigaction... yes
> checking for sigaltstack... yes
> checking for sigstack... yes
> checking for sigvec... yes

Try rerunning configure to disable sigstack, in order to force the
implementation to favor the standardized sigaltstack above the deprecated
sigstack.  And this time, don't use -Werror, so we can see how far
everything gets.

$ ac_cv_func_sigstack=no ./configure
$ make CFLAGS='-Wall'

If that compiles warning-free, then I will see about changing stackovf to
favor sigaltstack over sigstack; I can find a Linux machine to test on.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEkU/+84KuGfSFAYARAuFiAJ9IK0usHSejprFIWAD0tMV+qdbDzQCdEBgN
cfIyhsKL2+UmMlxcymMZKP0=
=TsyC
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]