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

Tools in the 4.4.3 release are broken #1027

Closed
jwrdegoede opened this issue Feb 25, 2019 · 4 comments
Closed

Tools in the 4.4.3 release are broken #1027

jwrdegoede opened this issue Feb 25, 2019 · 4 comments

Comments

@jwrdegoede
Copy link

The 4.4.3 release seems to have accidentally? dropped:

#include "plugins.h"

From tools/datedit.c, leading to the tools missing handling of bitmap, etc. files breaking them. Re-adding the include:

--- allegro-4.4.3/tools/datedit.c
+++ allegro-4.4.3/tools/datedit.c
@@ -107,6 +107,8 @@
    int done, i;
    AL_CONST char *prop_types;
 
+   #include "plugins.h"
+
    do {
       done = TRUE;

Fixes this.

@fatcerberus
Copy link
Contributor

Apparently this was intentional:
fd82113

@jwrdegoede
Copy link
Author

fd82113 claims the header does not exist, this is not true, the header is auto-generated, at least when using the cmake buildsys. It looks to me like the author of that commit tried to fix a build-error with some other buildsys, but did it the wrong way.

The autogenerated plugin.h contains the tools/plugins/*.inc snippets which look like this:

/* registration code for setting up the alpha channel plugin */
{
   extern DATEDIT_MENU_INFO datalpha_menu1;
   extern DATEDIT_MENU_INFO datalpha_menu2;

   datedit_register_menu(&datalpha_menu1);
   datedit_register_menu(&datalpha_menu2);
}

Without this the plugins are not registered and e.g. selecting "File -> Read Bitmap" in grabber throws this error:

You seem to have removed the BITMAP plugin!

Not good ...

Restoring the include fixes this.

Note the dat tool is also broken, under Linux it now segfaults when executing: "dat -a -t bmp foo.dat bar.pcx", see: https://bugzilla.redhat.com/show_bug.cgi?id=1682921

Restoring the include also fixes this crash.

jwrdegoede referenced this issue Feb 26, 2019
the header file included is non-existant and not needed.
@SiegeLord
Copy link
Member

Ok, I'll look into it and release 4.4.3.1 with the fix.

@SiegeLord
Copy link
Member

4.4.3.1 is now released, and this should be fixed. Thanks for reporting this!

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