#1586 closed defect (fixed)
pango build fails
Reported by: | jkerr@… | Owned by: | mij@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | rekoil@… | |
Port: |
Description
Similar to problems with building Xft2 and fontconfig -- the build fails when importing headers from freetype.
I don't know if the fix requires a brute-force replace of
#include <freetype/freetype.h>
with
#include <ft2build.h> #include FT_FREETYPE_H
in every file that uses the include, or if there's a better way.
---> Fetching pango ---> pango-1.2.5.tar.bz2 doesn't seem to exist in /opt/local/var/db/dports/distfiles/pango ---> Attempting to fetch pango-1.2.5.tar.bz2 from ftp://ftp.gtk.org/pub/gtk/v2.2/ ---> Verifying checksum for pango ---> Extracting pango ---> Extracting pango-1.2.5.tar.bz2 ---> Applying /Users/jason/Development/darwinports/dports/x11/pango/files/patch-Makefile.in ---> Applying /Users/jason/Development/darwinports/dports/x11/pango/files/patch-ltmain.sh ---> Applying /Users/jason/Development/darwinports/dports/x11/pango/files/patch-modules-Makefile.in ---> Applying /Users/jason/Development/darwinports/dports/x11/pango/files/patch-pango-Makefile.in ---> Applying /Users/jason/Development/darwinports/dports/x11/pango/files/patch-pango-opentype-pango-ot-info.c ---> Configuring pango ---> Building pango with target all (...)
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPANGO_ENABLE_ENGINE
-DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11R6/include -I../.. -no-cpp-precomp -g -O2 -Wall -c pango-ot-info.c -fno-common -DPIC -o .libs/pango-ot-info.o In file included from pango-ot-private.h:25,
from pango-ot-info.c:22:
/opt/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /opt/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /opt/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /opt/local/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /opt/local/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" pango-ot-info.c:25:31: freetype/ftmodule.h: No such file or directory pango-ot-info.c: In function `synthesize_class_def': pango-ot-info.c:203: warning: `charcode' might be used uninitialized in this function make[3]: * [pango-ot-info.lo] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive-am] Error 2 Error: Target com.apple.build returned: shell command "cd "/Users/jason/Development/darwinports/dports/x11/pango/work/pango-1.2.5" && make all" returned error 2 (...)
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPANGO_ENABLE_ENGINE
-DSYSCONFDIR=\"/opt/local/etc\" -DLIBDIR=\"/opt/local/lib\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/usr/X11R6/include -I../.. -no-cpp-precomp -g -O2 -Wall -c pango-ot-info.c -fno-common -DPIC -o .libs/pango-ot-info.o In file included from pango-ot-private.h:25,
from pango-ot-info.c:22:
/opt/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!" /opt/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files." /opt/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:" /opt/local/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>" /opt/local/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H" pango-ot-info.c:25:31: freetype/ftmodule.h: No such file or directory pango-ot-info.c: In function `synthesize_class_def': pango-ot-info.c:203: warning: `charcode' might be used uninitialized in this function make[3]: * [pango-ot-info.lo] Error 1 make[2]: * [all-recursive] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive-am] Error 2
Warning: the following items did not execute (for pango): com.apple.install com.apple.build com.apple.destroot
Change History (5)
comment:1 Changed 21 years ago by toby@…
Owner: | changed from darwinports-bugs@… to mij@… |
---|
comment:3 Changed 21 years ago by toby@…
Cc: | rekoil@… added |
---|
comment:5 Changed 21 years ago by toby@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patches have committed that fix this.
mij, can you take a look at this? Basically just need to patch the files that directly include freetype/ freetype.h
This is fixed in pango 1.3.5; pango 1.4.0 (along with new glib2 and gtk2) is scheduled for release on 08 March.