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

Bug#1880: Compile error dpkg-1.0.5.tar.gz

>>>>> "Ian" == Ian Jackson <ian@chiark.chu.cam.ac.uk> writes:

    Ian> In November I wrote:
    >> Jos Vos writes ("Bug#1880: Compile error dpkg-1.0.5.tar.gz"):
    >> > Package: dpkg
    >> >
    >> > I try to compile dpkg-1.0.5, both with GCC 2.5.8 (a.out target) and
    >> > GCC 2.7.0 (ELF target) and in both cases I got:
    >> >
    >> > filesdb.c: In function `sysinfo':
    >> > filesdb.c:30: `__NR_sysinfo' undeclared (first use this function)
    >> > filesdb.c:30: (Each undeclared identifier is reported only once
    >> > filesdb.c:30: for each function it appears in.)
    >> > make[1]: *** [filesdb.o] Error 1
    >> > make[1]: Leaving directory `/var/tmp/dpkg-1.0.5/main'
    >> > make: *** [all] Error 2

This error suggests that Jos has an wrong/obsolete version of <asm/unistd.h>
where __NR_sysinfo is defined (at least in all linux-1.3.*/include/asm-i386
subdirs I currently have access to).

    >> >
    >> > Note: I don't have Debian installed, but I need dpkg to unpack some
    >> > of the Debian packages.
    >> >
    >> > I just did a "./configure" (worked fine) and "make", which gave the
    >> > above result.

So configure should also check for availability of the sysinfo system call.

    >> >
    >> > Thanks for any help.
    >> How am I supposed to use the `sysinfo' system call from an ELF
    >> program ?  Or, from an a.out one for that matter - the system call
    >> exists but doesn't appear in the a.out libc.

The sysinfo(2) man pages states in the BUGS section that there is no prototype
for sysinfo in the DLL 4.4.1 libc; nm libc.a | grep sysinfo shows that there
isn't a sysinfo function in libc5 either.

    Ian> Would the libc maintainer care to comment ?  See also my outstanding
    Ian> report #1607 regarding sysinfo.

I'll forward that one to H.J.Lu if it didn't happen yet. (Have to look into the
bugs db when phone rates drop tonight)

  Siggy (new libc maintainer)

email: bsb@uni-muenster.de           // programmer/*nix admin for hire
       bsb@beck.westfalen.de         \\  Opinions are strictly my own,
       bsb@beck.westfalen.sub.com     \\      everything else is GPLed
voice: +49-251-8619-99                 \\
Mime(RFC1521) encoded messages welcome  \\         http://coming.soon/

Reply to: