Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc: can't build mc with included gettext #2664

Closed
k0ste opened this issue May 7, 2016 · 1 comment
Closed

mc: can't build mc with included gettext #2664

k0ste opened this issue May 7, 2016 · 1 comment

Comments

@k0ste
Copy link

k0ste commented May 7, 2016

Hello. After this commit 46d99ac, can't build mc on ArchLinux distro.
--with-included-gettext - disable this option resolve problem.

In file included from ../../intl/plural.y:35:0:
plural-exp.h:94:23: error: conflicting types for ‘libintl_gettextparse’
 # define PLURAL_PARSE libintl_gettextparse
                       ^
../../intl/plural.y:40:25: note: in expansion of macro ‘PLURAL_PARSE’
../../intl/plural.c:187:5: note: in expansion of macro ‘__gettextparse’
plural-exp.h:94:23: note: previous declaration of ‘libintl_gettextparse’ was here
 # define PLURAL_PARSE libintl_gettextparse
                       ^
plural-exp.h:106:12: note: in expansion of macro ‘PLURAL_PARSE’
 extern int PLURAL_PARSE (void *arg);
            ^
plural-exp.h:94:23: error: conflicting types for ‘libintl_gettextparse’
 # define PLURAL_PARSE libintl_gettextparse
                       ^
../../intl/plural.y:40:25: note: in expansion of macro ‘PLURAL_PARSE’
plural.c:63:25: note: in expansion of macro ‘__gettextparse’
 #define yyparse         __gettextparse
                         ^
../../intl/plural.c:1108:1: note: in expansion of macro ‘yyparse’
plural-exp.h:94:23: note: previous declaration of ‘libintl_gettextparse’ was here
 # define PLURAL_PARSE libintl_gettextparse
                       ^
plural-exp.h:106:12: note: in expansion of macro ‘PLURAL_PARSE’
 extern int PLURAL_PARSE (void *arg);
            ^
../../intl/plural.c: In function ‘libintl_gettextparse’:
plural.c:64:25: error: too few arguments to function ‘__gettextlex’
 #define yylex           __gettextlex
                         ^
../../intl/plural.c:1277:16: note: in expansion of macro ‘yylex’
plural.c:64:25: note: declared here
 #define yylex           __gettextlex
                         ^
../../intl/plural.y:57:12: note: in expansion of macro ‘yylex’
../../intl/plural.y:154:29: error: ‘arg’ undeclared (first use in this function)
../../intl/plural.y:154:29: note: each undeclared identifier is reported only once for each function it appears in
../../intl/plural.y: In function ‘__gettexterror’:
../../intl/plural.y:378:22: warning: unused parameter ‘str’ [-Wunused-parameter]
Makefile:175: recipe for target 'plural.o' failed
@dibdot
Copy link
Contributor

dibdot commented May 8, 2016

fixed in trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants