[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible compilation problems on newest linux installations
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 24 May 2009 11:06:37 -0300
> The build process fails with:
>
> In file included from
> ../../../source/texk/web2c/luatexdir/lua51/ldebug.c:31:
> /usr/include/stdio.h:653:39: error: macro "getline" passed 3
> arguments, but takes just 2
> make[5]: *** [liblua51_a-ldebug.o] Error 1
>
> It looks like this is because POSIX 2008's getline() is now exported
> by default in the newer glibc versions (as of 2.9.90, apparently).
It seems to me that this is a bug in glibc headers because Lua never
defines itself as a POSIX program, not even when LUA_USE_POSIX is on.
I assume that "make ansi" will work fine.
Others beg to differ:
https://bugzilla.redhat.com/show_bug.cgi?id=493941
Of course, the easiest fix is to change the Lua code to avoid this name,
but it does seems silly.
Thanks for the report.
--lhf