Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#2832 closed defect (wontfix)

BUG: gnome-print build fails with ft2build.h error

Reported by: cssdev@… Owned by: gnome-darwinports@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: lomion@…, olegb@…
Port:

Description

There's a problem building gnome-print with freetype2 installed. This issue looks like it came up on the gnome-darwinports list a year ago. The gnome-print sources do not properly include freetype2 headers: <http://www.opendarwin.org/pipermail/gnome-darwinports/2004-April/000009.html>

In file included from gnome-font-install.c:29: /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"

It appears that the fix involves patching gnome-print: <http://codex.sourcemage.org/stable/gnome1-libs/gnome-print/ftfix.patch>

While that approach works, it's not an ideal solution. A recent fink discussion reveals the same problem there: <http://sourceforge.net/mailarchive/forum.php?thread_id=6740634&forum_id=4714>

A search on Google yeilded an old NetBSD discussion recommending symbolic links. <http://mail-index.netbsd.org/netbsd-users/2002/08/09/0003.html>

I'm not a GNOME user--I'm just trying to setup a third-party piece of software that requires the GNOME libraries. Hopefully someone with more familiary with GNOME can provide a resolution for DarwinPorts. Is someone working on updated sources? It seems that the patch mentioned above might be a band-aid solution.

Change History (9)

comment:1 Changed 19 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to gnome-darwinports@…

Please, when creating bugs against existing ports, assign them to the corresponding maintainer(s). Thist information is available through "port info <portname>", just at the end of the output.

-jmpp

comment:2 Changed 19 years ago by yves@…

Cc: lomion@… olegb@… added

lesstif and xpdf do exactly the same

and the same also happens with freetype in /usr/X11R6 (xorg)

comment:3 Changed 19 years ago by snu@…

Summary: gnome-print build fails with ft2build.h errorBUG: gnome-print build fails with ft2build.h error

comment:4 Changed 19 years ago by ksahr@…

The webpage http://typo3.org/documentation/document-library/doc_macosxclient/FreeType-1/ gives a fix that worked for me. In /opt/local/include/freetype2/freetype/freetype.h comment out lines 19-25 so you have:

#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

comment:5 Changed 18 years ago by web@…

This bug is also present under 10.4.3. I fixed it here by adding:

#include <ft2build.h> #include FT_FREETYPE_H

before the include of freetype.h in each of these files:

gnome-print/libgnomeprint/gnome-font-private.h gnome-print/libgnomeprint/parseTT.h gnome-print/installer/gnome-font-install.c gnome-print/installer/gf-pfb.c gnome-print/installer/gf-ttf.c

comment:6 Changed 18 years ago by m.rick@…

I have the same bug :

aymeric$ sudo port install gnome-print ---> Building gnome-print with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gnome-print/work/gnome-print-0.36" && make all" returned error 2 Command output: make all-recursive Making all in intl make[2]: Nothing to be done for `all'. Making all in po make[2]: Nothing to be done for `all'. Making all in libgnomeprint /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl -I../intl -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/opt/local/lib/gnome-libs/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include/gdk-pixbuf-1.0 -I/opt/local/include/gnome-xml -DPROFILEDIR=\""/opt/local/share/gnome-print/profiles/"\" -DGNOMEPRINT_LIBDIR=\""/opt/local/lib"\" -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -DGNOMELOCALEDIR=\""/opt/local/share/locale"\" -DBINDIR=\""/opt/local/bin"\" -DDATADIR=\""/opt/local/share"\" -DFONTMAPDIR_STATIC=\""/opt/local/share/gnome/fonts"\" -DFONTMAPDIR_DYNAMIC=\""/opt/local/etc/gnome/fonts"\" -g -O2 -Wall -Wunused -c gnome-print-ps2.c rm -f .libs/gnome-print-ps2.lo gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl -I../intl -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/opt/local/lib/gnome-libs/include -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -I/opt/local/include/gdk-pixbuf-1.0 -I/opt/local/include/gnome-xml -DPROFILEDIR=\"/opt/local/share/gnome-print/profiles/\" -DGNOMEPRINT_LIBDIR=\"/opt/local/lib\" -I/opt/local/include/gtk-1.2 -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -I/usr/X11R6/include -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -DBINDIR=\"/opt/local/bin\" -DDATADIR=\"/opt/local/share\" -DFONTMAPDIR_STATIC=\"/opt/local/share/gnome/fonts\" -DFONTMAPDIR_DYNAMIC=\"/opt/local/etc/gnome/fonts\" -g -O2 -Wall -Wunused -c gnome-print-ps2.c -fno-common -DPIC -o .libs/gnome-print-ps2.lo In file included from ../libgnomeprint/gnome-font-private.h:25,

from gnome-print-ps2.c:51:

/opt/local/include/freetype2/freetype/freetype.h:20:2: error: #error "`ft2build.h' hasn't been included yet!" /opt/local/include/freetype2/freetype/freetype.h:21:2: error: #error "Please always use macros to include FreeType header files." /opt/local/include/freetype2/freetype/freetype.h:22:2: error: #error "Example:" /opt/local/include/freetype2/freetype/freetype.h:23:2: error: #error " #include <ft2build.h>" /opt/local/include/freetype2/freetype/freetype.h:24:2: error: #error " #include FT_FREETYPE_H" gnome-print-ps2.c: In function 'gnome_print_ps2_image': gnome-print-ps2.c:851: warning: pointer targets in passing argument 1 of 'gnome_print_encode_hex' differ in signedness gnome-print-ps2.c:851: warning: pointer targets in passing argument 2 of 'gnome_print_encode_hex' differ in signedness gnome-print-ps2.c:894: warning: pointer targets in passing argument 1 of 'gnome_print_encode_ascii85' differ in signedness gnome-print-ps2.c:894: warning: pointer targets in passing argument 2 of 'gnome_print_encode_ascii85' differ in signedness make[2]: * [gnome-print-ps2.lo] Error 1 make[1]: * [all-recursive] Error 1 make: * [all-recursive-am] Error 2

Error: /opt/local/bin/port: Status 1 encountered during processing. imac-g5-de-aymeric-gillaizeau:~ aymeric$

comment:7 Changed 18 years ago by rhwood@…

This port installs a package that has been abandoned by the upstream maintainer since sometime in

  1. DarwinPorts has no ports that list this port as a dependency, so I would not attempt to install it

unless you are building a package that you know requires it.

comment:8 Changed 18 years ago by jmpp@…

Resolution: wontfix
Status: newclosed

comment:9 Changed 18 years ago by jmpp@…

Bug closed and set to resolution requested by Randall, our Gnome maintainer.

-jmpp

Note: See TracTickets for help on using tickets.