Summary: | dev-util/cmake with sys-libs/ncurses[tinfo] - .../work/cmake-*/Source/CursesDialog/cmCursesLongMessageForm.cxx:53: error: undefined reference to 'stdscr' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Justin Lecher (RETIRED) <jlec> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | crazycasta, eike, follettoonip, kmhzsem, marius.brehler+gentoo, pageexec, rei4dan, rochus, travisghansen, zoltan |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 457530 | ||
Attachments: |
build.log
cmake-2.8.12:20131028-203412.log cmake-2.8.12.1-FindCurses.patch |
Description
Justin Lecher (RETIRED)
2013-05-04 22:41:31 UTC
Created attachment 347392 [details]
build.log
build.log
Please report this upstream and link back here. dev-util/cmake-2.8.12 gets it right. Created attachment 362164 [details]
cmake-2.8.12:20131028-203412.log
Still doesn't work with 2.8.12
I did get a magical result with ld.bfd just now, but now I tried with ld.gold and it failed nicely again. *** Bug 497010 has been marked as a duplicate of this bug. *** Created attachment 367990 [details, diff]
cmake-2.8.12.1-FindCurses.patch
I wrote the attached patch which allows it to build on my machine with
sys-libs/ncurses-5.9-r3 with the tinfo USE flag. I haven't reported it
upstream yet.
# diff -wc /usr/portage/dev-util/cmake/cmake-2.8.12.1-r3.ebuild /usr/local/portage/dev-util/cmake/cmake-2.8.12.1-r3.ebuild
*** /usr/portage/dev-util/cmake/cmake-2.8.12.1-r3.ebuild Fri Jan 10 12:33:13 2014
--- /usr/local/portage/dev-util/cmake/cmake-2.8.12.1-r3.ebuild Fri Jan 17 22:18:59 2014
***************
*** 64,69 ****
--- 64,70 ----
"${FILESDIR}"/${PN}-2.8.11-more-no_host_paths.patch
"${FILESDIR}"/${PN}-2.8.12.1-FindImageMagick.patch
"${FILESDIR}"/${PN}-2.8.12.1-FindFreetype.patch
+ "${FILESDIR}"/${PN}-2.8.12.1-FindCurses.patch
)
cmake_src_bootstrap() {
#
Any progress here? It would be nice to ask upstream first does the patch also work with cmake-2.8.12.2? is it actually ok to edit ebuild files in /usr/portage? as far as I could see, this bug hasn't been reported upstream at all. no other distro ever encountered that problem? Patch from Mark works great with cmake-2.8.12.2. piotr: You should rather copy the ebuild to a local overlay (say /usr/local/portage) and edit it there. Ebuilds in /usr/portage tend to get overwritten on syncs. Don't forget to add your local overlay to PORTDIR_OVERLAY in your make.conf. @Rolf Is the attached patch upstreamable or is it maybe already fixed? (In reply to Johannes Huber from comment #12) > @Rolf Is the attached patch upstreamable or is it maybe already fixed? I'm still hitting that with dev-util/cmake-2.8.11.2 Is there a particular reason it is not included? Without it all packages that are using cmake to link ncurses are also broken. *** Bug 507530 has been marked as a duplicate of this bug. *** Can someone please provide me with the exact details on how to reproduce this? I have nightly dashboard builds for CMake running on both HPPA and Sparc and have never seen this. I too get /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o: undefined reference to symbol 'cbreak' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'cbreak' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation to reproduce you'd need to build ncurses with USE=tinfo before building cmake, and to fix you need to apply above patch and alter the ebuild to use it. any more obstacles for this bug to get fixed? (sadly portage is broken in that patches in /etc/portage/patches don't get applied. seems the reason is explained by patch.out containing PWD: /usr/lib64/portage/pym which isn't a good PWDirectory for applying patches...) Ok, I'm now rebuilding ncurses with this flag. Let's see what the dashboard runs comes up with. (In reply to Mark Wright from comment #7) > Created attachment 367990 [details, diff] [details, diff] > cmake-2.8.12.1-FindCurses.patch > > I wrote the attached patch which allows it to build on my machine with > sys-libs/ncurses-5.9-r3 with the tinfo USE flag. Mark, can I get a proper git patch against current CMake master, please? I would then push it upstream. http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=773286e0141720712d514ff18365c49e69c93087 This may even hit 3.0-rc5. Thanks Rolf, will backport it to the tree after testing. Thank you all. This is fixed in cvs now. Please sync to get the changes. + + 06 May 2014; Johannes Huber <johu@gentoo.org> + +files/cmake-2.8.12.2-FindCurses.patch, cmake-2.8.12.2-r1.ebuild: + Add patch to fix build with sys-libs/ncurses[tinfo] by Mark Wright + <gienah@gentoo.org>, bug #468622. + *** Bug 510930 has been marked as a duplicate of this bug. *** |