This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

intl missing files make check error


Hi. Recently I've been trying to build glibc from tarballs from
http://ftp.gnu.org/gnu/glibc/, working with versions 2.4, 2.5.1, 2.6.1,
2.7 and 2.9. I've found several issues that I didn't find in the glibc
bugzilla or mail archive. Do you want one issue per new message rather
than several?

System: Mandriva 2006 Powerpack, i686, installed kernel 2.6.12, glibc
2.3.5, gcc 4.2.4 (and 4.0.1), gettext 0.17, binutils 2.18, gmp 4.2.4,
mpfr 2.31.

After building several of the versions including 2.4 and 2.9, I found
that "make check" would fail in intl on the following commands:
-Wl,-rpath-link=/home2/bild-lib25/bild:/home2/bild-lib25/bild/math:/home2/bild-lib25/bild/elf:/home2/bild-lib25/bild/dlfcn:/home2/bild-lib25/bild/nss:/home2/bild-lib25/bild/nis:/home2/bild-lib25/bild/rt:/home2/bild-lib25/bild/resolv:/home2/bild-lib25/bild/crypt:/home2/bild-lib25/bild/nptl
/home2/bild-lib25/bild/libc.so.6 /home2/bild-lib25/bild/libc_nonshared.a
-lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `/usr/bin/gcc-4.0.1
--print-file-name=crtend.o` /home2/bild-lib25/bild/csu/crtn.o
/bin/sh -e tst-gettext.sh /home2/bild-lib25/bild/
/home2/bild-lib25/bild/intl/  
/home2/bild-lib25/bild/intl/tst-gettext.mtrace
make[2]: *** [/home2/bild-lib25/bild/intl/tst-gettext.out] Error 1
make[2]: Leaving directory `/home2/bild-lib25/glibc-2.5.1/intl'
make[1]: *** [intl/tests] Error 2
make[1]: Leaving directory `/home2/bild-lib25/glibc-2.5.1'
make: *** [check] Error 2

On looking into the problem, I found that two files were missing from
the intl build folder that should have been copied from the intl source
folder, tst-gettext.sh and de.po

I fixed the problem by writing the following fixcheck.inc file to be
included in the glibc makefile. It can be pasted in, or added as an
include file. I found that running it before "make check" didn't seem to
work. Instead, running "make fixcheck" after running"make check" until
it hits the error and quits fixes the problem so a second "make check"
command succeeds in the intl folder.

fixcheck:
        cp $(srcdir)/intl/tst-gettext.sh intl
        cp $(srcdir)/po/de.po po
        ls intl/tst-gettext.sh
        ls po/de.po
        @echo "See the copied files in the displayed folders?"
        @echo "They're needed for 'make check', but the"
        @echo "included configure and makefile code doesn't"
        @echo "copy them and the check always crashes."

As noted, these files seem to be missing from the intl build folder in
versions 2.4-2.9.

John T


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]