[Top][All Lists]

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

Re: Cannot build gettext 0.17 on Solaris 2.8

From: Eric Blake
Subject: Re: Cannot build gettext 0.17 on Solaris 2.8
Date: Tue, 28 Oct 2008 21:29:22 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080914 Thunderbird/ Mnenhy/

Hash: SHA1

[adding bug-autoconf]

According to Bruno Haible on 10/28/2008 8:18 PM:
>> The problem is located in file gettext-0.17/gettext-tools/src/msgmerge.c
>> where #pragma directives are used with a space between '#' and 'pragma'.
> 1) spaces between '#' and preprocessor directives are allowed since ANSI C,
>    that is, 18 years ago, and Sun Workshop 6.2 is "only" 7 years old,
> Oh, with an option for OpenMP, I can reproduce it, finally:
> $ cc -xopenmp foo.c 
> cc: Warning: Optimizer level changed from 0 to 3 to support parallelized code.
> "foo.c", line 3: invalid source character: '#'

Does this bug affect all preprocessor directives when using -xopenmp, or
only #pragma?  I fear that it may have some big ramifications to existing
code bases if this bug plagues things like '# include' or '# define',
which occur liberally in gnulib and other open source projects.  Has Sun
been notified of their bug?  I'm wondering how best to document this
portability issue in the autoconf manual, and whether the AC_OPENMP macro
should be taught to recognize this bug.

- --
Don't work too hard, make some time for fun as well!

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


reply via email to

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