Subject: pkg/19984: package fonts/Xft2-2.1nb2 won't compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <talmage@cmf.nrl.navy.mil>
List: netbsd-bugs
Date: 01/21/2003 11:10:05
>Number:         19984
>Category:       pkg
>Synopsis:       xftrender.c can't find XGlyphElt8
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 21 08:12:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     David W. Talmage
>Release:        NetBSD 1.6
>Organization:
/~\ The ASCII                     David W. Talmage
\ / Ribbon Campaign               talmage@acm.org
 X  Against HTML
/ \ Email!           Don't blame me.  I voted for Harry Potter.
>Environment:
System: NetBSD jefferson 1.6 NetBSD 1.6 (GENERIC_LAPTOP) #0: Sun Sep 8 19:55:58 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:

The compiler can't find the definition of XGlyphElt8.  That prevents
it from building xftrender.c

This is critical because gtk2 won't build without it.

=> Checksum OK for fcpackage.2_1.tar.gz.
===> Extracting for Xft2-2.1nb2
===> Required installed package freetype2>=2.1.3: freetype2-2.1.3 found
===> Required installed package fontconfig>=2.1nb1: fontconfig-2.1nb2 found
===> Required installed package expat>=1.95.2: expat-1.95.5 found
===> Required package Xrender>=0.7: NOT found
===> Verifying reinstall for ../../x11/Xrender
===> Xrender-0.7 is part of your X11 distribution
===> Returning to build of Xft2-2.1nb2
===> Required installed package gmake>=3.78: gmake-3.79.1 found
===> Required installed package x11-links>=0.12: x11-links-0.12 found
===> Patching for Xft2-2.1nb2
===> Applying pkgsrc patches for Xft2-2.1nb2
===> Buildlinking for Xft2-2.1nb2
===> Configuring for Xft2-2.1nb2
creating cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc -O2 -I/usr/pkg/include -I/usr/X11R6/include   -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2 -I/usr/pkg/include -I/usr/X11R6/include   -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether ln -s works... yes
checking how to run the C preprocessor... cc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for X11/extensions/Xrender.h... yes
checking for XRenderQueryVersion... yes
checking for freetype-config... freetype-config
checking for freetype/freetype.h... yes
checking for FT_Init_FreeType... yes
checking for fontconfig-config... fontconfig-config
checking for fontconfig/fontconfig.h... yes
checking for FcInit... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating xft.pc
creating xft-config
creating config.h
===> Building for Xft2-2.1nb2
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftcolor.c -o xftcolor.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftcore.c -o xftcore.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftdbg.c -o xftdbg.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftdpy.c -o xftdpy.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftdraw.c -o xftdraw.o
xftdraw.c: In function `XftDrawSrcPicture':
xftdraw.c:373: warning: passing arg 4 of `XRenderFillRectangle' discards qualifiers from pointer target type
xftdraw.c: In function `XftDrawRect':
xftdraw.c:811: warning: passing arg 4 of `XRenderFillRectangle' discards qualifiers from pointer target type
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftextent.c -o xftextent.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftfont.c -o xftfont.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftfreetype.c -o xftfreetype.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftglyphs.c -o xftglyphs.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftinit.c -o xftinit.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftlist.c -o xftlist.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftname.c -o xftname.o
cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -I. -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -fPIC -DPIC -c xftrender.c -o xftrender.o
xftrender.c: In function `XftGlyphSpecRender':
xftrender.c:170: `XGlyphElt8' undeclared (first use in this function)
xftrender.c:170: (Each undeclared identifier is reported only once
xftrender.c:170: for each function it appears in.)
xftrender.c:170: `elts' undeclared (first use in this function)
xftrender.c:171: parse error before `elts_local'
xftrender.c:186: `glyphs_loaded' undeclared (first use in this function)
xftrender.c:234: `nelt' undeclared (first use in this function)
xftrender.c:247: `x' undeclared (first use in this function)
xftrender.c:248: `y' undeclared (first use in this function)
xftrender.c:272: `elts_local' undeclared (first use in this function)
xftrender.c:335: `XGlyphElt16' undeclared (first use in this function)
xftrender.c:335: parse error before `)'
xftrender.c:340: `XGlyphElt32' undeclared (first use in this function)
xftrender.c:340: parse error before `)'
xftrender.c: In function `XftGlyphFontSpecRender':
xftrender.c:414: `XGlyphElt8' undeclared (first use in this function)
xftrender.c:414: `elts' undeclared (first use in this function)
xftrender.c:415: parse error before `elts_local'
xftrender.c:428: `glyphs_loaded' undeclared (first use in this function)
xftrender.c:480: `nelt' undeclared (first use in this function)
xftrender.c:499: `x' undeclared (first use in this function)
xftrender.c:500: `y' undeclared (first use in this function)
xftrender.c:528: `elts_local' undeclared (first use in this function)
xftrender.c:596: `XGlyphElt16' undeclared (first use in this function)
xftrender.c:596: parse error before `)'
xftrender.c:601: `XGlyphElt32' undeclared (first use in this function)
xftrender.c:601: parse error before `)'
gmake: *** [xftrender.o] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/fonts/Xft2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/fonts/Xft2

>How-To-Repeat:
	cd /usr/pkgsrc/fonts/Xft2
	make
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: