Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137850 - x11-base/xorg-x11-6.8.2-r8 build fails for ftfuncs.o using FT_INTERNAL includes
Summary: x11-base/xorg-x11-6.8.2-r8 build fails for ftfuncs.o using FT_INTERNAL includes
Status: RESOLVED DUPLICATE of bug 137759
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-24 08:43 UTC by Martin von Gagern
Modified: 2006-06-26 19:53 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 Martin von Gagern 2006-06-24 08:43:58 UTC
I just experienced problems building xorg-x11. Strange thing is, I have -r7 installed, and I see no relevant changes to -r8. Anyway, here is the error message:

i686-pc-linux-gnu-gcc -c -ansi -pedantic -Wno-return-type -w -I/usr/include/freetype2 -I/usr/include/freetype2/config -I. -I../../../include/fonts -I../includ -I../../../exports/include/X11 -I../../../programs/Xserver/include -I../../../exports/include -I../../.. -I../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((2) * 1000) + 0)" -DXFREE86_FT2 -O2 -march=pentium4 -fomit-frame-pointer -pipe -fno-strict-aliasing ftfuncs.c -o unshared/ftfuncs.o
ftfuncs.c:54:10: #include expects "FILENAME" or <FILENAME>
ftfuncs.c:56:10: #include expects "FILENAME" or <FILENAME>
ftfuncs.c:57:10: #include expects "FILENAME" or <FILENAME>
ftfuncs.c: In function `FreeTypeOpenInstance':
ftfuncs.c:464: error: `TT_Face' undeclared (first use in this function)
ftfuncs.c:464: error: (Each undeclared identifier is reported only once
ftfuncs.c:464: error: for each function it appears in.)
ftfuncs.c:464: error: syntax error before "tt_face"
ftfuncs.c:468: error: `SFNT_Service' undeclared (first use in this function)
ftfuncs.c:468: error: syntax error before "sfnt"
ftfuncs.c:469: error: `tt_face' undeclared (first use in this function)
ftfuncs.c:469: error: syntax error before "face"
ftfuncs.c:483: error: `sfnt' undeclared (first use in this function)
ftfuncs.c:483: error: syntax error before "tt_face"
ftfuncs.c: In function `tt_get_metrics':
ftfuncs.c:812: error: `TT_LongMetrics' undeclared (first use in this function)
ftfuncs.c:812: error: syntax error before "longs_m"
ftfuncs.c:821: error: `longs_m' undeclared (first use in this function)
ftfuncs.c:821: error: syntax error before "header"
ftfuncs.c:826: error: `TT_ShortMetrics' undeclared (first use in this function)
ftfuncs.c:826: error: syntax error before ')' token
ftfuncs.c:827: error: syntax error before "header"
ftfuncs.c: In function `ft_get_very_lazy_bbox':
ftfuncs.c:842: error: `TT_Face' undeclared (first use in this function)
ftfuncs.c:842: error: syntax error before "ttface"
ftfuncs.c:849: error: `ttface' undeclared (first use in this function)
ftfuncs.c: In function `FT_Do_SBit_Metrics':
ftfuncs.c:911: error: `SFNT_Service' undeclared (first use in this function)
ftfuncs.c:911: error: syntax error before "sfnt"
ftfuncs.c:912: error: `TT_Face' undeclared (first use in this function)
ftfuncs.c:915: error: `TT_SBit_Strike' undeclared (first use in this function)
ftfuncs.c:915: error: syntax error before "strike"
ftfuncs.c:916: error: `TT_SBit_Range' undeclared (first use in this function)
ftfuncs.c:917: error: `TT_SBit_MetricsRec' undeclared (first use in this function) 
ftfuncs.c:928: error: `face' undeclared (first use in this function)
ftfuncs.c:928: error: syntax error before "ft_face"
ftfuncs.c:929: error: `sfnt' undeclared (first use in this function)
ftfuncs.c:929: error: syntax error before "face"
ftfuncs.c:934: error: `range' undeclared (first use in this function)
ftfuncs.c:934: error: `strike' undeclared (first use in this function)
ftfuncs.c:957: error: `elem_metrics' undeclared (first use in this function)
make[5]: *** [ftfuncs.o] Error 1
make[5]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r8/work/xc/lib/font/FreeType' 
make[4]: *** [FreeType] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r8/work/xc/lib/font'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r8/work/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r8/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r8/work/xc'
make: *** [World] Error 2
 
!!! ERROR: x11-base/xorg-x11-6.8.2-r8 failed.
Call stack: 
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  xorg-x11-6.8.2-r8.ebuild, line 158:   Called build
  xorg-x11-6.8.2-r8.ebuild, line 974:   Called die
                     
!!! make World failed
!!! If you need support, post the topmost build error, and the call stack if relevant.               

The lines mentioned are these:
     54 #include FT_INTERNAL_TRUETYPE_TYPES_H
     56 #include FT_INTERNAL_SFNT_H
     57 #include FT_INTERNAL_STREAM_H
There are several more like this before, which seem to work OK.
To me it looks strange that Xorg should use anything named INTERNAL. Those three are the only such includes containing INTERNAL in their name. Maybe something else changed so that they are no longer available except really internally to freetype. On the other hand, they all three are defined in xc/extras/freetype2/include/freetype/internal/internal.h but this file seems not to be included.
Comment 1 Martin von Gagern 2006-06-24 08:44:47 UTC
Here some additional information about my build environment.

[ebuild   R   ] media-libs/freetype-2.2.1  USE="zlib -bindist -doc" 0 kB 
[ebuild     U ] x11-base/xorg-x11-6.8.2-r8 [6.8.2-r7] USE="bitmap-fonts dlloader ipv6 mmx nls opengl pam sse truetype-fonts type1-fonts xv -3dfx -3dnow -cjk -debug -dmx -doc -font-server -insecure-drivers -minimal -nocxx -sdk -static -xprint" 0 kB 

Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/boot/grub /etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.intouch.nl/gentoo/ http://gentoo.intergenia.de http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="de_DE"
LC_ALL="C"
LINGUAS="en de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/java-migration /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts bzip2 cli crypt cups curl dlloader dri dts dvd dvdr eds emboss encode esd exif ffmpeg foomaticdb fortran gd gdbm gif gnutls gphoto2 gpm gstreamer gtk gtk2 hal idn imagemagick imap imlib innodb ipv6 isdnlog java jpeg kde lcms leim libg++ libwww lirc mad maildir mailwrapper mikmod mmx motif mp3 mpeg mule ncurses nls nptl nsplugin nvidia ogg opengl oss pam pcmcia pcre pdf pdflib perl pic png pnp pppd python qt quicktime readline reflection samba sasl scanner sdl session speex spell spl sse ssl tcpd tetex tiff truetype truetype-fonts trusted type1-fonts udev unicode usb vorbis wavelan win32codecs wmf xml xmms xorg xv xvid zlib elibc_glibc fritzcapi_cards_fcusb2 kernel_linux linguas_en linguas_de userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-24 12:37:16 UTC
Yep, you cannot build xorg against freetype 2.2. This is a known bug, although I can't find it at the moment.
Comment 3 Martin von Gagern 2006-06-24 13:57:24 UTC
OK, I just realized I had freetype manually unmasked.
Can't remember why, though.
I'm downgrading for the time being, thanks so far.
Comment 4 Fabio Rossi 2006-06-26 14:00:44 UTC
The original bug for freetype 2.2: http://bugs.gentoo.org/show_bug.cgi?id=137759
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2006-06-26 19:53:54 UTC
Thanks, Fabio.

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