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
signature.asc
Description: OpenPGP digital signature