libtool: link: cannot find the library `/usr/lib/libmodplug.la' or unhandled Reproducible: Always Steps to Reproduce: 1. emerge asc 2. 3. Actual Results: /bin/sh ../../../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Dsgmain -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -march=native -O2 -pipe -fomit-frame-pointer -Wno-sign-compare -funsigned-char -D_UNIX_ -D_SDL_ -I/usr/include/freetype2 -DXVIDEXPORT -Wl,-O1 -o asc unitctrl.o soundList.o typen.o strtmesg.o stack.o spfst.o sgstream.o sg.o palette.o newfont.o misc.o loadpcxc.o loaders.o tos.o loadbi3.o gamedlg.o dlg_box.o dialog.o controls.o basestrm.o basegfx.o attack.o replaymapdisplay.o memory-measurement.o gameoptions.o astar2.o vehicletype.o objects.o stdio-errorhandler.o buildingtype.o containerbase.o mapalgorithms.o viewcalculation.o gamemap.o password.o replay.o research.o fieldimageloader.o mapdisplay.o resourcenet.o dashboard.o ascstring.o graphicset.o vehicle.o buildings.o networkinterface.o textfileparser.o terraintype.o objecttype.o textfiletags.o itemrepository.o stringtokenizer.o music.o messages.o paradialog.o textfile_evaluation.o containerbasetype.o messagedlg.o simplestream.o mappolygons.o prehistoricevents.o gameevents.o gameeventsystem.o gameevent_dialogs.o statisticdialog.o clipboard.o geometry.o guidimension.o guiiconhandler.o guifunctions.o iconrepository.o gamedialog.o infopopup.o overviewmapimage.o asc-mainscreen.o mapfield.o overviewmappanel.o messaginghub.o explosivemines.o mainscreenwidget.o networksupervisor.o legacynetworkloaders.o player.o cannedmessages.o reactionfire.o mapimageexport.o containercontrols.o containerbase-functions.o windowing.o turncontrol.o unitset.o playercolor.o pg_mapdisplay.o ../../../source/libs/triangul/libtriangul.la ../../../source/ai/libai.la ../../../source/libs/sdlmm/src/libSDLmm.la ../../../source/sdl/libsdl.la ../../../source/libs/loki-0.1.6/libloki.la ../../../source/graphics/libgraphics.la ../../../source/dialogs/libdialogs.la ../../../source/dialogs/libgamedialogs.la ../../../source/actions/libactions.la ../../../source/libs/paragui/src/libparagui.la ../../../source/widgets/libwidgets.la ../../../source/sdl/libsdlsnd.la ../../../source/network/libnetwork.la ../../../source/video/libvideo.la -lbz2 -lsigc-1.2 -lSDL -lpthread -lfreetype -lz -lboost_regex -lSDL_sound -lpng -lbz2 mkdir .libs libtool: link: cannot find the library `/usr/lib/libmodplug.la' or unhandled argument `/usr/lib/libmodplug.la' make[4]: *** [asc] Error 1 make[4]: Leaving directory `/var/tmp/portage/games-strategy/asc-2.2.0.0/work/asc-2.2.0.0/source/unix/asc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/games-strategy/asc-2.2.0.0/work/asc-2.2.0.0/source/unix' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/games-strategy/asc-2.2.0.0/work/asc-2.2.0.0/source' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/games-strategy/asc-2.2.0.0/work/asc-2.2.0.0' make: *** [all] Error 2 Expected Results: Emerge without error [I] media-libs/libmodplug Available versions: 0.7 0.8-r1 0.8.4-r2 ~0.8.4-r3 0.8.7 Installed versions: 0.8.7(12:25:55 AM 05/07/2009) Homepage: http://modplug-xmms.sourceforge.net/ Description: Library for playing MOD-like music files Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.28-gentoo-r4-i686-Genuine_Intel-R-_CPU_T2600_@_2.16GHz-with-gentoo-2.0.0 Timestamp of tree: Wed, 06 May 2009 17:15:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.2 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" 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/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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs distlocks fixpackages noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en de" MAKEOPTS="-j4" 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.de.gentoo.org/gentoo-portage" USE="USB X aac acl acpi aio alsa apache2 bash-completion berkdb bluetooth branding bzip2 cairo ccache cdr cjk cleartype cli cracklib crypt cscope cups curl dbus dri dvd dvdr dvdread encode evo exif expat fam ffmpeg gdbm gif glib gnutls gpm gstreamer gtk hal iconv idn ipv6 java java5 java6 jpeg kerberos kpathsea lcms ldap libnotify logrotate mad mhash midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl pam pcmcia pcre pdf perl png ppds python qt3support qt4 quicktime readline reflection samba sdl session snmp spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb userlocales vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xattr xml xorg xosd xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="snd-hda-intel" 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_dbd 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 dbd 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_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse ps2mouse " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="fglrx vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
What's your /usr/lib/libmikmod.la file look like?
Doh! libmodplug.... Well, you obviously changed use flags and then didn't re-emerge some library package that used to link against libmodplug. Figure out which .la refers to libmodplug and re-emerge it.
I allready tried to reemerge libmodplug before filing a bug but failed to check up on the ebuild itself. It seems somebody did not think it necessary to have the libtool .la file of this package around and insterted a line to delte those in the ebuild as shown on the snippet below. libmodplug ebuild: .... src_install() { emake DESTDIR="${D}" install || die dodoc AUTHORS ChangeLog README TODO # Remove unneeded libtool files find "${D}" -name '*.la' -delete } .... I modified the ebuild locally and asc emerged fine. I'm going to close this bug a open a bug for libmodplug.