Re: Trouble compiling pangopdf-1.2.3.6-1.src.rpm

Tony Graham <[email protected]> Tue, 08 Jun 2004 16:23:57 +0100
Newsgroups gmane.text.xml.xmlroff.pangopdf
Message-ID <[email protected]>
Tim,

Please subscribe to the pangopdf-list list if you have further commen=
ts or questions about PangoPDF.

Please forgive the lousy formatting of this message, but I'm email-im=
paired at present and all that works for me is a very poor web interf=
ace.

1. Solutions to the tg127171/staff problem would be welcome.

2. The numerous warnings seem to be a feature of recent GCC versions.

3. Checking the Freetype CVS with viewCVS, it appears  that ftmodule.=
h was removed eight months ago.  At this point, the only workaround I=
 can suggest is to install Freetype 2.1.4 in /usr/local.

While I do wish I had the time to update PangoPDF to match the latest=
 Pango, that would be a very short-term solution since Owen Taylor of=
 Pango has just submitted a patch to GNOME Print that ties the two of=
 them together better than previously.  When that patch is incorporat=
ed is when PangoPDF will really need to be updated.  It may even mean=
 that PangoPDF becomes superfluous for using xmlroff with GNOME Print=
.

Regards,


Tony Graham
---------------------------------------------------------------------=
---
Web Products, Technologies and Standards           Phone: +353 1 8199=
708
Sun Microsystems                                              x(70)19=
708
East Point Business Park, Dublin 3, Ireland

----- Original Message -----
=46rom: [email protected] (Tim Landscheidt)
Date: Sunday, June 6, 2004 4:58 pm
Subject: [PangoPDF] Trouble compiling pangopdf-1.2.3.6-1.src.rpm

> Hi,
>=20
> struggling with FOP and gij at the moment, I wanted to try
> xmlroff. So I started with PangoPDF (on a more or less Fedo-
> ra Core 2 system).
>=20
>  First of all, a small RFE: If your account name is not
> "tg127171" and there is no "staff" group, you receive two
> warnings when installing the SRPM :-).
>=20
>  I then tried to build the binary RPM with "rpmbuild -bb"
> (the complete build log is attached if the mailing list al-
> lows that). During compilation, there are lots of warnings
> =E0 la:
>=20
> | ftxgsub.c: In function `TT_GSUB_Query_Features':
> | ftxgsub.c:4165: warning: dereferencing type-punned pointer will=
=20
> break strict-aliasing rules
> | ftxgsub.c:4172: warning: dereferencing type-punned pointer will=
=20
> break strict-aliasing rules
>=20
> But the "show stopper" error is:
>=20
> | [...]
> | make[3]: Entering directory `/home/tim/RPMS/BUILD/pangopdf-
> 1.2.3.6/pango/opentype'| [...]
> |  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DPANGO_ENABLE_ENGINE -
> DSYSCONFDIR=3D\"/etc\" -DLIBDIR=3D\"/usr/lib\" -DG_DISABLE_DEPRECAT=
ED -
> DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -
> I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -
> I/usr/X11R6/include -I../.. -g -O2 -Wall -c pango-ot-info.c -MT=
=20
> pango-ot-info.lo -MD -MP -MF .deps/pango-ot-info.TPlo  -fPIC -DPIC =
-
> o .libs/pango-ot-info.o
> | In file included from pango-ot-private.h:25,
> |                  from pango-ot-info.c:22:
> | /usr/include/freetype2/freetype/freetype.h:20:2: #error=20
> "`ft2build.h' hasn't been included yet!"
> | /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please=
=20
> always use macros to include FreeType header files."
> | /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:=
"
> | /usr/include/freetype2/freetype/freetype.h:23:2: #error " =20
> #include <ft2build.h>"
> | /usr/include/freetype2/freetype/freetype.h:24:2: #error " =20
> #include FT_FREETYPE_H"
> | pango-ot-info.c:25:31: freetype/ftmodule.h: No such file or=20
> directory
> On this system, freetype{,-devel}-2.1.7-4 is installed. Any
> ideas on:
>=20
> - whether this error is PangoPDF's or FreeType's
> - and how to circumvent it?
>=20
> Thanks,
> Tim
>



-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org