On 2015-07-27 8:05 PM, Thomas A. Moulton wrote:
Michael,
I did some checking and it appears that the problem was introduced in
Rev 1.49 of configure.ac
In that revision AC_PROG_CC_STDC was added on line 77
I commented out that line in the HEAD revision (line 81) and ./gnubg
--tty did come up as expected.
Thanks Thomas,
Philippe and I were aware of it. Buried in the messages between us I had
made the comment below to him. References to AC_PROG_CC_STDC are part of
using -std=c99 as part of the compiler options and what optimization
level you use also factors in. No optimizations seems to work.
--------------------
I rebuilt it from tagged 1.05 sources in CVS and the problem didn't
occur. I then built it from HEAD and it worked.
I sent you an email that seems to suggest the issue is with
Optimizations (-O0 seems to work) / compiling with --std=c99 / and some
issue with the C Runtime (And it could be related to something in our
code that makes this appear. If it is a bug it is something that seems
to affect the runtime code prior to main() being called.
The error you see under Ubuntu 15.04 is actually the same thing I see on
14.04 depending on the optimization level I use.
If I remove all the std=c99 stuff from configure.ac that has been added
then it seems to work fine no matter the optimization level.