Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263287 - app-emulation/wine-1.1.17 needs optional freetype dependency and $(use_with freetype)
Summary: app-emulation/wine-1.1.17 needs optional freetype dependency and $(use_with f...
Status: RESOLVED DUPLICATE of bug 263219
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 19:26 UTC by Steve Brudenell
Modified: 2009-03-21 21:50 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 Steve Brudenell 2009-03-21 19:26:15 UTC
I have a headless server on which I wanted to install wine. The latest ebuild (1.1.17) fails in src_configure with:

configure: error: FreeType development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.

I don't have freetype packages on this system.

Here's emerge --info:

Portage 2.1.6.8 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28.2 x86_64)
=================================================================
System uname: Linux-2.6.28.2-x86_64-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-glibc2.2.5
Timestamp of tree: Sat, 21 Mar 2009 03:00:05 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p10-r1
dev-lang/python:     2.4.4-r9, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
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-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -mmmx -msse -msse2 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -mmmx -msse -msse2 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com http://gentoo.osuosl.org http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acl ads amd64 apache2 async avahi bash-completion berkdb bzip2 chroot cli cracklib crypt dbus dirac dri dv dvdread encode event-callback extensions fam fastcgi ffmpeg flac fortran gdbm gnutella icecast iconv id3 imagemagick injection iproute2 ipv6 isdnlog jpeg kerberos lame ldap madwifi mdnsresponder-compat midi mikmod mjpeg mmx mmxext mp3 mpeg mudflap multilib mysql nat ncurses network nls nptl nptlonly nuv ocamlopt offensive ogg openmp pam pam_chroot pcre perl png pppd pulseaudio python quicktime readline reflection resolvconf ruby samba sasl session spl sse sse2 ssl ssse3 svg sysfs syslog tcpd theora threads unicode vim-syntax vorbis webinterface x264 xattr xorg xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_default authz_default authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steve Brudenell 2009-03-21 20:17:26 UTC
So I have confirmed that adding a $(use_enable freetype) to econf (and USE=-freetype) results in a successful build.

However, USE=freetype does not work. I find the following lines in config.log:

configure:14720: checking for -lfreetype
configure:14755: x86_64-pc-linux-gnu-gcc -m32 -o conftest -march=nocona -O3 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -mmmx -msse -m
sse2 -msse3  -Wl,-O1 conftest.c -lfreetype -lfreetype -lz  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../
../../libfreetype.so when searching for -lfreetype
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../
../../libfreetype.a when searching for -lfreetype
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for
 -lfreetype
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libfreetype.a when searching for 
-lfreetype
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lfreetype

I do have media-libs/freetype-2.3.9 installed, and the freetype libraries exist:

azas wine-1.1.17 # ls -lh /usr/lib/libfreetype.*
-rw-r--r-- 1 root root 896K Mar 15 21:26 /usr/lib/libfreetype.a
-rw-r--r-- 1 root root  949 Mar 15 21:26 /usr/lib/libfreetype.la
lrwxrwxrwx 1 root root   21 Mar 15 21:26 /usr/lib/libfreetype.so -> libfreetype.so.6.3.20
lrwxrwxrwx 1 root root   21 Mar 15 21:26 /usr/lib/libfreetype.so.6 -> libfreetype.so.6.3.20
-rwxr-xr-x 1 root root 640K Mar 15 21:26 /usr/lib/libfreetype.so.6.3.20

azas wine-1.1.17 # file /usr/lib/libfreetype.*
/usr/lib/libfreetype.a:         current ar archive
/usr/lib/libfreetype.la:        libtool library file
/usr/lib/libfreetype.so:        symbolic link to `libfreetype.so.6.3.20'
/usr/lib/libfreetype.so.6:      symbolic link to `libfreetype.so.6.3.20'
/usr/lib/libfreetype.so.6.3.20: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped

Is wine's configure script rejecting my freetype.so because it's an x86-64 object while wine is being built for i686? (I note the -m32 in the configure line) If this is true I'm not sure what to offer as a suggestion.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-21 21:50:21 UTC

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