[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Further development



Matthew Garrett wrote:

On Wed, Jan 16, 2002 at 08:05:26PM +0100, Fabbione wrote:> You need to do ktrace command (ie, ktrace apt-get foo) and then run ktruss
on the ktrace.out that's produced. I don't think it's compiled with
debugging symbols, so the core file probably isn't much use.


And here is the output:

debsd:/# ktruss ktrace.out
                                                   = 0
ktruss:  17846 ktruss   emul(netbsd)
exec of 'ktrace.out' failed 17846 ktruss execve("/sbin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT : 17846 ktruss execve("/usr/sbin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT
No such file or directory
17846 ktruss execve("/bin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT 17846 ktruss execve("/usr/bin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT 17846 ktruss execve("/usr/pkg/sbin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT 17846 ktruss execve("/usr/pkg/bin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT 17846 ktruss execve("/usr/X11R6/bin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT 17846 ktruss execve("/usr/local/sbin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT 17846 ktruss execve("/usr/local/bin/ktrace.out", 0xbfbfdc8c, 0xbfbfdc94) Err#2 ENOENT
 17846 ktruss   write(0x2, 0xbfbfd53c, 0x8)        = 8
       "ktruss: "
 17846 ktruss   write(0x2, 0xbfbfd550, 0x1b)       = 27
       "exec of 'ktrace.out' failed"
 17846 ktruss   write(0x2, 0xbfbfd534, 0x2)        = 2
       ": "
 17846 ktruss   issetugid                          = 0
 17846 ktruss   open("/usr/share/nls/C/libc.cat", 0, 0xbfbfdba0) = 3
 17846 ktruss   __fstat13(0x3, 0xbfbfd720)         = 0
 17846 ktruss   mmap(0, 0xf57, 0x1, 0x1, 0x3, 0, 0, 0) = 1208352768
 17846 ktruss   close(0x3)                         = 0
 17846 ktruss   munmap(0x48060000, 0xf57)          = 0
 17846 ktruss   write(0x2, 0xbfbfd538, 0x1a)       = 26
       "No such file or directory\n"
 17846 ktruss   exit(0x1)
debsd:/#



I did patch apt, mostly with stuff from the filk patches in order to get
it to believe it was on a Debian system. By the looks of it, though, that
wasn't one of the files I patched. I've stuck my source at
http://www.srcf.ucam.org/~mjg59/debian-netbsd/apt/ if you want to give
that a go. I'll try rebuilding it myself now.


I get exactly the same error with your source code.
and looking at gcc I noticed:

debsd:/# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-netbsdelf1.5/2.95.4/specs
gcc version 2.95.4 20010319 (prerelease)
debsd:/#

While I try to compile I get something like:

i386-unknown-netbsdelf1.5.2

so this might be one of the reason. hounstly just a guess

PS last question: does dpkg-buildpackage works????



hmmmm any special setup is needed??? it keeps complain about


debsd:/usr/src/apt-0.5.4# dpkg-buildpackage unable to get login information for username "fabbione" at /usr/lib/dpkg/controllib.pl line 59.
Compilation failed in require at /usr/bin/dpkg-parsechangelog line 15.
dpkg-buildpackage: unable to determine source package
debsd:/usr/src/apt-0.5.4# and I also update files like passwd and group in the chroot env. Created an account and similar......

Sorry if I might be a be annoyng but I really like to try new things and this might become soon a FAQ....;)

Thanks
Fabio

--
Debian GNU/Linux Unstable Kernel 2.4.15aa1
fabbione on irc.atdot.it #coredump #kchat | fabbione@fabbione.net



Reply to: