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

Build error with 1.37 release #1023

Closed
rezso opened this issue Nov 7, 2020 · 4 comments · Fixed by #1053
Closed

Build error with 1.37 release #1023

rezso opened this issue Nov 7, 2020 · 4 comments · Fixed by #1053

Comments

@rezso
Copy link

rezso commented Nov 7, 2020

The build fails in prettyprinter plugin:

In file included from /usr/include/unicode/umachine.h:52,
from /usr/include/unicode/utypes.h:38,
from /usr/include/unicode/ucnv_err.h:88,
from /usr/include/unicode/ucnv.h:52,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from PluginEntry.h:32,
from PluginEntry.c:28:
PrettyPrinter.h:55:22: error: two or more data types in declaration specifiers
55 | typedef unsigned int bool;

@codebrainz
Copy link
Member

Could be a clash with another file including stdbool.h or also defining own bool type.

IMO, it should either include stdbool.h and use the standard bool (alias of _Bool) or else use gboolean that is already available via the glib.h include.

@rezso if you want to test, try removing the offending line (55) and putting #include <stdbool.h> on line 32.

@rezso
Copy link
Author

rezso commented Nov 7, 2020

I tried it, and works.
Thank you.

@rezso rezso closed this as completed Nov 7, 2020
@codebrainz
Copy link
Member

Then it is a bug.

@b4n
Copy link
Member

b4n commented Nov 8, 2020

@rezso Could you give some information on your setup? System version, maybe libxml2 and Geany-Plugins version?

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

Successfully merging a pull request may close this issue.

3 participants