bug-gnulib
[Top][All Lists]
Advanced

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

Re: Problem with getopt on CentOS 5.8


From: Eric Blake
Subject: Re: Problem with getopt on CentOS 5.8
Date: Fri, 04 Jan 2013 09:14:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 01/04/2013 07:58 AM, Christian Egli wrote:
> Hi all
> 
> The liblouis[1] project uses the getopt-gnu, progname and version-etc
> modules from gnulib.
> 
> 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?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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