Bug 120240
Summary: | w3m segfaults when calling getch() | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Akira TAGOH <tagoh> |
Component: | w3m | Assignee: | Akira TAGOH <tagoh> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | dickey, dpoon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 0.5-3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-04-21 06:11:56 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 114963 |
Description
Akira TAGOH
2004-04-07 02:41:08 UTC
The cause of the segfault is that w3m is not linked with libncurses, which defines the wgetch() function. The linker does not complain when building or running w3m because gpm has declared wgetch to be a weak symbol -- see gpm-1.20.1-weak-wgetch.patch in the gpm SRPM. The solution is to append -lncurses at the end of the W3M_LIBS macro in w3m's Makefile. That should be accomplished by patching the configure script. A less robust kludge would be to simply change w3m.spec to use a --with-termlib=ncurses argument when calling configure. (Bug component should probably be changed from gpm to w3m, and a more accurate summary would be "w3m segfaults when calling getch()".) ok, I have read the changelog for -weak-wgetch.patch. this will be fixed in w3m. reassign it then. Fixed in 0.5-3 The analysis is incorrect. See http://invisible-island.net/ncurses/ncurses.faq.html#using_gpm_lib |