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

 
 

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

Submitted by:  Alexander Gattin <xrgtn>
Submitted on:  Thu 18 Mar 2010 10:02:51 AM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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!)

Sadrul Habib Chowdhury <sadrul>
Project 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 File(s):
   
   
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
  • -unavailable- added by sadrul (Posted a comment)
  • -unavailable- added by xrgtn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 18 Mar 2010 10:02:51 AM UTCxrgtnAttached File-=>Added screen.git_libtinfo.patch, #19975

    Back to the top


    Powered by Savane 3.1-cleanup1