Re: libpangoxft doesnt exist

urgrue <[email protected]> Thu, 31 Oct 2002 10:34:01 +0200
Newsgroups gmane.linux.gentoo.newbies
Message-ID <[email protected]>
ok i think the problem is with xft. which i had to manually unmask, and=20
emerge, in order for pango to even try creating libpangoxft.
why is x11-libs/xft masked? is there some more stable alternative? if=20
so, what is it?

without xft, my /usr/lib/libpango* is like this:
/usr/lib/libpango-1.0.la  /usr/lib/libpango-1.0.so ->=20
libpango-1.0.so.0.0.5
/usr/lib/libpango-1.0.so.0 -> libpango-1.0.so.0.0.5
/usr/lib/libpango-1.0.so.0.0.5  /usr/lib/libpangoft2-1.0.la =20
/usr/lib/libpangoft2-1.0.so -> libpangoft2-1.0.so.0.0.5
/usr/lib/libpangoft2-1.0.so.0 -> libpangoft2-1.0.so.0.0.5
/usr/lib/libpangoft2-1.0.so.0.0.5  /usr/lib/libpangox-1.0.la =20
/usr/lib/libpangox-1.0.so -> libpangox-1.0.so.0.0.5
/usr/lib/libpangox-1.0.so.0 -> libpangox-1.0.so.0.0.5
/usr/lib/libpangox-1.0.so.0.0.5 =20
and from building pango:
checking for freetype-config... /usr/bin/freetype-config
checking for FT_New_Face in -lfreetype... yes
checking For sufficiently new FreeType (at least 2.0.1)... yes
checking freetype/internal/tterrors.h usability... no
checking freetype/internal/tterrors.h presence... no
checking for freetype/internal/tterrors.h... no
checking for FT_Get_First_Char... yes
checking for XRenderFindFormat in -lXrender... yes
checking for XftFontOpen in -lXft... yes
checking X11/Xft/XftFreetype.h usability... no
checking X11/Xft/XftFreetype.h presence... no
checking for X11/Xft/XftFreetype.h... no

but if i emerge xft and then pango, here's what it looks like:
checking for freetype-config... /usr/bin/freetype-config
checking for FT_New_Face in -lfreetype... yes
checking For sufficiently new FreeType (at least 2.0.1)... yes
checking freetype/internal/tterrors.h usability... no
checking freetype/internal/tterrors.h presence... no
checking for freetype/internal/tterrors.h... no
checking for FT_Get_First_Char... yes
checking for XRenderFindFormat in -lXrender... yes
checking for XftFontOpen in -lXft... yes
checking X11/Xft/XftFreetype.h usability... no
checking X11/Xft/XftFreetype.h presence... yes
configure: WARNING: X11/Xft/XftFreetype.h: present but cannot be=20
compiled
configure: WARNING: X11/Xft/XftFreetype.h: check for missing=20
prerequisite headers?
configure: WARNING: X11/Xft/XftFreetype.h: proceeding with the=20
preprocessor's result
checking for X11/Xft/XftFreetype.h... yes

and then it compiling happily until it runs into said XftFreetype.h:
/bin/sh ../libtool --mode=3Dcompile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H=
=20
-I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE=20
-DSYSCONFDIR=3D\"/etc\" -
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..=20
-DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=3D\"/etc\"=20
-DLIBDIR=3D\"/usr/lib\" -DMODULE_VERS
In file included from pangoxft-font.c:27:
/usr/X11R6/include/X11/Xft/XftFreetype.h:75: parse error before '*'=20
token
/usr/X11R6/include/X11/Xft/XftFreetype.h:76: warning: type defaults to=20
`int' in declaration of `XftFreeTypeOpen'
/usr/X11R6/include/X11/Xft/XftFreetype.h:76: warning: data definition=20
has no type or storage class
/usr/X11R6/include/X11/Xft/XftFreetype.h:79: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:81: parse error before '*'=20
token
/usr/X11R6/include/X11/Xft/XftFreetype.h:82: warning: type defaults to=20
`int' in declaration of `XftFreeTypeGet'
/usr/X11R6/include/X11/Xft/XftFreetype.h:82: warning: data definition=20
has no type or storage class
/usr/X11R6/include/X11/Xft/XftFreetype.h:90: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:96: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:103: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:110: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:117: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:124: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:131: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:138: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:145: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:152: parse error before=20
"XftFontStruct"
/usr/X11R6/include/X11/Xft/XftFreetype.h:159: parse error before=20
"XftFontStruct"
pangoxft-font.c: In function `pango_xft_real_render':
pangoxft-font.c:317: structure has no member named `u'
pangoxft-font.c:330: structure has no member named `u'
pangoxft-font.c: In function `load_fallback_font':
pangoxft-font.c:717: structure has no member named `u'
pangoxft-font.c: In function `pango_xft_font_get_font':
pangoxft-font.c:766: structure has no member named `u'
pangoxft-font.c: In function `pango_xft_font_get_face':
pangoxft-font.c:842: structure has no member named `core'
pangoxft-font.c:845: structure has no member named `u'
make[3]: *** [pangoxft-font.lo] Error 1
make[3]: Leaving directory=20
`/var/tmp/portage/pango-1.0.5/work/pango-1.0.5/pango'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory=20
`/var/tmp/portage/pango-1.0.5/work/pango-1.0.5/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory=20
`/var/tmp/portage/pango-1.0.5/work/pango-1.0.5'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -142, Exitcode 2
!!! serial make failed








> Odd, because at least the following ebuilds all have dependencies on
> pango:
>=20
>    gnome-core/gnome
>    gnome-core/libgnomecanvas
>    gnome-core/libgnomeprint
>    gnome-core/gail
>    gnome-core/libsrvg
>=20
> The only USE variable employed by the pango ebuild is "doc". Can you
> actually check which libs, if any, you have installed:
>=20
>    ls -l /usr/lib/libpangoxft*
>=20
> Assuming you have pango-1.0.5 emerged then the actual lib file should
> be:
>=20
>    libpangoxft-1.0.so.0.0.5
>=20
> Hopefully, that is present, in which case perhaps you are missing the
> necessary symlink which could be fixed with:
>=20
>    cd /usr/lib
>    ln -s libpangoxft-1.0.so.0.0.5 libpango-1.0.so.0
>=20
> --kerframil
> _______________________________________________
> gentoo-newbies mailing list
> [email protected]
> http://lists.gentoo.org/mailman/listinfo/gentoo-newbies
>=20