LFS 5.1.1: Chapter 6: glibc: make check: inet related error

Ken Fuchs kfuchs at winternet.com
Wed Jun 16 09:23:11 PDT 2004


Execution of "make check" is working fine until (The first two commands
create inet/test-ifaddrs and succeed; the third command executes it and
fails): 

gcc test-ifaddrs.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=2     -I../include -I. -I/sources/glibc-build/inet -I.. -I../libio  -I/sources/glibc-build -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/fl!
 t-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /tools/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1    -o /sources/glibc-build/inet/test-ifaddrs.o -MD -MP -MF /sources/glibc-build/inet/test-ifaddrs.o.dt
test-ifaddrs.c: In function `main':
test-ifaddrs.c:52: warning: inlining failed in call to `addr_string'
test-ifaddrs.c:83: warning: called from here
test-ifaddrs.c:52: warning: inlining failed in call to `addr_string'
test-ifaddrs.c:83: warning: called from here
test-ifaddrs.c:52: warning: inlining failed in call to `addr_string'
test-ifaddrs.c:83: warning: called from here
gcc -nostdlib -nostartfiles -o /sources/glibc-build/inet/test-ifaddrs  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc  /sources/glibc-build/csu/crt1.o /sources/glibc-build/csu/crti.o `gcc --print-file-name=crtbegin.o` /sources/glibc-build/inet/test-ifaddrs.o  -Wl,-rpath-link=/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/linuxthreads /sources/glibc-build/libc.so.6 /sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` /sources/glibc-build/csu/crtn.o
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C   /sources/glibc-build/elf/ld-linux.so.2 --library-path /sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/linuxthreads /sources/glibc-build/inet/test-ifaddrs  > /sources/glibc-build/inet/test-ifaddrs.out
make[2]: *** [/sources/glibc-build/inet/test-ifaddrs.out] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1/inet'
make[1]: *** [inet/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2

The content of file /sources/glibc-build/inet/test-ifaddrs.out is:

Couldn't get any interfaces: Connection refused.

------ The relevant section of inet/test-ifaddrs.c ------

  if (getifaddrs (&ifaces) < 0)
    {
      if (errno != ENOSYS)
        {
          printf ("Couldn't get any interfaces: %s.\n", strerror (errno));
          exit (1);
        }
      /* The function is simply not implemented.  */
      exit (0);
    }

------ retried "make check" ------

This doesn't appear to make or execute anything already done in the first
attempt and appears to skip the failed inet/test-ifaddrs test.

The retried "make check" (no "make clean" executed) succeeds. 

------ My comments ------

The inet/test-ifaddrs test is not retried; it probably would fail again,
since I didn't do anything to correct the problem.

The error "Connection refused" suggests that the getifaddrs() might be
failing due to some missing kernel function.

My host system is stable Debian v3.0r2:

# uname -a
Linux pc01706 2.2.20 #1 Sat Apr 20 11:45:28 EST 2002 i686 unknown

Now I see what may be the problem.  I had a recent power failure and
the system rebooted to the default 2.2.20 kernel rather that the
Debian 2.4.18-5 kernel I installed just prior to starting the
LFS 5.1.1 install.

I had just finished Chapter 5 using the Debian 2.4.18-5 kernel before
the power failure.  Should I restart Chapter 6 entirely, because I was
using a 2.2.x kernel rather than 2.4.x?  I think I could just reboot
to the 2.4.18 kernel and redo the "make check" or just continue where
I left off.  Any suggestions?

Thank you!

Sincerely,

Ken Fuchs <kfuchs at winternet.com>



More information about the lfs-support mailing list