- edited description
liblangtag-0.6.0: incompatible implicit declaration of built-in function 'index'
Issue #15
resolved
I'm having a difficult time finding the package containing the function 'index()' being referred here in order to resolve the implicit function declaration warning, which is being converted to an error under gcc 4.9.3
lt-xml.c: In function 'lt_xml_get_cldr':
lt-xml.c:409:5: error: implicit declaration of function 'index' [-Werror=implicit-function-declaration]
p = index(pp, ':');
^
lt-xml.c:409:9: warning: incompatible implicit declaration of built-in function 'index'
p = index(pp, ':');
^
cc1: some warnings being treated as errors
Comments (4)
-
reporter -
reporter Is this supposed to be from <strings.h>?
-
reporter if so, the following gets over this:
--- liblangtag/lt-xml.c.orig 2016-03-23 02:56:45.000000000 +0000 +++ liblangtag/lt-xml.c @@ -15,6 +15,9 @@ #endif #include <stddef.h> +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif #include <string.h> #include <sys/stat.h> #include <libxml/parser.h>
-
repo owner - changed status to resolved
Fix the build issue regarding to 'index' (fixes: issue
#15)→ <<cset bb3f4a79d146>>
- Log in to comment