dvi2ps: FTBFS: ./freetype.h:1:22: error: #include nested too deeply

Bug #1277220 reported by Andreas Moog
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dvi2ps (Debian)
Fix Released
Unknown
dvi2ps (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/733394:

Source: dvi2ps
Version: 5.1j-1
Severity: serious
Tags: jessie sid
User: <email address hidden>
Usertags: qa-ftbfs-20131226 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -I/usr/include/freetype2 -g -O2 -MT ttfont.o -MD -MP -MF .deps/ttfont.Tpo -c -o ttfont.o ttfont.c
> In file included from ./freetype.h:2:0,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from ./freetype.h:2,
> from freetype.h:2,
> from ttfont.c:15:
> ./freetype.h:1:22: error: #include nested too deeply
> #include <ft2build.h>
> ^
> ./freetype.h:2:23: error: #include nested too deeply
> #include FT_FREETYPE_H
> ^
> ttfont.c:28:1: error: unknown type name 'FT_Library'
> static FT_Library library;
> ^
> ttfont.c:29:1: error: unknown type name 'FT_Face'
> static FT_Face face;
> ^
> ttfont.c:30:1: error: unknown type name 'FT_Matrix'
> static FT_Matrix oscale = {(1<<16)/64, 0, 0, (1<<16)/64};
> ^
> ttfont.c:30:1: warning: excess elements in scalar initializer [enabled by default]
> ttfont.c:30:1: warning: (near initialization for 'oscale') [enabled by default]
> ttfont.c:30:1: warning: excess elements in scalar initializer [enabled by default]
> ttfont.c:30:1: warning: (near initialization for 'oscale') [enabled by default]
> ttfont.c:30:1: warning: excess elements in scalar initializer [enabled by default]
> ttfont.c:30:1: warning: (near initialization for 'oscale') [enabled by default]
> ttfont.c: In function 'ft_char':
> ttfont.c:71:32: error: 'FT_LOAD_TARGET_MONO' undeclared (first use in this function)
> if (FT_Load_Glyph(face, i, FT_LOAD_TARGET_MONO))
> ^
> ttfont.c:71:32: note: each undeclared identifier is reported only once for each function it appears in
> ttfont.c:77:29: error: invalid type argument of '->' (have 'int')
> if (FT_Render_Glyph(face->glyph, FT_RENDER_MODE_MONO))
> ^
> ttfont.c:77:38: error: 'FT_RENDER_MODE_MONO' undeclared (first use in this function)
> if (FT_Render_Glyph(face->glyph, FT_RENDER_MODE_MONO))
> ^
> ttfont.c: In function 'fto_char':
> ttfont.c:98:32: error: 'FT_LOAD_NO_BITMAP' undeclared (first use in this function)
> if (FT_Load_Glyph(face, c, FT_LOAD_NO_BITMAP|FT_LOAD_NO_HINTING))
> ^
> ttfont.c:98:50: error: 'FT_LOAD_NO_HINTING' undeclared (first use in this function)
> if (FT_Load_Glyph(face, c, FT_LOAD_NO_BITMAP|FT_LOAD_NO_HINTING))
> ^
> ttfont.c:101:32: error: invalid type argument of '->' (have 'int')
> FT_Outline_Transform(&(face->glyph->outline), &oscale);
> ^
> ttfont.c: In function 'read_ft_fontinfo':
> ttfont.c:266:5: error: unknown type name 'FT_CharMap'
> FT_CharMap charmap;
> ^
> ttfont.c:267:5: error: unknown type name 'FT_UShort'
> FT_UShort pid, eid;
> ^
> ttfont.c:309:19: error: invalid type argument of '->' (have 'int')
> cmcount = face->num_charmaps;
> ^
> ttfont.c:311:16: error: invalid type argument of '->' (have 'int')
> charmap = face->charmaps[cmid];
> ^
> ttfont.c:312:15: error: invalid type argument of '->' (have 'int')
> pid = charmap->platform_id;
> ^
> ttfont.c:313:15: error: invalid type argument of '->' (have 'int')
> eid = charmap->encoding_id;
> ^
> ttfont.c:354:19: error: invalid type argument of '->' (have 'int')
> npixel = face->glyph->bitmap.buffer;
> ^
> ttfont.c:355:19: error: invalid type argument of '->' (have 'int')
> nwidth = face->glyph->bitmap.pitch*8;
> ^
> ttfont.c:356:20: error: invalid type argument of '->' (have 'int')
> nheight = face->glyph->bitmap.rows;
> ^
> ttfont.c:357:19: error: invalid type argument of '->' (have 'int')
> nxoff = -face->glyph->bitmap_left;
> ^
> ttfont.c:358:29: error: invalid type argument of '->' (have 'int')
> ndepth = nheight - face->glyph->bitmap_top;
> ^
> ttfont.c:367:37: error: invalid type argument of '->' (have 'int')
> tfmw = dev_fto_begfontdict(fe, face->family_name,
> ^
> ttfont.c:373:43: error: invalid type argument of '->' (have 'int')
> dev_fto_initfontdict(remap[i], &(face->glyph->outline),
> ^
> ttfont.c: In function 'read_jft_finfo':
> ttfont.c:410:5: error: unknown type name 'FT_CharMap'
> FT_CharMap charmap;
> ^
> ttfont.c:411:5: error: unknown type name 'FT_UShort'
> FT_UShort pid, eid;
> ^
> ttfont.c:446:19: error: invalid type argument of '->' (have 'int')
> cmcount = face->num_charmaps;
> ^
> ttfont.c:448:16: error: invalid type argument of '->' (have 'int')
> charmap = face->charmaps[cmid];
> ^
> ttfont.c:449:15: error: invalid type argument of '->' (have 'int')
> pid = charmap->platform_id;
> ^
> ttfont.c:450:15: error: invalid type argument of '->' (have 'int')
> eid = charmap->encoding_id;
> ^
> ttfont.c:496:19: error: invalid type argument of '->' (have 'int')
> npixel = face->glyph->bitmap.buffer;
> ^
> ttfont.c:497:19: error: invalid type argument of '->' (have 'int')
> nwidth = face->glyph->bitmap.pitch*8;
> ^
> ttfont.c:498:20: error: invalid type argument of '->' (have 'int')
> nheight = face->glyph->bitmap.rows;
> ^
> ttfont.c:499:19: error: invalid type argument of '->' (have 'int')
> nxoff = -face->glyph->bitmap_left;
> ^
> ttfont.c:500:29: error: invalid type argument of '->' (have 'int')
> ndepth = nheight - face->glyph->bitmap_top;
> ^
> ttfont.c:510:34: error: invalid type argument of '->' (have 'int')
> dev_jfto_begfontdict(dname, face->family_name);
> ^
> ttfont.c:518:13: error: invalid type argument of '->' (have 'int')
> &(face->glyph->outline), 1000);
> ^
> make[2]: *** [ttfont.o] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2013/12/26/dvi2ps_5.1j-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Tags: ftbfs trusty

Related branches

Andreas Moog (ampelbein)
Changed in dvi2ps (Ubuntu):
importance: Undecided → High
tags: added: ftbfs trusty
Changed in dvi2ps (Debian):
importance: Undecided → Unknown
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dvi2ps - 5.1j-1ubuntu1

---------------
dvi2ps (5.1j-1ubuntu1) trusty; urgency=medium

  * New 09_freetype_header.patch: fix FTBFS (LP: #1277220)
 -- Leo Iannacone <email address hidden> Thu, 27 Feb 2014 00:26:36 +0100

Changed in dvi2ps (Ubuntu):
status: New → Fix Released
Changed in dvi2ps (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.