bugGNU Screen - Bugs: bug #27916, test for tgetent emulation broken...


bug #27916: test for tgetent emulation broken during configure on hpux 11.2x

Submitter:  None
Submitted:  Mon 02 Nov 2009 07:09:57 PM UTC
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.0.3
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

Tue 16 Feb 2010 08:30:15 PM UTC, comment #1: 

If you make this change in configure.in, and start over (i.e. from ./autogen.sh), does that work?

--- a/src/configure.in
+++ b/src/configure.in
@@ -657,13 +657,7 @@ AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,
 LIBS="-lcurses $olibs"
-#ifdef __hpux
-tgetent((char *)0, (char *)0);
+AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,
 LIBS="-ltermcap $olibs"
 AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,

Sadrul Habib Chowdhury <sadrul>
Group administrator
Mon 02 Nov 2009 07:09:57 PM UTC, original submission:  

"./configure" terminates with the following output:
configure: checking for tgetent...
configure: checking libcurses...
configure: checking libtermcap...
configure: checking libtermlib...
configure: checking libncurses...
configure: error: !!! no tgetent - no screen

This function does exist and the 1st test using libcurses should succeed. I don't know enough about autoconf to provide a patch but I do know that gcc is not being passed the LIBS option correctly. Specifically the -lcurses arg is not getting to gcc resulting in a link failure.

The following work-around got me past this issue:

env LIBS=-lcurses ./configure



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by sadrul (Posted a comment)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code