Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 18:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
less 4.58, Powerful CLI Text Viewer
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Sat 27 Apr 2013, 00:55    Post subject:  

musher0 wrote:
Just with my focus...


Do you actually try to convince us that you're not an industrial robot?? Laughing Laughing Laughing

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Sat 27 Apr 2013, 01:59    Post subject:  

Hi again musher0
I renamed the original /usr/bin/less to less-old, it is a link pointing to /bin/busybox.

I still get a message after running less in a urxvt window:
Quote:
# less --help
less: Symbol `ospeed' has different size in shared object, consider re-linking


There is no file named ospeed, but when I search with pfind for the standalone word ospeed in text, the search give two results: /bin/busybox and /bin/stty.

Do you know what this is?

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4332
Location: Gatineau (Qc), Canada

PostPosted: Sat 27 Apr 2013, 11:37    Post subject:  

Hi, bzzt, bzzt, Tallboy.

No idea, bzzt, bzzt. Laughing

musher0

PS. There are mentions here:
http://www.info.com/searchw?qkw=ospeed&qcat=web&q=&qhqn=&KW=
Related to perl or tput ? I am afraid I can be of no help.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Sat 27 Apr 2013, 13:41    Post subject:  

Something is overwriting ncurses ospeed, so less (and probably other programs as well) raise that error.
If you have installed Mono in your system, may have that problem.

_________________


Last edited by GustavoYz on Sat 27 Apr 2013, 18:44; edited 1 time in total
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Sat 27 Apr 2013, 15:10    Post subject:  

Thank you for that info, GustavoYz
I don't find Mono in my system.

Message: Symbol `ospeed' has different size in shared object, consider re-linking

I removed the original less symlink that pointed to busybox, could that be a clue? (the same message came when I just renamed the link)

What does ospeed do?

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Sat 27 Apr 2013, 18:43    Post subject:  

I wrote libc previously, my mistake, meant ncurses.
I think the problem is related to different version of ncurses between the compiled and running system (or other libraries that may point to it).
Unlinking the BusyBox's less isnt related, as the worse that could possible happen is that less wont work anymore.
ospeed is one of the routines that queries termcap/terminfo database, and it belongs to ncurses (termcap/terminfo are used to declare terminal features according to $TERM value).
Damn, if Mono-related, would be easier to fix...

_________________

Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Sat 27 Apr 2013, 21:40    Post subject:  

Found it!

tgetnum(3) - Linux man page

Name
tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs - direct curses interface to the terminfo capability database

The variable ospeed is set by ncurses in a system-specific coding to reflect the terminal speed.

External variables are provided for support of certain termcap applications. However, termcap applications' use of those variables is poorly documented, e.g., not distinguishing between input and output. In particular, some applications are reported to declare and/or modify ospeed.

I have always used less, so the question is: Should I ignore the message?

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 897
Location: .ar

PostPosted: Sat 27 Apr 2013, 22:46    Post subject:  

Is less working fine anyway?
What happens if the -d switch is used?

_________________

Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4332
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Dec 2013, 16:42    Post subject:  

Hello, all.

This new compile of less 458 seems to have resolved the ospeed issue reported
above by TallBoy. Smile

Please note that ncurses programs and libs as well as libtinfo are still needed. However,
I believe they are present in most newer Puppies, such as UpupRaring-3.9.9.2. Let me
know if you need a companion pet package containing those libraries: I'll prepare and
upload one.

Enjoy! BFN.

musher0
~~~~~~~~~~~~
PS. For the true connoisseurs... This time, I compiled with
Code:
./configure --prefix=/usr --sysconfdir=/etc --with-regex=auto
less-458rev.pet
Description  New compile solves bug. ncurses and libtinfo still needed, as in previous versions.
pet

 Download 
Filename  less-458rev.pet 
Filesize  108.48 KB 
Downloaded  164 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4332
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Dec 2013, 17:51    Post subject:  

Hello again, folks.

The attached pet package provides links and a script to view any true text file in less
by right-click. It also replaces the < defaulttextviewer > file in /usr/local/bin; if you don't
like it, restoration instructions are provided within the new executable.

Enjoy! BFN.

musher0
less-458rev_companion.pet
Description 
pet

 Download 
Filename  less-458rev_companion.pet 
Filesize  22.61 KB 
Downloaded  164 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Fri 03 Jan 2014, 08:00    Post subject:  

I have been away for some time, so I have not had the opportunity to say: Thank you, musher0!
And I wish you a happy new year!

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Fri 03 Jan 2014, 08:10    Post subject:  

It obviously still need libtinfo.so.5, so I just repeat this post...

tallboy wrote:
Hi musher0
I downloaded less_458 to my LupuPlus_5.2.8. As you mentioned, the existing /usr/bin/less was a link to busybox.

Less only flashed on the screen for a fraction of a second when I tried it.

Code:
# less my-documents/growisofs.txt
less: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory


tallboy


I have ncurses installed, is this the correct version needed?
cursepic.jpg
 Description   
 Filesize   33.98 KB
 Viewed   138 Time(s)

cursepic.jpg


_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4332
Location: Gatineau (Qc), Canada

PostPosted: Fri 03 Jan 2014, 08:48    Post subject:  

Hi, tallboy.

You're welcome, and Happy New Year to you too, and to your family!

Attached is the "ncurses" listing that I have...

Also, when I do
Code:
ldd less

only libtinfo.so.5 seems necessary.

Hm... maybe this Puppy has too many "curses"... Wink

But try the new compile of less if you need it. You'll never know until you try it! Smile
The basic "ncurses" library seems to be the same on both our Puppies.

BFN.
ncurses-lib.jpg
 Description   
 Filesize   46.27 KB
 Viewed   138 Time(s)

ncurses-lib.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Keef


Joined: 20 Dec 2007
Posts: 646
Location: Staffordshire

PostPosted: Fri 03 Jan 2014, 09:50    Post subject:  

A little info on the libtinfo thing:
http://www.cyberspice.org.uk/blog/tag/libtinfo/

This is the important bit:
Code:
cd /usr/lib
 ln -s libncurses.so.5 libtinfo.so.5
 ln -s libtinfo.so.5 libtinfo.so


musher0

New version works fine for me, complete with bi-lingual menu entries! This one is a keeper I think.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4332
Location: Gatineau (Qc), Canada

PostPosted: Fri 03 Jan 2014, 12:26    Post subject:  

Keef wrote:
A little info on the libtinfo thing:
http://www.cyberspice.org.uk/blog/tag/libtinfo/

This is the important bit:
Code:
cd /usr/lib
 ln -s libncurses.so.5 libtinfo.so.5
 ln -s libtinfo.so.5 libtinfo.so


musher0

New version works fine for me, complete with bi-lingual menu entries! This one is a keeper I think.


Hi, Keef.

My pleasure!

Also, thanks for enlightening us about the possible confusion in this case between
libncurses and libtinfo.

BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0856s ][ Queries: 13 (0.0068s) ][ GZIP on ]