| Summary: | dev-db/mysql-gui-tools-5.0_p10-r1 fails to compile (cannot find -ltermcap) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Heiko Baums <heiko.baums> |
| Component: | New packages | Assignee: | Sven Wegener <swegener> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bbc.quincy, lvs, william |
| Priority: | High | ||
| Version: | 2006.1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build.log
patch plus update ebuild for mysql-gui-tools tar file of local overlay with ebuilds and patch |
||
|
Description
Heiko Baums
2007-03-12 23:26:25 UTC
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... :\ |