the font.c of p5-Imager fails to compile without ft2build.h inclusion. It does after patch of the include presence. === ===> Building for p5-Imager-0.67_1 cc -c -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/freetype2/freetype -I/usr/local/include/freetype1/freetype -O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe -DVERSION=\"0.67\" -DXS_VERSION=\"0.67\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE" -DOS_freebsd -I/usr/local/include -O2 -fno-strict-aliasing -pipe font.c In file included from font.c:772: /usr/local/include/freetype2/freetype/freetype.h:20:2: error: #error "`ft2build.h' hasn't been included yet!" /usr/local/include/freetype2/freetype/freetype.h:21:2: error: #error "Please always use macros to include FreeType header files." /usr/local/include/freetype2/freetype/freetype.h:22:2: error: #error "Example:" /usr/local/include/freetype2/freetype/freetype.h:23:2: error: #error " #include <ft2build.h>" /usr/local/include/freetype2/freetype/freetype.h:24:2: error: #error " #include FT_FREETYPE_H" *** Error code 1 === Fix: #include <ft2build.h> at the line 20 of font.h But unsure if it's right thing to do. How-To-Repeat: cd /usr/ports/graphics/p5-Imager make
God love is hard to find. You got lucky FreeBSD-gnats-submit! 2009/01/12 13:20:04 +0000 FreeBSD-gnats-submit@FreeBSD.org => To Peter Vereshagin : sorry, not line 20, but font.c:772 . 73! Peter -- http://vereshagin.org
Responsible Changed From-To: freebsd-ports-bugs->lbr Over to maintainer.
This is a conflict between the freetype 1.x and freetype 2.x headers, and can be reproduced by installing freetype 1.3 port (print/freetype) before attempting to build graphics/p5-Imager. Imager can be built with both sets of headers, but the p5-Imager ports Makefile incorrectly sets IM_INCPATH to point at the freetype 2.x freetype.h directory, causing the conflict. If you remove IM_INCPATH from the Makefile p5-Imager will build correctly. Tony upstream Imager maintainer
lbr 2009-01-31 13:56:14 UTC FreeBSD ports repository Modified files: graphics/p5-Imager Makefile Log: Fix freetype1 compilation issue. Tony Cook (Imager author) wrote regarding the PR: This is a conflict between the freetype 1.x and freetype 2.x headers, and can be reproduced by installing freetype 1.3 port (print/freetype) before attempting to build graphics/p5-Imager. Imager can be built with both sets of headers, but the p5-Imager ports Makefile incorrectly sets IM_INCPATH to point at the freetype 2.x freetype.h directory, causing the conflict. If you remove IM_INCPATH from the Makefile p5-Imager will build correctly. No revision-bump needed - it either installed fine or not at all before. PR: 130420 Submitted by: Peter Vereshagin <peter@vereshagin.org> Revision Changes Path 1.38 +1 -2 ports/graphics/p5-Imager/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Thank you, it's been resolved after feedback from upstream.