Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261934 - upgrade to xorg-server-1.5.3-r3 and freetype module gone
Summary: upgrade to xorg-server-1.5.3-r3 and freetype module gone
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-10 01:31 UTC by Yu Yuwei
Modified: 2009-05-04 12:34 UTC (History)
2 users (show)

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 Yu Yuwei 2009-03-10 01:31:07 UTC
/usr/lib/xorg/module/font directory missed and xserver complain 'Failed to load module "freetype" (module does not exsit, 0)'

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =xorg-server-1.5.3-r3
2. startx
3. grep "EE" /var/log/Xorg.0.log

Actual Results:  
grep "EE" /var/log/Xorg.0.log:

(EE) Failed to load module "freetype" (module does not exist, 0)

Expected Results:  
get rid of this error
Comment 1 Yu Yuwei 2009-03-10 01:48:44 UTC
xorg-server-1.5.3-r2 have /usr/lib/module/fonts/libfreetype.so 
Comment 2 Rafał Mużyło 2009-03-10 02:47:13 UTC
...and xorg-server-1.6.0 (not yes in the tree, but in overlays)
doesn't even have source files to built it - your point being ?

Does it not being the actually break anything ?
Comment 3 Yu Yuwei 2009-03-10 07:10:20 UTC
(In reply to comment #2)
> ...and xorg-server-1.6.0 (not yes in the tree, but in overlays)
> doesn't even have source files to built it - your point being ?
> 
> Does it not being the actually break anything ?
> 

I have no idea, even I remove the "freetype" from xorg.conf, X still trying to load it.

I don't notice anything strange, but I have downgraded to 1.5.3-r2
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-10 20:36:05 UTC
I cannot reproduce this on my ~amd64 machine:

zeromancer:~ # grep free /var/log/Xorg.0.log
(II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "freetype"
(II) Loading /usr/lib64/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
zeromancer:~ # qlist -CIve xorg-server
x11-base/xorg-server-1.5.3-r3
zeromancer:~ #

Please post your "emerge --info" as well as the output of
  emerge -qpv xorg-server

Reopen this bug when you provide the requested information.
Comment 5 Azamat H. Hackimov 2009-03-10 22:04:14 UTC
(In reply to comment #4)

There no /usr/lib64/xorg/modules/fonts/libfreetype.so

x11-base/xorg-server-1.5.3-r3 USE="hal ipv6 nptl sdl xorg" INPUT_DEVICES="evdev keyboard mouse" VIDEO_CARDS="nvidia"


Hm, last Cardona's patchset (for 1.5.3-r3) consist code which removes loadable font renderer. So, I guess, now xorg-server loads fonts via libXfont.

Maybe I wrong, better ask remi.
Comment 6 Yu Yuwei 2009-03-11 10:26:32 UTC
emerge --info :

Portage 2.2_rc24 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-i686-Intel-R-_Pentium-R-_M_processor_1.20GHz-with-glibc2.0
Timestamp of tree: Tue, 10 Mar 2009 12:00:14 +0000
app-shells/bash:     4.0_p10
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mfpmath=sse -mmmx -msse -msse2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -mfpmath=sse -mmmx -msse -msse2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp3.tsinghua.edu.cn/mirror/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG=""
LC_ALL=""
LDFLAGS="-Wl,--as-needed"
LINGUAS="zh_CN en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-china /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/sunrise /usr/local/acevery-portage"
SYNC="rsync://140.211.166.165/gentoo-portage"
USE="16Bit X a52 aac acl acpi aiglx alsa asf avahi bash-completion beagle berkdb branding browserplugin bzip2 bzr cairo caps cdr chm cjk cli cracklib crypt cups custom-cflags custom-cpuopts custom-optimization dbus djvu dmx dri dvd dvdnav dvdr dvdread emacs emboss evo fam fbcon fbcondecor fbsplash ffmpeg flac fontforge fortran fuse gdbm gif git glib gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk gtk2 gucharmap guile hal i8x0 iconv icu id3 ieee1394 imap ipv6 isdnlog jack java jpeg jpeg2k kerberos kpathsea latex lcms ldap libnotify libsamplerate lunar lzo mad midi mikmod mmap mmx mp3 mpeg msn mudflap nautilus ncurses nls nntp nptl nptlonly nsplugin ogg opengl openmp pam pango pcmcia pcre pdf perl pic png ppds pppd python qq qt3support quicktime readline reflection samba scanner sdl session sound spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcltk tcpd tetex theora threads thunderbird tiff tk truetype unicode usb vcd vim vim-syntax vim-with-x vorbis wav wifi win32codecs wma wmf wmp x264 x86 xcb xcomposite xine xinerama xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash service_cache" INPUT_DEVICES="synaptics evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


emerge -qpv xorg-server:
[ebuild   R   ] x11-base/xorg-server-1.5.3-r3  USE="dmx hal ipv6 nptl sdl xorg -3dfx -debug -kdrive -minimal -tslib" INPUT_DEVICES="evdev keyboard synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mouse -mutouch -palmax -penmount -spaceorb -summa -tek4957 -tslib -ur98 -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -ast -chips -cirrus -cyrix -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -imstt -mach64 -mga -neomagic (-newport) -nsc -nv -nvidia -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vesa -vga -via -vmware -voodoo -xgi" 


grep free /var/log/Xorg.0.log:

(II) "freetype" will be loaded by default.
(II) LoadModule: "freetype"
(WW) Warning, couldn't open module freetype
(II) UnloadModule: "freetype"
(EE) Failed to load module "freetype" (module does not exist, 0)

Comment 7 huangfei 2009-03-12 04:00:00 UTC
(In reply to comment #1)
> xorg-server-1.5.3-r2 have /usr/lib/module/fonts/libfreetype.so 
> 

I've got the same problem, and can't find any "freetype.so" or the like under 
/usr/lib/xorg/modules, can't remember the version though, may check it at home later. BTW, "dri" fails either, but I've installed the correct driver for my nvidia card.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-03-12 16:15:23 UTC
I've backported a patch from master which removes the freetype module from the autoload list.

I won't release a new tarball for such a small fix but it's in my queue. It'll be included in the next xorg-server revbump.

In the mean time, just ignore it :)

Thanks
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2009-03-12 16:23:40 UTC
Closing.
Comment 10 Robert Larkin 2009-03-13 16:43:59 UTC
Hard to ignore when xorg won't start and this is the only error.  I pulled my hair out all night while bugs.gentoo.org is unresponsive, reading everywhere that freetype is gone in 1.6, and not find _anywhere_ that's it's gone in 1.5_.  My response was to downgrade to r2, save libfreetype, reinstall r4 and startx.  I still have many problems so this may be a coincidence, but after that single change, xorg does start now. 

The documents I found state that freetype is removed from 1.6, not 1.5.3, so this is Gentoo being different?  I expect that when I go to freedesktop.org I can count on what I'm reading to be accurate wrt to what version I have installed.  If this just slipped in, or it's upstreams fault please say so.
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-03-13 19:40:13 UTC
(In reply to comment #10)
> Hard to ignore when xorg won't start and this is the only error.

_Everyone_ has that error, only because I forgot to backport the one patch that removes the autoloading of the freetype module.

>  I pulled my
> hair out all night while bugs.gentoo.org is unresponsive, reading everywhere
> that freetype is gone in 1.6, and not find _anywhere_ that's it's gone in 1.5_.

That's because I backported from master the patches that clean up the old font handling from the system.

>  My response was to downgrade to r2, save libfreetype, reinstall r4 and startx.

Useless, the module will indeed be loaded correctly but nothing will ever use it.

>  I still have many problems so this may be a coincidence, but after that single
> change, xorg does start now. 

You're probably looking at another bug. Here's what I have in my Xorg.0.log and yet it works just fine :

(II) "freetype" will be loaded. This was enabled by default and also specified in the config file.
[...]
(WW) Warning, couldn't open module freetype
(II) UnloadModule: "freetype"
(EE) Failed to load module "freetype" (module does not exist, 0)

So it's nothing to worry about, even if you still have the module configured in your xorg.conf.

> The documents I found state that freetype is removed from 1.6, not 1.5.3, so
> this is Gentoo being different?

Yes, just take a look at the 67 patches in the patchball...

> I expect that when I go to freedesktop.org I
> can count on what I'm reading to be accurate wrt to what version I have
> installed.  If this just slipped in, or it's upstreams fault please say so.

Don't bug upstream about freetype, it's gone. And as I said in a previous comment, the error message will be gone in the next revbump of xorg-server.

You do seem to have a legitimate bug though. Please do open a bug for that.

Thanks
Comment 12 Yu Yuwei 2009-03-14 00:08:26 UTC
(In reply to comment #8)
> I've backported a patch from master which removes the freetype module from the
> autoload list.
> 
> I won't release a new tarball for such a small fix but it's in my queue. It'll
> be included in the next xorg-server revbump.
> 
> In the mean time, just ignore it :)
> 
> Thanks
> 

Thanks Remi, clear about it now :)

Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2009-03-16 13:23:14 UTC
reopening
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-03-16 13:23:49 UTC
xorg-server-1.5.3-r5 contains the missing patch.

Closing with the proper resolution.

Thanks
Comment 15 Flavio 2009-05-04 11:57:33 UTC
Hello, 

I have xorg-server-1.5.3-r5 but I still get the following error:
(EE) Failed to load module "freetype" (module does not exist, 0)
(EE) No drivers available.

My card is an ATI ES1000.

Flavio
Comment 16 Rémi Cardona (RETIRED) gentoo-dev 2009-05-04 12:34:51 UTC
just remove it from your xorg.conf.

Thanks