Operating System - HP-UX
1833503 Members
2743 Online
110058 Solutions
New Discussion

Re: 11.31 where is libtermcap.a

 
SOLVED
Go to solution
Bob_Vance
Esteemed Contributor

11.31 where is libtermcap.a

I'm trying to build 'less' 436 on 11.31.

on 11.23 system, it built fine,
and we have
# swlist ProgSupport.PROG-MIN | grep termcap
... /usr/old/usr/lib/libtermcap.a
... /usr/lib/libtermcap.a

on 11.31 system,
# swlist ProgSupport.PROG-MIN | grep termcap
... <>

so where is libtermcap.a


bv
"The lyf so short, the craft so long to lerne." - Chaucer
24 REPLIES 24
Viveki
Trusted Contributor

Re: 11.31 where is libtermcap.a

Hi,

The attached information is from a Japanese document.

It might help you.


Michael Steele_2
Honored Contributor

Re: 11.31 where is libtermcap.a

Hmmmm

Had no problem finding it

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51A_HTML/MAN/MAN3/0801___X.HTM
Support Fatherhood - Stop Family Law
Steven Schweda
Honored Contributor

Re: 11.31 where is libtermcap.a

> Had no problem finding it

And if we were discussing Tru64 instead of
HP-UX, ...

"man termcap" suggests that you really want
to be using terminfo, instead. I know
nothing, but I'd guess that termcap support
was dropped in 11.31.

Where did you find this "less" kit? Is there
a more portable edition somewhere (one which
can use terminfo instead of termcap)?

You did re-"configure" the thing, right?
Michael Steele_2
Honored Contributor

Re: 11.31 where is libtermcap.a

Dude, you are stalking and harassing and this is your last warning
Support Fatherhood - Stop Family Law
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

For those that found it in 11.31,
what fileset is it in
and where is it located.


On the 11.23 system,
I found it in
...HPUXBaseOS.ProgSupport.PROG-MIN

using

swlist -l file | grep libtermcap
... HPUXBaseOS.ProgSupport.PROG-MIN: /usr/old/usr/lib/libtermcap.a
... HPUXBaseOS.ProgSupport.PROG-MIN: /usr/lib/libtermcap.a



and, indeed:


Pine3 ## find /usr -name '*termcap*'
... /usr/lib/libtermcap.a

"The lyf so short, the craft so long to lerne." - Chaucer
Dennis Handly
Acclaimed Contributor

Re: 11.31 where is libtermcap.a

>On the 11.23 system, I found it in ...

You might want to look for libtermcap.*, for the shared version.
Patrick Wallek
Honored Contributor

Re: 11.31 where is libtermcap.a

>>Dude, you are stalking and harassing

I see nothing in Stevens reply that is stalking or harassing. If by pointing out that the man page link you posted is in fact a Tru64 man page is harassment then that is a different definition of harassment than I have ever seen.

While I may not always approve of Stevens methods or style, he usually provides good information.
Steven Schweda
Honored Contributor

Re: 11.31 where is libtermcap.a

> I'm trying to build 'less' 436 [...]

Potentially useful (and missing) info:

Using which "less" kit from where?

"[T]rying to build" how, exactly? Actual
commands?

Actual results? Why, exactly, are you
seeking a "libtermcap.a"?

> on 11.23 system, it built fine, [...]

And what, exactly, did you do there?


> [...] this is your last warning

I wish.
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

Thanks, but it doesn't really matter which 'less' I am trying to do.
The question is where is libtermcap.a, which exists on my 11.23 system in ProgSupport.PROG-MIN.

And the make worked fine on the 11.23 system.

But:

The HPUX porting archive.

The source tarball.

gunzip+untar
cd into source directory
./configure
make

On the 11.23 system it worked fine.

On the 11.31 system, the ./configure failed because it could not find the termcap library.

So, whoever has libtermcap.a on their 11.31 system, could you tell me where it is located and within which fileset.

Perhaps my 11.31 install inadvertently left out something.

bv
"The lyf so short, the craft so long to lerne." - Chaucer
Don Morris_1
Honored Contributor
Solution

Re: 11.31 where is libtermcap.a

The v2 release notes are really clear that this is an obsoleted interface:

http://docs.hp.com/en/5991-1101/ch10s08.html

So I expect as warned, v3 removed the library.

man termcap(3X) on a v3 system gives the same idea -- the functions listed are specifically stated to be "emulation routines" and the library is libcurses, not libtermcap.

In other words, I do believe you're looking for something that doesn't exist. Your 'less' source needs to use Xcurses instead of termcap interfaces -- which likely would mean you need to contact the developers of 'less' and see if they have source which addresses that issue, unless you feel like revising their code for them.
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

Thanks,
the porting archive shows dependencies, one being termcap of course, and they apparently have a version of that.

I will try that.

But others replied here that they had libtermcap.a on their system and I'm wondering where it came from.

bv

