[liblouis-liblouisxml] Re: Problem with getopt on CentOS 5.8

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: Eric Blake <eblake@xxxxxxxxxx>
  • Date: Mon, 07 Jan 2013 10:09:14 +0100

Hi Eric

Thanks for your answer

Eric Blake <eblake@xxxxxxxxxx> writes:

> On 01/04/2013 07:58 AM, Christian Egli wrote:
>> We have a developer on CentOS 5.8 who can no longer compile. Make fails
>> in getopt.h with the following error message:
>> 
>>> In file included from /usr/include/unistd.h:837,
>>>                  from ./unistd.h:43,
>>>                  from ../../gnulib/unistd.c:3:
>>> ./getopt.h:232: error: expected ',' or ';' before '_GL_ARG_NONNULL'
>
> That sounds suspicious, as if the gnulib replacement getopt.h was not
> installed correctly.  Those line number match up to the unmodified
> getopt.in.h, but when that is converted to getopt.h, there is an earlier
> line that should have replaced a comment by a multi-line definition of
> _GL_ARG_NONNULL, and thus shifted line numbers down.  How are you
> getting the modules into your project, by gnulib-tool (preferred) or by
> copy-and-paste?

I used gnulib-tool to import. I upgraded to gnulib v0.0-7794-g964bbc2
and now apparently all the problems are gone (although there are hardly
any changes to the modules we are using except for the copyright years).
Could it be that the dev forgot to run autogen.sh, i.e. autoreconf?

Thanks
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: