Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1587 closed defect (duplicate)

pango build fails

Reported by: jkerr@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
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 (1)

comment:1 Changed 20 years ago by blb@…

Resolution: duplicate
Status: newclosed

* This bug has been marked as a duplicate of 1586 *

Note: See TracTickets for help on using tickets.