"The lyf so short, the craft so long to lerne." - Chaucer
Steven Schweda
Honored Contributor

Re: 11.31 where is libtermcap.a

> [...] it doesn't really matter [...]

Perhaps not to you, but to anyone who might
try to reproduce your problem, it might
really matter. You think?

> The question is where is libtermcap.a,
> [...]

That's your question, not mine. I looked,
but found none on my 11.31 system, which is
why I didn't think you'd find it on yours.
But I also didn't think that you'd really
need it.

> The HPUX porting archive.
> The source tarball.

Thanks. I'll just pop those into my Web
browser. (Hmmm. Doesn't seem to work.)

Following guidance from Google, I sucked
down this source kit:

http://www.greenwoodsoftware.com/less/less-436.tar.gz

On my system:

rux # uname -a
HP-UX rux B.11.31 U ia64 1678555272 unlimited-user license

rux # gcc --version
gcc (GCC) 4.3.3
[...]

rux # gzip -dc less-436.tar.gz | tar xf -

rux # cd less-436

> On the 11.31 system, the ./configure
> failed because it could not find the
> termcap library.

Not on mine:

rux # ./configure
[...]
checking for working terminal libraries... using -lcurses
[...]
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
[So, no sign of working "termcap" stuff.]
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
[...]

rux # make
[...]
gcc -o less main.o screen.o brac.o ch.o charset.o cmdbuf.o command.o cvt.o decode.o edit.o filename.o forwback.o help.o ifile.o input.o jump.o line.o linenum.o lsystem.o mark.o optfunc.o option.o opttbl.o os.o output.o pattern.o position.o prompt.o search.o signal.o tags.o ttyin.o version.o -lintl -lgen -lcurses
[...]

I see no sign of anyone expecting to use
"libtermcap.a".

rux # ./less --version
less 436
Copyright (C) 1984-2009 Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

> So, whoever has libtermcap.a on their
> 11.31 system, [...]

While we wait for someone to find one, ...

> Perhaps my 11.31 install inadvertently
> left out something.

Perhaps, but I doubt it. Your problem
description, on the other hand, certainly
left out some things, however.

> Actual results?

As usual, actual commands with their actual
results can be more useful than vague and
incomplete descriptions and interpretations.
Steven Schweda
Honored Contributor

Re: 11.31 where is libtermcap.a

> But others replied here that they had
> libtermcap.a on their system and I'm
> wondering where it came from.

Who? Where? You mean this?:

> Had no problem finding it

Did you then follow that link he supplied to
find the (old, obsolete) Tru64 "man" page?

> the porting archive shows dependencies, one
> being termcap of course,

Trust no one, I always say. Perhaps on an
older HP-UX version, this would be more true.

> and they apparently have a version of
> that.

So, get it from them? (If you _really_ think
that you need it.)
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

Steve,
do you try to sound like an asshole, or does it just come naturally?

Just wondering.



"The lyf so short, the craft so long to lerne." - Chaucer
Steven Schweda
Honored Contributor

Re: 11.31 where is libtermcap.a

> do you try to sound like [...]

It's easy when I'm driven to it, by, for
example:

1. A misleading Subject. Was your goal
to get "less" working, or to find
"libtermcap.a"?

2. A thoroughly incomplete problem
description.

3. A failure to answer simple questions,
with the explanation that the answers
don't "really matter", thus not resolving
the deficiencies in the original problem
description. (One might reasonably argue
that if you really _knew_ what was
important, then you might not need to be
asking about this stuff here.)

Forum rules preclude personal abuse, so,
while I might feel a powerful urge to call
an apparently incompetent questioner a
moron, I try to limit my complaints to the
defects in the question itself, but I
wouldn't try to discourage the obvious
inference. This may present the appearance
of my having a bad attitude, which may also
be true.

By the way, assuming that getting "less"
working actually was the original goal,
how's that going? (As shown, it worked for
me.)
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

Thanks, Steve.
That answers my second question.
"It comes naturally."


>>>1. A misleading Subject.

"11.31 where is libtermcap.a"

what is misleading about that?




>>>2. A thoroughly incomplete problem
description.

Why don't you re-read the original post, genius.

I show that libtermcap.a exists on 11.23
and not on 11.31.
I with
... "so where is libtermcap.a"
Simple question.
Which was really my question and which was the subject line of the post.

But you, in you astonishing arrogance, assumed that I don't know what I'm doing.

I didn't ask for help in building 'less'.
I didn't ask you to reproduce the error I got.
I knew where that came from and I stated it clearly -- libtermcap was missing.


And you reply with
"That's your question, not mine."

You're a real piece of work.




>>>3. A failure to answer simple questions

Again, genius, re-read my reply to your first post.
I *did* answer your questions.

You just don't like the fact that I also pointed out that *your* question was irrelevant to my actual question, as you so much like to mention to others in your responses.



>>>3. (One might reasonably argue
>>> that if you really _knew_ what was
>>> important, then you might not need to be
>>> asking about this stuff here.)

