pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
RE: cannot open pkgdb
Why would pkg_* be trying to open shared libraries in a non-existent location?
> Seems to be the pkg_* commands doing it, including pkg_delete when I
> tried to clean up for another run. Here's the strace for that...
>
>
> execve("/usr/pkg/sbin/pkg_delete", ["pkg_delete", "digest"], [/* 25
> vars */]) = 0
> brk(0) = 0x10044000
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
> 1, 0) = 0x48000000
> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
> directory)
> open("/usr/pkg/lib/tls/ppc7400/altivec/libc.so.6", O_RDONLY) = -1
> ENOENT (No such file or directory)
> stat64("/usr/pkg/lib/tls/ppc7400/altivec", 0xbfbc1d48) = -1 ENOENT
> (No such file or directory)
> open("/usr/pkg/lib/tls/ppc7400/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/pkg/lib/tls/ppc7400", 0xbfbc1d48) = -1 ENOENT (No such
> file or directory)
> open("/usr/pkg/lib/tls/altivec/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/pkg/lib/tls/altivec", 0xbfbc1d48) = -1 ENOENT (No such
> file or directory)
> open("/usr/pkg/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> stat64("/usr/pkg/lib/tls", 0xbfbc1d48) = -1 ENOENT (No such file or
> directory)
> open("/usr/pkg/lib/ppc7400/altivec/libc.so.6", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> stat64("/usr/pkg/lib/ppc7400/altivec", 0xbfbc1d48) = -1 ENOENT (No
> such file or directory)
> open("/usr/pkg/lib/ppc7400/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/pkg/lib/ppc7400", 0xbfbc1d48) = -1 ENOENT (No such file
> or directory)
> open("/usr/pkg/lib/altivec/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> stat64("/usr/pkg/lib/altivec", 0xbfbc1d48) = -1 ENOENT (No such file
> or directory)
> open("/usr/pkg/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
> or directory)
> stat64("/usr/pkg/lib", 0xbfbc1d48) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=45572, ...}) = 0
> mmap(NULL, 45572, PROT_READ, MAP_PRIVATE, 3, 0) = 0x48001000
> close(3) = 0
> open("/lib/libc.so.6", O_RDONLY) = 3
> read(3,
> "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\17\345\337@\0\0\00
> 04"..., 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1800900, ...}) = 0
> mmap(0xfe40000, 1520028, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfe40000
> mprotect(0xff9f000, 53248, PROT_NONE) = 0
> mmap(0xffac000, 20480, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16c000) = 0xffac000
> mmap(0xffb1000, 8604, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffb1000
> close(3) = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -
> 1, 0) = 0x4800d000
> mprotect(0xffac000, 16384, PROT_READ) = 0
> mprotect(0xffef000, 4096, PROT_READ) = 0
> munmap(0x48001000, 45572) = 0
> brk(0) = 0x10044000
> brk(0x10065000) = 0x10065000
> open("/usr/pkg/etc/pkg_install.conf", O_RDONLY|O_LARGEFILE) = -1
> ENOENT (No such file or directory)
> open("/var/db/pkg/pkgdb.byfile.db", O_RDWR|O_CREAT|O_LARGEFILE,
> 0644) = 3
> fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
> fstat64(3, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
> read(3, "\0\0051b\0\0\0\3\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0 ", 24) = 24
> fstat64(3, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
> pread64(3, "", 4096, 268114104) = 0
> close(3) = 0
> write(2, "pkg_delete: ", 12pkg_delete: ) = 12
> write(2, "Opening pkgdb failed", 20Opening pkgdb failed) = 20
> write(2, "\n", 1
> ) = 1
> exit_group(1)
>
>
> Looks like something's confused about where libc is supposed to be -
> I have no /usr/pkg/lib at all.
Thanks,
Tim
--
Tim Larson
App Admin, Intercall Production Services
Home |
Main Index |
Thread Index |
Old Index