lua-users home
lua-l archive

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


> 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