After an `emerge -uDN world` dev-db/mysql-gui-tools-5.0_p10-r1 fails to compile because it can't find -ltermcap. i686-pc-linux-gnu-g++ -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fexceptions -Wall -o grtsh grtsh-grtshell.o -pthread ../../library/grt-modules/source/.libs/libgrtmods.a ../../library/mysql-resultset/source/.libs/libgrtsqlrs.a ../../library/mysql-resultset/source/.libs/libsqlrs.a ../../library/sql-parser/source/.libs/libsqlparser.a ../../library/generic-runtime/source/.libs/libgrt.a ../../library/base-library/source/.libs/libmysqlx.a ../../library/utilities/source/.libs/libguiutil.a /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient_r.so -L/usr/lib -lz -lcrypt -lnsl -lm -lpthread -lssl -lcrypto /usr/lib/libpcre.so -llua -llualib /usr/lib/libexpat.so -luuid ../../library/generic-runtime/source/.libs/libgrttextui.a ../../library/generic-runtime/newt/libmnewt.a -lslang-utf8 -ltermcap -lncurses -ldl -lstdc++ -Wl,--rpath -Wl,/usr/lib/mysql -Wl,--rpath -Wl,/usr/lib/mysql /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status make[3]: *** [grtsh] Error 1 make[3]: Leaving directory `/usr/var/portage/dev-db/mysql-gui-tools-5.0_p10-r1/work/mysql-gui-tools-5.0r10/mysql-gui-common/tools/grtsh' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/var/portage/dev-db/mysql-gui-tools-5.0_p10-r1/work/mysql-gui-tools-5.0r10/mysql-gui-common/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/var/portage/dev-db/mysql-gui-tools-5.0_p10-r1/work/mysql-gui-tools-5.0r10/mysql-gui-common' make: *** [all] Error 2 !!! ERROR: dev-db/mysql-gui-tools-5.0_p10-r1 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3773: Called src_compile mysql-gui-tools-5.0_p10-r1.ebuild, line 69: Called gnome2_src_compile '--enable-grt' '--enable-canvas' '--enable-i18n' gnome2.eclass, line 71: Called die !!! compile failure !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/usr/var/portage/dev-db/mysql-gui-tools-5.0_p10-r1/temp/build.log'. emerge --info: Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 12 Mar 2007 19:30:01 +0000 dev-java/java-config: 1.3.7, 2.0.31-r4 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 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 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE.UTF-8" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/usr/var" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/private" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib accessibility acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bluetooth bzip2 cairo caps cdda cddb cdparanoia cdr chardet chipcard cli cracklib crypt cups curl d dbus dga directfb divx dlloader doc dri dv dvb dvd dvdr dvdread eds effects emboss encode expat extrafilters fam fame fbcon ffmpeg firefox flac foomaticdb fortran ftp gcc-libffi gcj gd gdbm geldkarte gif gimp glib glitz gmedia gmp gnutls gpm graphviz gs gstreamer gtk gtk2 gtkhtml hal hbci iconv idn ilbc imagemagick imlib inkjar ipv6 irmc isdnlog jack jack-tmpfs jce jpeg kde ladspa lcms ldap libg++ libnotify libsamplerate lirc live lm_sensors mad mailwrapper mbox mbrola midi mikmod mjpeg mmx mmx2 mmxext mng modplug motif mozilla mp3 mp4 mpeg mplayer musicbrainz mysql mysqli nas ncurses network nls noamazon nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc odbc offensive ofx ogg oggvorbis opengl osc oss pam pcre pdf perl php plugin png ppds pppd print python qt qt3 qt3support qt4 quicktime quotes readline real realmedia reflection reiserfs rtc rtsp scanner sdl session slang slideshow smime speex spell spl sqlite sse sse-filters ssl svg svga tcl tcltk tcpd tetex themes theora threads threadsafe tidy tiff tk tokenizer tools truetype truetype-fonts type1-fonts udev unicode usb utempter v4l v4l2 vdr vidix visualization vlm vorbis win32codecs wma wmf wmp x86 xcomposite xine xml xml2 xorg xpm xv xvid yv12 zip zlib zrtp" ALSA_CARDS="emu10k1" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 113116 [details] build.log
Same here, remerge of libtermcap-compat doesn't help.
Created attachment 113244 [details, diff] patch plus update ebuild for mysql-gui-tools This is a updated ebuild with a patch that fixes the ltermcap bug, tested on x86, and on dual pentium4. heard reports that it did not build on dual amd64 but i cant confirm that. Rgds Daxomatic
To keep things tidy, how about a one liner in the ebuild instead of a full blown patch. Something like the following works: ## Disable linking against the deprecated -ltermcap this is now handled by -lncurses ## sed -i -e 's:-ltermcap::g' tools/{grtsh,grtsh3}/Makefile{.am,.in} || die "Sed failed for -ltermcap" By the by, this must have been overlooked from the now closed http://bugs.gentoo.org/show_bug.cgi?id=159957#c7 Thanks :)
ln -s libtermcap.so.2 /lib/libtermcap.so and then emerge mysql-gui-tools. Problem solved here.
I'm not sure but somehow I don't like all the workarounds by making symlinks to libraries manually because those symlinks are not deleted by `emerge -C`. Somehow I think those symlinks resp. the correct dynamic linking should be done by `emerge`.
bleh, this happens if you've got slang installed. and it's an automagic dependency, no --enable configure flag available for it.
(In reply to comment #3) > Created an attachment (id=113244) [edit] > patch plus update ebuild for mysql-gui-tools > > Perhaps i'm just to stupid, but where is the ebuild in this archive? There is a file called "mysql-gui-tools-5.0_p10-r1.ebuild", but this is a path for a Makefile. If this works for all others why not release "-r2"?
Created attachment 114577 [details] tar file of local overlay with ebuilds and patch This is a local overlay directory of the mysql-gui-tools.
Now it compiles on my machine, but i cannot start it: "The GRT environment for the Workbench could not be initialized. Please verify your installation."
5.0_p11 now includes the sed fix
(In reply to comment #11) > 5.0_p11 now includes the sed fix It fixes the sed bug but unfortunately not this bug regarding termcap. This bug is still present in 5.0_p11.
same problem for me and confirm that p11 still fails i686-pc-linux-gnu-g++ -march=pentium-m -mtune=pentium-m -O2 -pipe -fomit-frame-pointer -msse2 -fexceptions -Wall -o grtsh grtsh-grtshell.o -pthread ../../library/grt-modules/source/.libs/libgrtmods.a ../../library/mysql-resultset/source/.libs/libgrtsqlrs.a ../../library/mysql-resultset/source/.libs/libsqlrs.a ../../library/sql-parser/source/.libs/libsqlparser.a ../../library/generic-runtime/source/.libs/libgrt.a ../../library/base-library/source/.libs/libmysqlx.a ../../library/utilities/source/.libs/libguiutil.a /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so /usr/lib/libxml2.so -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient_r.so -L/usr/lib -lz -lcrypt -lnsl -lm -lpthread -lssl -lcrypto /usr/lib/libpcre.so -llua -llualib /usr/lib/libexpat.so -luuid ../../library/generic-runtime/source/.libs/libgrttextui.a ../../library/generic-runtime/newt/libmnewt.a -lslang-utf8 -ltermcap -lncurses -ldl -lstdc++ -Wl,--rpath -Wl,/usr/lib/mysql -Wl,--rpath -Wl,/usr/lib/mysql /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status make[3]: *** [grtsh] Error 1 make[3]: Leaving directory `/data/var/tmp/portage/dev-db/mysql-gui-tools-5.0_p11/work/mysql-gui-tools-5.0r11/mysql-gui-common/tools/grtsh'
sed not replaces -ltermcap occurrences change it from sed -i -e "s/\\b-ltermcap\\b//g" tools/{grtsh,grtsh3}/Makefile.{am,in} to sed -i -e "s/ -ltermcap\\b//g" tools/grtsh/Makefile.{am,in} that solves the problem
Fix in mysql-gui-tools-5.0_p11.ebuild "s/\\(^\\|[[:space:]]\\)-ltermcap\\($\\|[[:space:]]\\)//g" caused in my case other error. Compiling failed due to finding library slang-utf8-lncurses, bcs sed made joining two -l options. Helped change to "s/\\(^\\|[[:space:]]\\)-ltermcap\\($\\|[[:space:]]\\)/ /g"
*** Bug 176919 has been marked as a duplicate of this bug. ***
i added the missing space... hopefully this is finally fixed... :\