Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111942 - x11-libs/vte-0.11.15-r1 does not include freetype headers (modular X)
Summary: x11-libs/vte-0.11.15-r1 does not include freetype headers (modular X)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-09 00:41 UTC by Christopher Sachs
Modified: 2006-01-24 22:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Sachs 2005-11-09 00:41:07 UTC
x11-libs/vte-0.11.15-r1 fails to build against modular X. The problem appears
to be that automake does not include the path to the freetype headers
(-I/usr/include/freetype2). I am guessing that under the monolithic X tree,
the freetype include dir is brought in by the X CFLAGS, but not for modular X.
I was able to fix the issue by patching src/Makefile.am to directly include
-I/usr/include/freetype2, but this is not a proper fix and I don't know the
correct autotools way to do this. 

Here is what I changed:


--- /var/tmp/portage/vte-0.11.15-r1/work/vte-0.11.15/src/Makefile.am   
2005-07-08 00:41:42.000000000 -0700
+++ /root/vte-0.11.15/src/Makefile.am   2005-11-09 00:29:10.000000000 -0800
@@ -20,7 +20,7 @@
        unitable.JIS0212 \
        unitable.KSX1001

-AM_CFLAGS = @VTE_CFLAGS@ @CFLAGS@ @X_CFLAGS@
+AM_CFLAGS = @VTE_CFLAGS@ @CFLAGS@ @X_CFLAGS@ -I/usr/include/freetype2
 AM_LDFLAGS = @LDFLAGS@

 EXTRA_libvte_la_SOURCES = keysyms.c


And here is the original build error:


 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -march=c3
-Os -pipe -march=c3 -Os -pipe -MT vteft2.lo -MD -MP -MF .deps/vteft2.Tpo -c
vteft2.c  -fPIC -DPIC -o .libs/vteft2.o
In file included from vteglyph.h:30,
                 from vteft2.c:32:
/usr/include/ft2build.h:56:38: freetype/config/ftheader.h: No such file or directory
In file included from vteft2.c:32:
vteglyph.h:31:10: #include expects "FILENAME" or <FILENAME>
In file included from vteft2.c:32:
vteglyph.h:64: error: parse error before "FT_Library"
vteglyph.h:64: warning: no semicolon at end of struct or union
vteft2.c: In function `_vte_ft2_get_text_width':
vteft2.c:237: error: dereferencing pointer to incomplete type
vteft2.c: In function `_vte_ft2_get_text_height':
vteft2.c:245: error: dereferencing pointer to incomplete type
vteft2.c: In function `_vte_ft2_get_text_ascent':
vteft2.c:253: error: dereferencing pointer to incomplete type
vteft2.c: In function `_vte_ft2_draw_text':
vteft2.c:295: error: dereferencing pointer to incomplete type
vteft2.c:296: error: dereferencing pointer to incomplete type


Reproducible: Always
Steps to Reproduce:




Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.12-8-686 i686)
=================================================================
System uname: 2.6.12-8-686 i686 AMD Athlon(tm) 64 Processor 3800+
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=c3 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=c3 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X a52 aac alsa apm audiofile avi berkdb bitmap-fonts bzip2 cle266 crypt
cups dri dts dvd eds emboss encode esd exif expat fam ffmpeg firefox flac
foomaticdb gdbm gif glut gnome gnutls gpm gstreamer gtk gtk2 hal imlib ipv6 jpeg
kde libg++ libwww mad mikmod mmx mng mono mp3 mpeg ncurses nls nptl ogg
oggvorbis opengl oss pam pcre pdflib perl png python quicktime readline real sdl
speex spell sse ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts
udev usb vcd vorbis win32codecs xine xml2 xv xvid xvmc zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-11-09 10:35:24 UTC
It emerged fine on both of my modular X installs (one with the xorg-x11 meta,
one without).
Comment 2 Christopher Sachs 2005-11-12 20:29:52 UTC
Ok, for some reason pango did not install pangoxft.pc, and causied the freetype
headers to not be included. After an emerge -e world--and after upgrading to
the new X snapshot--pangoxft.pc was installed and now vte compiles as it should.
Sorry for the fluke bug. You can mark this as resolved.
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-11-13 05:46:50 UTC
reporter resolved issue