man: can't resolve symbol '__ctype_b_loc'

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
Thireus
DD-WRT User


Joined: 12 Mar 2009
Posts: 93

PostPosted: Mon Mar 28, 2011 19:59    Post subject: man: can't resolve symbol '__ctype_b_loc' Reply with quote
Hi all,

I've installed man on my router:

Code:
ipkg-opt install man
Installing man (1.6f-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/man_1.6f-1_mipsel.ipk
Installing groff (1.19.2-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/groff_1.19.2-2_mipsel.ipk
Installing less (436-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/less_436-1_mipsel.ipk
Configuring groff
Configuring less
update-alternatives: Linking //opt/bin/less to /opt/bin/less-less
Configuring man
Successfully terminated.


But it fails to read any manpage:

Code:
# man man
man: can't resolve symbol '__ctype_b_loc'


Does anyone know why is this happening?

_________________
www.DareYourMind.net
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10143

PostPosted: Mon Mar 28, 2011 20:02    Post subject: Reply with quote
Missing symbols means you're not using libraries that have all the functions needed by the app. The libraries included in dd-wrt are pruned of unused functions to save space. You probably just need to get a full copy of ulibc.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Thireus
DD-WRT User


Joined: 12 Mar 2009
Posts: 93

PostPosted: Mon Mar 28, 2011 20:13    Post subject: Reply with quote
Thanks for your quick reply and explanation :)

But I tried to Google ulibc for more information about this lib and I found nothing interesting.

Can you please tell me more about how to get a full copy of this lib, and where it is located in ddwrt.

_________________
www.DareYourMind.net
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Mar 28, 2011 22:29    Post subject: Reply with quote
Code:
# man man
man: can't resolve symbol '_dl_app_init_array'
# export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib
# man man
No manual entry for man
export LD_LIBRARY_PATH=/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)


Last edited by frater on Mon Mar 28, 2011 22:35; edited 1 time in total
Thireus
DD-WRT User


Joined: 12 Mar 2009
Posts: 93

PostPosted: Mon Mar 28, 2011 22:34    Post subject: Reply with quote
frater wrote:
Code:
# man man
man: can't resolve symbol '_dl_app_init_array'
# export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib
# man man
No manual entry for man


Haaaaaaaa yes! Very Happy thanks a lot frater!!! Smile

_________________
www.DareYourMind.net
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Mon Mar 28, 2011 22:36    Post subject: Reply with quote
Beware to set it back or you may run into problems with apps that need DD-WRT's uclibc
_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Thireus
DD-WRT User


Joined: 12 Mar 2009
Posts: 93

PostPosted: Mon Mar 28, 2011 22:39    Post subject: Reply with quote
frater wrote:
Beware to set it back or you may run into problems with apps that need DD-WRT's uclibc


Ho, okay, I was about to set it up by default. Thanks for the advice, I'll thus be careful with it.

_________________
www.DareYourMind.net
JuiciPackets
DD-WRT User


Joined: 26 Jan 2011
Posts: 60

PostPosted: Mon Apr 11, 2011 17:45    Post subject: Reply with quote
frater wrote:
Code:
# man man
man: can't resolve symbol '_dl_app_init_array'
# export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib
# man man
No manual entry for man
export LD_LIBRARY_PATH=/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib


Frater, I installed OTRW yesterday and man & man-pages today, adjusted the LD_LIBRARY_PATH as you mentioned here but I now run into a different error:

Code:

root@DD-WRT:~# echo $LD_LIBRARY_PATH
/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib
root@DD-WRT:~# export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib
root@DD-WRT:~# echo $LD_LIBRARY_PATH
/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib
root@DD-WRT:~# man man
sh: nroff: Permission denied
(END)


BTW:
Code:

root@DD-WRT:~# ls -l `which nroff`
-rwxr-xr-x 1 root root 2357 May 21  2010 /opt/bin/nroff
root@DD-WRT:~# ls -l `which groff`
-rwxr-xr-x 1 root root 93844 May 21  2010 /opt/bin/groff


At the same time:

Code:

root@DD-WRT:~# echo $LD_LIBRARY_PATH
/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib
root@DD-WRT:~#
root@DD-WRT:~# nroff -man /opt/man/man1/man.1 | head
man(1)                                                                  man(1)



NAME
       man - format and display the on-line manual pages

SYNOPSIS
       man  [-acdfFhkKtwW]  [--path]  [-m system] [-p string] [-C config_file]
       [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S  section_list]
root@DD-WRT:~#
root@DD-WRT:~#
root@DD-WRT:~# export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib
root@DD-WRT:~#
root@DD-WRT:~# nroff -man /opt/man/man1/man.1 | head
/opt/bin/nroff: line 97: groff: Permission denied
root@DD-WRT:~#



Any ideas?

Cheers!
dgies
DD-WRT Novice


Joined: 10 May 2011
Posts: 1

PostPosted: Tue May 10, 2011 4:29    Post subject: Reply with quote
I had the same problem and discovered that manually invoking groff worked fine, as in
Code:
groff -mtty-char -Tascii  -man "/opt/man/man1/man.1"

It also works if you do
Code:
sudo man man

I don't know enough about linux executable perms but there's some sort of permission problem with man.
torred1024
DD-WRT Novice


Joined: 11 Dec 2011
Posts: 1

PostPosted: Sun Dec 11, 2011 0:37    Post subject: FYI Reply with quote
Just an FYI if anyone else looks at this. This is an easier way of doing it:

alias man='LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib:/lib:/usr/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib sudo man'

You can provide any environment variables as a pretext to any command, and it will only apply to that specific execution of that command.
JuiciPackets
DD-WRT User


Joined: 26 Jan 2011
Posts: 60

PostPosted: Sun Dec 11, 2011 2:03    Post subject: Reply with quote
sudo has no place for a simple man! On top of this, I was already running as root (see the # in the prompts). Sorry I can't test anything right now - my router is bricked Very Happy
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
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 can attach files in this forum
You can download files in this forum