bug-gnu-utils
[Top][All Lists]
Advanced

[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:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
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
-----BEGIN PGP SIGNATURE-----
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

iEYEARECAAYFAkkH2JIACgkQ84KuGfSFAYDknACdFOGK4QiNxVSMG/U23UCZkfg9
JagAoI+0DoNDThqi7zX8CixoKm2XfMzt
=8w0o
-----END PGP SIGNATURE-----




reply via email to

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