Summary: | unexpected token in '.type' directive | ||
---|---|---|---|
Product: | MuPDF | Reporter: | Zsolt <udvzsolt> |
Component: | mupdf | Assignee: | MuPDF bugs <mupdf-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | robin.watts |
Priority: | P4 | ||
Version: | 1.9 | ||
Hardware: | PC | ||
OS: | FreeBSD | ||
Customer: | Word Size: | --- |
Description
Zsolt
2016-06-07 21:28:56 UTC
We have some #ifdef logic in the code generated by fontdump that goes: #ifndef __STRICT_ANSI__ #if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) #if !defined(__ICC) #define HAVE_INCBIN #endif #endif #endif That is enabling HAVE_INCBIN for FreeBSD builds, but your toolset does not support it. Remove the #define HAVE_INCBIN line (or better, edit fontdump.c to avoid outputting that line), and you should be Ok. Please let us know how you get on. It causes many other "undefinied reference to..." errors: http://freebsd.uzsolt.hu/logs/mupdf/mupdf-1.9a%2C1-undefinied_reference.log The applied patch: http://freebsd.uzsolt.hu/diff/patch-scripts_fontdump.c The problem is with freebsd's packaging and with javascript stuff being missed. Use the latest version from our git, and you'll be fine. Ooops, you've right. It was my fault. It seems the attached patch works. Thank for your help! |