FS#13351 - 64-bit ncurses may need "--with-chtype=long" compile option

Attached to Project: Arch Linux
Opened by Chris Pemberton (cjpembo) - Wednesday, 18 February 2009, 06:25 GMT
Last edited by Allan McRae (Allan) - Monday, 02 March 2009, 19:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Some ncurses-based apps appear garbled in 64-bit arch. NVIDIA's binary installer is one such example. NVIDIA's website details a fix: compile ncurses with the "--with-chtype=long" option. It appears that both gentoo and fedora use this compile option for their 64-bit ncurses library:

http://gentoo-portage.com/AJAX/Ebuild/50182

http://rpm.pbone.net/index.php3/stat/22/idpl/11898592/com/changelog.html


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
Install nvidia's binary video driver by hand in 64-bit archlinux. Screen is garbled.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 02 March 2009, 19:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  ncurses-5.7-2.1
Comment by Allan McRae (Allan) - Saturday, 21 February 2009, 22:52 GMT
Have you tested this fix? It is only required in the second compile in the PKGBUILD (after "Install libncurses.so.5 for external binary support"). Given other large distros include this for their x86_64 ncurses, I don't think we have a choice here...
Comment by Allan McRae (Allan) - Sunday, 22 February 2009, 09:51 GMT
ncurses-5.7-2.1 is in [testing] for x86_64. Please test this out.
Comment by Chris Pemberton (cjpembo) - Sunday, 22 February 2009, 23:11 GMT
I built ncurses 5.7-2 from abs with "--with-chtype=long" and indeed the nVidia driver problem was gone. But a possible side effect; alsamixer is now segfaulting. I'll try to update to the ncurses 5.7-2.1 and see what happens (with and without the compile option).

I used the "--with-chtype=long" option in BOTH compiles in the pkgfile; so perhaps that is an issue.
Comment by Allan McRae (Allan) - Sunday, 22 February 2009, 23:30 GMT
Adding the compile flag to the first configure will the cause of the alsamixer crash.
Comment by Chris Pemberton (cjpembo) - Sunday, 22 February 2009, 23:45 GMT
Yes, just built 5.7-2 from ABS, with "--with-chtype=long" on only the second compile. Both nVidia and alsamixer work as expected.
Comment by Charlie Law (dhave) - Monday, 02 March 2009, 19:17 GMT
I'm running ncurses-5.7-2.1 now and have found that, at least, the garbled text problem with the factory nvidia installer has gone away. This is without having "--with-chtype=long" in the config string in the PKGBUILD.

Thanks!

Loading...