Re: CURRENT (r249438): (devel/libiconv)./unistd.h:686:5: error: invalid token at start of a preprocessor expression : #if @GNULIB_EUIDACCESS@

From: Jan Beich <jbeich_at_tormail.org>
Date: Mon, 15 Apr 2013 16:42:50 -0600
"O. Hartmann" <ohartman_at_zedat.fu-berlin.de> writes:

> Trying to recompile converters/libiconv on FreeBSD 10.0-CUR/r49438 (with
> bran new CLANG 3.3) results  with the errors below. This error shows up
> on boxes having FBSD 10 and X11. It doesn't show up on those boxes
> running without a full X11 (that is the only difference I can figure out
> at the moment since the different systems share a lot of configuration
> stuff, having different CPU types (C2D, Sandy-Bridge, Ivy-Bridge) but
> nothing I can figure out as the source of the strange behaviour and
> error).
[...]
> converters/libiconv:
> cc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib  -I../intl
> -DDEPENDS_ON_LIBICONV=1  -DDEPENDS_ON_LIBINTL=1    -O2 -pipe -O3
> -march=native -fno-strict-aliasing -c areadlink.c
> In file included from areadlink.c:27:
> In file included from ./careadlinkat.h:23:
> In file included from ./fcntl.h:62:
> ./unistd.h:694:5: error: invalid token at start of a preprocessor
> expression
> #if _at_GNULIB_EUIDACCESS_at_
>     ^
> 1 error generated.

Maybe -O3 overoptimizes regex in libc e.g.,

$ echo '#if _at_GNULIB_EUIDACCESS_at_' | sed 's/_at_GNULIB_EUIDACCESS_at_/0/'
#if _at_GNULIB_EUIDACCESS_at_

$ echo 'aaaaaaaaaaaaaaaaxxxaaaa' | sed 's/aaaaaaaaaaaaxxxaaaa//'
aaaaaaaaaaaaaaaaxxxaaaa
Received on Mon Apr 15 2013 - 20:44:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC