bug-gnulib
[Top][All Lists]
Advanced

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

Re: regex.c value out of range on Solaris compiler


From: Paul Eggert
Subject: Re: regex.c value out of range on Solaris compiler
Date: Sat, 15 Apr 2017 14:40:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Gavin Smith wrote:
On Fri, Apr 14, 2017 at 07:00:06PM -0700, Paul Eggert wrote:
On 04/14/2017 02:27 PM, Gavin Smith wrote:
/opt/solarisstudio12.3/bin/c99 -Xc -D_XPG6 -DHAVE_CONFIG_H -I. -I../..
-D_REENTRANT  -I/opt/csw/include -c -o regex.o regex.c
"regex_internal.h", line 105: warning: macro redefined: gettext

That's odd. Where was the gettext macro originally defined?

/opt/csw/include/libintl.h, line 132: #define gettext libintl_gettext

Sorry, I don't understand how this could be. regex_internal.h's "#define gettext(msgid) msgid" line is in the else-part of the #if that #includes libintl.h in its then-part, so how can libintl.h's #define for gettext be active when regex_internal's #define is processed?

I only have access to 12.4 on the system I am using, but that appears to
compile the test file I posted without error. Solaris Studio 12.2 gives
the same error as 12.3.

Thanks, I installed the attached (comment-only) patches to try to explain this better. The first just fixes a typo. The 2nd has a messed-up commit message that I didn't discover until after pushing - oh well, the ChangeLog file is right.

Attachment: 0001-intprops-fix-comment-typo.patch
Description: Text Data

Attachment: 0002-intprops-improve-comments.patch
Description: Text Data


reply via email to

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