bugGNU Screen - Bugs: bug #29254, ./configure on HP-UX with...

 
 

bug #29254: ./configure on HP-UX with ncurses-5.7 fails to find tgetent

Submitter:  Alexander Gattin <xrgtn>
Submitted:  Thu 18 Mar 2010 10:02:51 AM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 06 Apr 2010 01:41:51 PM UTC, comment #3: 

Apparently -lcurses works on PA-RISC HP-UX 11.11 too.

Its manpage for tgetent says:

 NAME
      tgetent, tgetflag, tgetnum, tgetstr, tgoto - termcap database
      emulation (TO BE WITHDRAWN)
 ...
 APPLICATION USAGE
      These functions are included as a conversion aid for programs that use
      the termcap library.  Their arguments are the same and the functions
      are emulated using the terminfo database.

      These functions are only guaranteed to operate reliably on character
      sets in which each character fits into a single byte, whose attributes
      can be expressed using only constants with the A_ prefix.

      Any terminal capabilities from the terminfo database that cannot be
      retrieved using these interfaces can be retrieved using the interfaces
      described on the tigetflg() page.

BTW, they actually meant tigetflag(3X)

Alexander Gattin <xrgtn>
Tue 06 Apr 2010 09:54:53 AM UTC, comment #2: 

Sorry for very late reply:

yes, the patch works. screen builds with HP-UX system libcurses, and ./screen binary seems to work OK. It even finds terminfo entry for TERM=xterm which indicates that it indeed uses terminfo database and not termcap (/etc/termcap on HP-UX 11.31 doesn't contain terminal description for xterm, while HP-UX terminfo does).

What's more interesting for you I think is the next paragraph from HP-UX `man tgentent`:

    Obsolescent Interfaces
      tgetent(), tgetnum(), tgetflag(), tgetstr(), tgoto(), and tputs() are
      to be obsoleted at a future date.
...
 Hewlett-Packard Company            - 2 -       HP-UX 11i Version 3 Feb 2007

Alexander Gattin <xrgtn>
Sat 27 Mar 2010 12:57:01 AM UTC, comment #1: 

Thanks for the patch!

Out of curiosity, can you see if the following patch works? (make sure you revert your change first!)


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


Sadrul Habib Chowdhury <sadrul>
Group administrator
Thu 18 Mar 2010 10:02:51 AM UTC, original submission:  

Default configure/make/install of ncurses-5.7 builds separate libtinfo.a library and places tgetent there instead of libncurses.a:

ilink@tunis:~/xxx3 > objdump -t lib/libtinfo.a | grep getent
00000560 g     F .text  00001130 tgetent
ilink@tunis:~/xxx3 > objdump -t lib/libncurses.a | grep getent
ilink@tunis:~/xxx3 >

This results in ./configure being unable to locate tgetent on HP-UX:

configure: checking for tgetent...
configure: checking libcurses...
configure: checking libtermcap...
configure: checking libtermlib...
configure: checking libncursesw...
configure: checking libncurses...
configure: error: !!! no tgetent - no screen

I suggest checking for -ltinfo too (patch is attached)

Alexander Gattin <xrgtn>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #19975:  screen.git_libtinfo.patch added by xrgtn (443B - text/x-diff)

 

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)
  • -email is unavailable- added by xrgtn (Submitted the item)
  •  

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-18 xrgtn Attached File- Added screen.git_libtinfo.patch, #19975

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code