An arrogant jerk certainly might argue that.
You might do better to consider that not everyone that posts here is an ignorant neophyte.
Sometimes things come up that hopefully someone else has run across and to which you just need a quick answer.
"The lyf so short, the craft so long to lerne." - Chaucer
Steven Schweda
Honored Contributor

Re: 11.31 where is libtermcap.a

> I'm trying to build 'less' 436 on 11.31.

> I didn't ask for help in building 'less'.

You win. Apparently I completely
misunderstood your goal.

You have my best wishes in your quest for the
lost "libtermcap.a".

On the bright side, you're free to award more
points for the Tru64 "man" page pointer than
for anything with which I might have burdened
you, thus breaking my heart.
Michael Steele_2
Honored Contributor

Re: 11.31 where is libtermcap.a

Rolling On Floor Laughing Out Loud - See? - Told ya.
Support Fatherhood - Stop Family Law
Pete Randall
Outstanding Contributor

Re: 11.31 where is libtermcap.a

Michael,

I missed the point. Who were you warning? bv? or Steven?

I must admit I got a chuckle out of the last few postings, though I must question whether that's the sort of professionalism we should seek to demonstrate on this esteemed site. I've certainly had my moments as well, though!


Pete

Pete
Michael Steele_2
Honored Contributor

Re: 11.31 where is libtermcap.a

I'm sorry Pete - He got the better of me for awhile but this is satisfactory redemption. He was being a jerk to me in a few postings, as he was here. I'll watch my temper.
Support Fatherhood - Stop Family Law
Pete Randall
Outstanding Contributor

Re: 11.31 where is libtermcap.a

Yes, I understand - no need to apologize. Steven can get a bit sarcastic at times.


Pete

Pete
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

I've been in the middle of a consulting gig, so have not been timely in this post.
Sorry 'bout that.
Anyway,

I found libtermcap.a


It's on the INSTALL DVD,as would be expected,
but with a wrinkle:

there are TWO different filesets,
. one for Itanium
& one for PArisc
... (see below for the details of those filests)

and, for whatever reason,
apparently HP is not allowing termcap on Itanium version HPUX.


I have the following scenarios:

11.31 on Itanium with NO libtermcap (reason for this post)

11.23 on Itanium and it also does NOT have libtermcap
... ( I only just did verify this.
... Its ProgSupport.PROG-MIN fileset looks the
... same as the 11.31 version. see below
... )

11.23 on PArisc which DOES HAVE libtermcap


I cannot verify that it installs on 11.31 PArisc,
however, since I have no such system.


Here are the 2 filesets.
Notice that last chars of the fileset names:

charley ## swlist -s /dvd \
ProgSupport.PROG-MIN,r=B.11.31,a=HP-UX_B.11.31_IA/PA,\
v=HP,fr=B.11.31,fa=HP-UX_B.11.31_IA

... ProgSupport.Runtime.PROG-MIN B.11.31 Minimum Programming Tools (IPF)
... /
... /usr
... /usr/bin
... /usr/bin/m4
... /usr/bin/prof
... /usr/ccs
... /usr/ccs/bin
... /usr/ccs/bin/m4
... /usr/ccs/bin/prof

charley ## swlist -s /dvd \
ProgSupport.PROG-MIN,r=B.11.31,a=HP-UX_B.11.31_IA/PA,\
v=HP,fr=B.11.31,fa=HP-UX_B.11.31_PA
... ProgSupport.Runtime.PROG-MIN B.11.31 Minimum Programming Tools (PA-RISC)
... /
... /usr
... /usr/bin
... /usr/bin/m4
... /usr/bin/prof
... ...
... /usr/lib/llib-lcurses
... /usr/lib/llib-lcurses.1
... /usr/old
... /usr/old/usr
... /usr/old/usr/lib
... /usr/old/usr/lib/libtermcap.a
... /usr/old/usr/lib/libtermlib.a
... /usr/lib/libtermcap.a
... /usr/lib/libtermlib.a
"The lyf so short, the craft so long to lerne." - Chaucer
OldSchool
Honored Contributor

Re: 11.31 where is libtermcap.a

Glad you finally found it, althought Steven's post (and the referenced website for greenwood) seem to indicate that it should configure and build with the libterm stuff as well.

It may be just as well that you did (eventually) locate it...who know what else you may want to get from the porting centre at wants termcap...

I do wonder why the archive from the porting centre seems to insist on having it, while the original doesn't, but that's an issue for another day
Bob_Vance
Esteemed Contributor

Re: 11.31 where is libtermcap.a

As for 'less'

I just copied the version that I built on 11.23 PArisc and used that on the Itanium 11.31 system.

The source for 'less' that Steve pointed out had issues with terminfo and I didn't feel like debugging them.
I have my own tweaked termcap entries that I carry with me that work for all my own tools, including 'less'.

bv
"The lyf so short, the craft so long to lerne." - Chaucer