emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#22087: closed (Problem with stdbuf configure test


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22087: closed (Problem with stdbuf configure test for 8.24 on Solaris with Studio C compiler.)
Date: Thu, 03 Dec 2015 21:58:02 +0000

Your message dated Thu, 3 Dec 2015 13:57:45 -0800
with message-id <address@hidden>
and subject line Re: bug#22087: Problem with stdbuf configure test for 8.24 on 
Solaris with Studio C compiler.
has caused the debbugs.gnu.org bug report #22087,
regarding Problem with stdbuf configure test for 8.24 on Solaris with Studio C 
compiler.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
22087: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22087
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Problem with stdbuf configure test for 8.24 on Solaris with Studio C compiler. Date: Thu, 3 Dec 2015 10:58:26 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
Hi,

I'm finally getting around to integrating coreutils version 8.24
into Solaris 12 (and being built with the Studio C compiler rather
than gcc) and noticed that the test for whether we had stdbuf was
failing.

I've fixed it with the following patch. Looks like gcc just doesn't
trip over this, but hopefully the suggested change "just works" for
both compilers.

Thanks.



$ cat configure.ac.patch
The configure test for "whether this is system supports stdbuf" was
failing because the warning:

"conftest.c", line 731: warning: statement not reached

was being turned into an error with the Studio C compiler (ignored
with the GNU C compiler).

We want to adjust the -errwarn option so that it ignores
E_STATEMENT_NOT_REACHED errors.

--- configure.ac.orig   2015-12-03 09:46:42.381111611 -0800
+++ configure.ac        2015-12-03 10:27:48.938546667 -0800
@@ -459,7 +459,7 @@
 ac_save_LDFLAGS=$LDFLAGS
 # Detect warnings about ignored "constructor" attributes.
 gl_WARN_ADD([-Werror], [CFLAGS])
-gl_WARN_ADD([-errwarn], [CFLAGS])
+gl_WARN_ADD([-errwarn=no%E_STATEMENT_NOT_REACHED], [CFLAGS])
 # Put this message here, after gl_WARN_ADD's chatter.
 AC_MSG_CHECKING([whether this system supports stdbuf])
 CFLAGS="-fPIC $CFLAGS"




--- End Message ---
--- Begin Message --- Subject: Re: bug#22087: Problem with stdbuf configure test for 8.24 on Solaris with Studio C compiler. Date: Thu, 3 Dec 2015 13:57:45 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
On 12/03/2015 01:08 PM, Rich Burridge wrote:
Yup. That works nicely too.

Thanks, I noticed a similar problem in three other places (which I guess don't affect your platform) and so installed the attached more-general patch.

Attachment: 0001-build-port-to-Studio-C-on-Solaris-12.patch
Description: Text Data


--- End Message ---

reply via email to

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