On Jan 21, 2005, at 7:11 AM, Martin Costabel wrote:
This is the same error. It is now verboten to use

#include <freetype/freetype.h>

which used to be the standard entry point for freetype, versions 1 and 2, until version 2.1.6, that everyone was using and apparently is still using. One has to use now

#include <ft2build.h>
#include FT_FREETYPE_H

where the first line needs -I/usr/X11R6/include and the second one -I/usr/X11R6/include/freetype2.

I wouldn't trust Viv's hack to go very far without trouble, because the freetype2 headers rely on FT_FREETYPE_H to be defined as '<freetype/freetype.h>', whereas the hack defines it as '1'. It is then at the discretion of the preprocessor which one of the two definitions it takes. If we want to go this route, we would need to use -DFT_FREETYPE_H='<freetype/freetype.h>', I think.

I would opt for fixing the bug at its origin, namely the arbitrary incompatibility code inserted in freetype/freetype.h versions 2.1.7 and above. If we remove or comment the error code

#ifndef FT_FREETYPE_H
#error "`ft2build.h' hasn't been included yet!"
#error "Please always use macros to include FreeType header files."
#error "Example:"
#error "  #include <ft2build.h>"
#error "  #include FT_FREETYPE_H"
#endif

from that file, no harm is done, but the errors go away.

This would require a patch only to the xorg package and the future freetype2 packages, but we could leave the other packages alone (at least until real incompatibilities with later freetype versions show up).



Thanks for the explanation Martin. Let me know if I can do any testing to see if (one of) your suggestion(s) works.

- Koen.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to