Re: [bug-gawk] Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-07 Thread Aharon Robbins
Hi All. > The compilation seems to work cleanly on Solaris 9/10 Sparc and Solaris 10 > i386 with > -Xc -D_XPG4_2 > as the headers have been modified in Solaris 10. It sounds like the right thing for me to do is to update the Solaris specific README file in the gawk dist. Thanks, Arnold

Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-07 Thread Bruno Haible
Dagobert Michelsen wrote: > The problem exists only on Solaris 9 i386 As noted in the problem exists also on Solaris 9 SPARC. > I am inclined to think the header file for Solaris 9 i386 is buggy as gawk > compiles > cleanly wit

Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-07 Thread Dagobert Michelsen
Hi Bruno, Am 07.07.2011 um 19:40 schrieb Bruno Haible: > Dagobert Michelsen wrote: >> Maybe the test in awk.h is too strict and should be something like this? > > Do you mean that 'cc' on Solaris cannot be put into a mode where it > 1) Accepts C99 syntax (declarations after statements and the li

Re: [bug-gawk] Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-07 Thread Aharon Robbins
Hi Dagobert. > > -#if !defined(__STDC__) || __STDC__ < 1 > > +#if (!defined(__STDC__) || __STDC__ < 1) && !defined(__EXTENSIONS__) I can understand your frustration but I'm sorry, but this looks to be very specific to the Sun compiler. If you want to extend this so that it's clear it's for the S

Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-07 Thread Bruno Haible
Dagobert Michelsen wrote: > Maybe the test in awk.h is too strict and should be something like this? Do you mean that 'cc' on Solaris cannot be put into a mode where it 1) Accepts C99 syntax (declarations after statements and the like), 2) Defines __STDC__ to 1, and 3) Has a working file?

Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-07 Thread Dagobert Michelsen
Hi Bruno, Am 02.07.2011 um 13:56 schrieb Bruno Haible: > Conclusion: The use of option -Xc effectively removes from the > set of available header files. This is expected because in -Xc mode, only ISO > C > headers should be available. > > But relies on , for the definition of some types; > do

Re: [bug-gawk] Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-02 Thread Aharon Robbins
Bruno, Thanks for the analysis. Arnold

Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-02 Thread Bruno Haible
[CCing bug-libsigsegv. This is a reply to ]. Dagobert Michelsen wrote: > I am trying to compile gawk 4.0.0 on Solaris 9 Sparc with Sun Studio 12 and > noticed that the presence of libsigsegv is not properly detected: > > > config

Re: Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-02 Thread Dagobert Michelsen
Hi, Am 02.07.2011 um 11:18 schrieb Dagobert Michelsen: > I am trying to compile gawk 4.0.0 on Solaris 9 Sparc with Sun Studio 12 and > noticed that the presence of libsigsegv is not properly detected: > >> configure:9825: checking for libsigsegv >> configure:9847: /opt/SUNWspro/bin/cc -o conftest

Problem detecting libsigsegv on gawk 4.0.0 on Solaris 9 Sparc w/Sun Studio 12

2011-07-02 Thread Dagobert Michelsen
Hi, I am trying to compile gawk 4.0.0 on Solaris 9 Sparc with Sun Studio 12 and noticed that the presence of libsigsegv is not properly detected: > configure:9825: checking for libsigsegv > configure:9847: /opt/SUNWspro/bin/cc -o conftest -xO3 -m32 -xarch=386 -Xc > -I/opt/csw/include -m32 -xarch