- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Issue with "less" command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2009 12:20 PM
тАО05-22-2009 12:20 PM
I'm running into an issue w/one of my servers while trying to run the less command.
#less
/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'.
Killed
This a new server and I don't think the less command has been compiled correctly. So I downloaded the tar file and attempted to install it.... Here's what i ran into
#sh configure // everything runs well here
..................
........
checking for regcmp... yes
using regcmp
updating cache ./config.cache
creating ./config.status
creating Makefile
creating defines.h
#he4 #make install // I get errors, go down
test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status
touch stamp-h
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 main.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 screen.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 brac.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 ch.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 charset.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 cmdbuf.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 command.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 decode.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 edit.c
gcc -I. -c -DBINDIR=\"/usr/local/bin\" -DSYSDIR=\"/usr/local/etc\" -g -O2 filename.c
In file included from /usr/include/sys/stat.h:36,
from filename.c:41:
/usr/include/sys/_stat_body.h:63: error: parse error before "blksize_t"
/usr/include/sys/_stat_body.h:66: error: parse error before ':' token
/usr/include/sys/_stat_body.h:68: error: parse error before ':' token
/usr/include/sys/_stat_body.h:69: error: parse error before ':' token
/usr/include/sys/_stat_body.h:70: error: parse error before ':' token
/usr/include/sys/_stat_body.h:88: error: parse error before '}' token
filename.c: In function `is_dir':
filename.c:925: error: storage size of 'statbuf' isn't known
filename.c: In function `bad_file':
filename.c:970: error: storage size of 'statbuf' isn't known
filename.c: In function `filesize':
filename.c:1002: error: storage size of 'statbuf' isn't known
*** Error exit code 1
What do you think??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2009 12:48 PM
тАО05-22-2009 12:48 PM
SolutionThe HP-UX Porting and Archive Centre, has ready-made .depots for supported HP-UX versions and pre-modified source code for compiling on older, unsupported versions:
http://hpux.connect.org.uk/
When installing depots from the Porting Archive, you should pay attention to the "Run-Time Dependencies" field on the package page. Before installing the package, you should make sure that all the run-time dependency packages are also installed, or the program most likely won't run. Note that the dependency packages themselves may have their own dependencies, and so on...
By the way, your original error message (Unable to find library 'libtermcap.so') looks exactly like what happens if run-time dependencies are ignored.
If you have to compile from the Porting Archive's sources, pay attention to "Build-time Dependencies", respectively.
If you get the original source from the author's website (in this case, http://www.greenwoodsoftware.com/less/download.html ), this does not free you from build-time dependencies: instead, you must read the READMEs and other documentation files included in the source package to find out what the dependencies are, and then figure out yourself how to fulfill them.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2009 12:51 PM
тАО05-22-2009 12:51 PM
Re: Issue with "less" command
> less command has been compiled correctly.
The same may be true about GCC. It's not
unusual for a defective GCC installation to
cause complaints about the system header
files (like, say,
"/usr/include/sys/_stat_body.h").
Potentially useful info (as always):
uname -a
gcc --version (or -V?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2009 02:17 PM
тАО05-22-2009 02:17 PM
Re: Issue with "less" command
Right. You also might want to look at the lines in error for some evil macro.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 12:45 PM
тАО06-02-2009 12:45 PM
Re: Issue with "less" command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2009 04:06 PM
тАО06-02-2009 04:06 PM
Re: Issue with "less" command
This output my machine:
#ldd `which less`
=>
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libgen.2 => /usr/lib/libgen.2
#
Regards,
Michael Schon