Michael Schwendt wrote:
On Wed, 09 Jul 2008 14:37:59 -0700, Dan Thurman wrote:
> Dan Thurman wrote:
> >
> > I tried to use the man pages but it seems that it is either
> > missing, broken, or not initialized?
> >
> >
> > Doing:
> > + Apropos grub
> >
> > shows a list of grub man pages available but:
> > + man grub
> > says it is missing.
> >
> > Doing:
> > + man man
> > says it is also missing
> >
> > What am I doing wrong? Do I have to reinitialize the
> > man pages database or something like I used to do in
> > ages past?
> >
> > Thanks!
> > Dan
> >
> Ugh. I guess it does not work as a su - or su -l root user.
> That is really odd. But a su works, just not with the - or
> -l option.
That's not normal.
What do you get for "strace man -k grub" and "strace man man"?
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
=============================================================
Below is trace output in su - or su -l environment when man pages
fail to find anything.
=============================================================
# su -l
# strace man -k grub
execve("/usr/bin/man", ["man", "-k", "grub"], [/* 67 vars */]) = 0
brk(0) = 0x8f09000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb80a1000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/alliance/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/alliance/lib/tls/i686/sse2", 0xbfa9e430) = -1 ENOENT
(No such file or directory)
open("/usr/lib/alliance/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/tls/i686", 0xbfa9e430) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/tls/sse2", 0xbfa9e430) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/tls", 0xbfa9e430) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/i686/sse2", 0xbfa9e430) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/i686", 0xbfa9e430) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/sse2", 0xbfa9e430) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/alliance/lib", {st_mode=S_IFDIR|0755, st_size=12288,
...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=314610, ...}) = 0
mmap2(NULL, 314610, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb8054000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\327\247\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1758468, ...}) = 0
mmap2(0xa67000, 1476176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xa67000
mmap2(0xbca000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x163) = 0xbca000
mmap2(0xbcd000, 9808, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbcd000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8053000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb80536c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xbca000, 8192, PROT_READ) = 0
mprotect(0xa63000, 4096, PROT_READ) = 0
munmap(0xb8054000, 314610) = 0
brk(0) = 0x8f09000
brk(0x8f2a000) = 0x8f2a000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=79366688, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e53000
close(3) = 0
getuid32() = 0
geteuid32() = 0
getgid32() = 0
getegid32() = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
open("/etc/man.config", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4907, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb80a0000
read(3, "#\n# Generated automatically from"..., 4096) = 4096
brk(0x8f4b000) = 0x8f4b000
read(3, "3:3p:4:5:6:7:9:0p:n:l:p:o:1x:2x:"..., 4096) = 811
read(3, "", 4096) = 0
rt_sigaction(SIGINT, {0x804f880, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {0x804f880, [INT], SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD,
parent_tidptr=0xbfa9ead4) = 18790
waitpid(18790, grub (rpm) - GRUB - the Grand Unified Boot
Loader.
grub [] (8) - install - install GRUB on your drive
grub [] (8) - md5-crypt - Encrypt a password in MD5 format
grub [] (8) - terminfo - Generate a terminfo command from
a terminfo name
grub [] (8) - the grub shell
grubby [] (8) - command line tool for configuring grub,
lilo, and elilo
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 18790
rt_sigaction(SIGINT, {0x804f880, [INT], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGINT, {SIG_DFL}, {0x804f880, [INT], SA_RESTART}, 8) = 0
exit_group(0) = ?
======================================================================
Below is trace output in su login (without the - or -l option) and an
environment
where man pages work.
======================================================================
# su
# strace man -k grub
execve("/usr/bin/man", ["man", "-k", "grub"], [/* 85 vars */]) = 0
brk(0) = 0x814d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8043000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/alliance/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/alliance/lib/tls/i686/sse2", 0xbfa3f870) = -1 ENOENT
(No such file or directory)
open("/usr/lib/alliance/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/tls/i686", 0xbfa3f870) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/tls/sse2", 0xbfa3f870) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/tls", 0xbfa3f870) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/i686/sse2", 0xbfa3f870) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/i686", 0xbfa3f870) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/sse2", 0xbfa3f870) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/alliance/lib", {st_mode=S_IFDIR|0755, st_size=12288,
...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=314610, ...}) = 0
mmap2(NULL, 314610, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ff6000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\327\247\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1758468, ...}) = 0
mmap2(0xa67000, 1476176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xa67000
mmap2(0xbca000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x163) = 0xbca000
mmap2(0xbcd000, 9808, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbcd000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff5000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ff56c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xbca000, 8192, PROT_READ) = 0
mprotect(0xa63000, 4096, PROT_READ) = 0
munmap(0xb7ff6000, 314610) = 0
brk(0) = 0x814d000
brk(0x816e000) = 0x816e000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=79366688, ...}) = 0# strace
man -k grub
execve("/usr/bin/man", ["man", "-k", "grub"], [/* 85 vars */]) = 0
brk(0) = 0x814d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8043000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/alliance/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/alliance/lib/tls/i686/sse2", 0xbfa3f870) = -1 ENOENT
(No such file or directory)
open("/usr/lib/alliance/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/tls/i686", 0xbfa3f870) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/tls/sse2", 0xbfa3f870) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/tls", 0xbfa3f870) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/alliance/lib/i686/sse2", 0xbfa3f870) = -1 ENOENT (No
such file or directory)
open("/usr/lib/alliance/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/i686", 0xbfa3f870) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/alliance/lib/sse2", 0xbfa3f870) = -1 ENOENT (No such
file or directory)
open("/usr/lib/alliance/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/alliance/lib", {st_mode=S_IFDIR|0755, st_size=12288,
...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=314610, ...}) = 0
mmap2(NULL, 314610, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ff6000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\327\247\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1758468, ...}) = 0
mmap2(0xa67000, 1476176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xa67000
mmap2(0xbca000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x163) = 0xbca000
mmap2(0xbcd000, 9808, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xbcd000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff5000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ff56c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xbca000, 8192, PROT_READ) = 0
mprotect(0xa63000, 4096, PROT_READ) = 0
munmap(0xb7ff6000, 314610) = 0
brk(0) = 0x814d000
brk(0x816e000) = 0x816e000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=79366688, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7df5000
close(3) = 0
getuid32() = 0
geteuid32() = 0
getgid32() = 0
getegid32() = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
open("/etc/man.config", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4907, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8042000
read(3, "#\n# Generated automatically from"..., 4096) = 4096
brk(0x818f000) = 0x818f000
read(3, "3:3p:4:5:6:7:9:0p:n:l:p:o:1x:2x:"..., 4096) = 811
read(3, "", 4096) = 0
rt_sigaction(SIGINT, {0x804f880, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {0x804f880, [INT], SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD,
parent_tidptr=0xbfa3ff14) = 18592
waitpid(18592, grub (rpm) - GRUB - the Grand Unified Boot
Loader.
grub [] (8) - install - install GRUB on your drive
grub [] (8) - md5-crypt - Encrypt a password in MD5 format
grub [] (8) - terminfo - Generate a terminfo command from
a terminfo name
grub [] (8) - the grub shell
grubby [] (8) - command line tool for configuring grub,
lilo, and elilo
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 18592
rt_sigaction(SIGINT, {0x804f880, [INT], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGINT, {SIG_DFL}, {0x804f880, [INT], SA_RESTART}, 8) = 0
exit_group(0) = ?
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7df5000
close(3) = 0
getuid32() = 0
geteuid32() = 0
getgid32() = 0
getegid32() = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
open("/etc/man.config", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4907, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8042000
read(3, "#\n# Generated automatically from"..., 4096) = 4096
brk(0x818f000) = 0x818f000
read(3, "3:3p:4:5:6:7:9:0p:n:l:p:o:1x:2x:"..., 4096) = 811
read(3, "", 4096) = 0
rt_sigaction(SIGINT, {0x804f880, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {0x804f880, [INT], SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD,
parent_tidptr=0xbfa3ff14) = 18592
waitpid(18592, grub (rpm) - GRUB - the Grand Unified Boot
Loader.
grub [] (8) - install - install GRUB on your drive
grub [] (8) - md5-crypt - Encrypt a password in MD5 format
grub [] (8) - terminfo - Generate a terminfo command from
a terminfo name
grub [] (8) - the grub shell
grubby [] (8) - command line tool for configuring grub,
lilo, and elilo
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 18592
rt_sigaction(SIGINT, {0x804f880, [INT], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigaction(SIGINT, {SIG_DFL}, {0x804f880, [INT], SA_RESTART}, 8) = 0
exit_group(0) = ?
It appears that the alliance package has messed up the man pages?
Clearly there
is an alliance directory with it's man pages but perhaps they are using
a directory
path with a missing /man sibdirectory? I will look into this further to
see where
or why the /usr/lib/alliance directory is defined in the man search path.
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list