I tried to install wine, but I get this error with both 0.9.57 (latest stable) and 1.0_r4 (latest unstable): make[1]: Entering directory `/var/tmp/portage/app-emulation/wine-0.9.57/work/wine-0.9.57/fonts' fontforge -script ../fonts/genttf.ff courier.sfd courier.ttf Copyright (c) 2000-2007 by George Williams. Executable based on sources from 20:20 GMT 10-Dec-2007. ../tools/sfnt2fnt courier.ttf 13 1255 96 128 8 ../tools/sfnt2fnt: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory make[1]: *** [courier-1255-96-13.fnt] Error 127 make[1]: Leaving directory `/var/tmp/portage/app-emulation/wine-0.9.57/work/wine-0.9.57/fonts' make: *** [fonts] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge wine 2. 3. Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686) ================================================================= System uname: 2.6.23-gentoo-r3 i686 unknown Timestamp of tree: Wed, 11 Jun 2008 05:32:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r13 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.utf-8" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="alsa cli crypt dri fortran iconv isdnlog jpeg midi mudflap ncurses nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl ssl tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 156383 [details] build.log
run `readelf -d` on the sfnt2fnt file that is erroring also, make sure that libwine.so.1 exists relative to sfnt2fnt's location: tools/../libs/wine/libwine.so.1
tools # readelf -d sfnt2fnt Dynamic section at offset 0x2ef4 contains 26 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libwine.so.1] 0x00000001 (NEEDED) Shared library: [libfreetype.so.6] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000f (RPATH) Library rpath: [$ORIGIN/../libs/wine] 0x0000001d (RUNPATH) Library runpath: [$ORIGIN/../libs/wine] 0x0000000c (INIT) 0x80489e0 0x0000000d (FINI) 0x804a024 0x00000004 (HASH) 0x8048188 0x6ffffef5 (GNU_HASH) 0x80482d0 0x00000005 (STRTAB) 0x80485c0 0x00000006 (SYMTAB) 0x8048310 0x0000000a (STRSZ) 585 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x804bff4 0x00000002 (PLTRELSZ) 272 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x80488d0 0x00000011 (REL) 0x80488c0 0x00000012 (RELSZ) 16 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x6ffffffe (VERNEED) 0x8048860 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x804880a 0x00000000 (NULL) 0x0
Yes, tools/../libs/wine/libwine.so.1 does exist, and seems to work too: tools # ldd sfnt2fnt linux-gate.so.1 => (0xb7f78000) libwine.so.1 => not found libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7ef6000) libz.so.1 => /lib/libz.so.1 (0xb7ee3000) libc.so.6 => /lib/libc.so.6 (0xb7db3000) tools # LD_LIBRARY_PATH=../libs/wine/ ldd sfnt2fnt linux-gate.so.1 => (0xb7f0d000) libwine.so.1 => ../libs/wine/libwine.so.1 (0xb7df7000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7d76000) libz.so.1 => /lib/libz.so.1 (0xb7d63000) libc.so.6 => /lib/libc.so.6 (0xb7c33000) libdl.so.2 => /lib/libdl.so.2 (0xb7c2f000) /lib/ld-linux.so.2 (0xb7f0e000) A clean wine-0.9.57 (from git) builds just fine, so this is not an upstream bug...
your glibc/ldd is broken. that's the point of the $ORIGIN RUNPATH ELF dynamic tags. setting the LD search path manually is unnecessary. $ ldd sfnt2fnt linux-gate.so.1 => (0xf7f97000) libwine.so.1 => /var/tmp/portage/app-emulation/wine-1.0/work/wine-1.0/tools/../libs/wine/libwine.so.1 (0xf7e5f000) libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf7da2000) libz.so.1 => /lib32/libz.so.1 (0xf7d8f000) libc.so.6 => /lib32/libc.so.6 (0xf7c4e000) libdl.so.2 => /lib32/libdl.so.2 (0xf7c4a000) /lib/ld-linux.so.2 (0xf7f98000) run ldd with the -v flag, and then run: LD_DEBUG=all ./sfnt2fnt and post the output as attachments