bug-gnulib
[Top][All Lists]
Advanced

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

Building the argp module fails


From: Brandon Invergo
Subject: Building the argp module fails
Date: Sat, 08 Jun 2013 18:37:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

This is my first try at using gnulib so I won't be surprised if it's a
user error.

Anyway, I tried importing the argp module into my project and the build
of the module itself always fails.  I've also tried it in an empty
directory with just minimal configure.ac and Makefile.am files and still
no luck. 

Here is stderr:

In file included from argp-eexst.c:25:0:
argp.h:582:1: error: unknown type name ‘_GL_INLINE_HEADER_BEGIN’
 _GL_INLINE_HEADER_BEGIN
 ^
argp.h:613:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘void’
 ARGP_EI void
         ^
argp.h:619:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘int’
 ARGP_EI int
         ^
argp.h:631:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘int’
 ARGP_EI int
         ^
argp.h:642:1: error: unknown type name ‘_GL_INLINE_HEADER_END’
 _GL_INLINE_HEADER_END
 ^
argp-eexst.c:30:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘argp_err_exit_status’
 error_t argp_err_exit_status = EX_USAGE;
         ^
make[3]: *** [argp-eexst.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

So, I know that I did everything listed in the reminders after importing
the module (gl_{EARLY,INIT} and lib/Makefile in AC_CONFIG_FILES in
configure.ac; and SUBDIRS=lib and ACLOCAL_AMFLAGS = -I m4 in
Makefile.am).  In my actual project, I added the necessary headers and
LDADD flags.  So, I'm reasonably sure that I did everything I needed to
do on my side.

A cursory search suggests that the problem lies in m4/extern-inline.m4,
which seems to not be used.  I do see AC_REQUIRE([gl_EXTERN_INLINE])
inside m4/gnulib-comp.m4.

So, first question is, am I doing something wrong?  If not, can I
provide any more detailed information to help hunt down the problem?

Thanks,
Brandon


-- 
Brandon Invergo
http://brandon.invergo.net

Attachment: pgpHTMOruWQuw.pgp
Description: PGP signature


reply via email to

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