[...] make subdir=posix -C posix ..=../ subdir_lib make[2]: Entering directory `/tmp/glibc-2.4/posix' make[2]: Leaving directory `/tmp/glibc-2.4/posix' make[2]: Entering directory `/tmp/glibc-2.4/posix' gcc ../sysdeps/posix/getaddrinfo.c -c -std=gnu99 -O3 -Wall -Wbad-function-cast -Wcast-qual -Wcomment -Wcomments -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wsign-compare -Wtrigraphs -Wwrite-strings -fmerge-all-constants -march=i686 -s -Wstrict-prototypes -mpreferred-stack-boundary=2 -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES -DRESOLVER -fexceptions -DUSE_NSCD -I../include -I/tmp/glibc-2.4/build/posix -I/tmp/glibc-2.4/build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /tmp/glibc-2.4/build/posix/getaddrinfo.o -MD -MP -MF /tmp/glibc-2.4/build/posix/getaddrinfo.o.dt -MT /tmp/glibc-2.4/build/posix/getaddrinfo.o In file included from ../string/string.h:414, from ../include/string.h:49, from ../sysdeps/i386/i686/hp-timing.h:24, from ../nptl/descr.h:28, from ../nptl/sysdeps/i386/i686/../tls.h:105, from ../nptl/sysdeps/i386/i686/tls.h:34, from ../include/tls.h:6, from ../include/errno.h:22, from ../sysdeps/posix/getaddrinfo.c:39: ../sysdeps/i386/i486/bits/string.h: In function `__memcpy_g': ../sysdeps/i386/i486/bits/string.h:139: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `memmove': ../sysdeps/i386/i486/bits/string.h:160: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h:170: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `memcmp': ../sysdeps/i386/i486/bits/string.h:195: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h:196: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `memchr': ../sysdeps/i386/i486/bits/string.h:450: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__memrchr': ../sysdeps/i386/i486/bits/string.h:491: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__rawmemchr': ../sysdeps/i386/i486/bits/string.h:528: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strlen_g': ../sysdeps/i386/i486/bits/string.h:563: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strcpy_g': ../sysdeps/i386/i486/bits/string.h:648: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__mempcpy_by2': ../sysdeps/i386/i486/bits/string.h:771: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__mempcpy_byn': ../sysdeps/i386/i486/bits/string.h:798: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__stpcpy_g': ../sysdeps/i386/i486/bits/string.h:822: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strncpy_by4': ../sysdeps/i386/i486/bits/string.h:864: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strncpy_by2': ../sysdeps/i386/i486/bits/string.h:894: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strncpy_byn': ../sysdeps/i386/i486/bits/string.h:922: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strcat_c': ../sysdeps/i386/i486/bits/string.h:982: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strcat_g': ../sysdeps/i386/i486/bits/string.h:1024: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strcmp_gg': ../sysdeps/i386/i486/bits/string.h:1192: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h:1193: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strncmp_g': ../sysdeps/i386/i486/bits/string.h:1236: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h:1237: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strchr_c': ../sysdeps/i386/i486/bits/string.h:1272: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strchr_g': ../sysdeps/i386/i486/bits/string.h:1297: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strchrnul_c': ../sysdeps/i386/i486/bits/string.h:1331: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strchrnul_g': ../sysdeps/i386/i486/bits/string.h:1356: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strrchr_c': ../sysdeps/i386/i486/bits/string.h:1400: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strrchr_g': ../sysdeps/i386/i486/bits/string.h:1423: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strcspn_c1': ../sysdeps/i386/i486/bits/string.h:1520: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strspn_c1': ../sysdeps/i386/i486/bits/string.h:1639: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h: In function `__strspn_cg': ../sysdeps/i386/i486/bits/string.h:1668: warning: cast discards qualifiers from pointer target type ../sysdeps/i386/i486/bits/string.h:1669: warning: cast discards qualifiers from pointer target type In file included from ../include/pthread.h:1, from ../nptl/../nptl_db/thread_db.h:26, from ../nptl/descr.h:33, from ../nptl/sysdeps/i386/i686/../tls.h:105, from ../nptl/sysdeps/i386/i686/tls.h:34, from ../include/tls.h:6, from ../include/errno.h:22, from ../sysdeps/posix/getaddrinfo.c:39: ../nptl/sysdeps/pthread/pthread.h: At top level: ../nptl/sysdeps/pthread/pthread.h:563: warning: no previous prototype for '__pthread_cleanup_routine' ../sysdeps/posix/getaddrinfo.c:64:26: libidn/idna.h: No such file or directory ../sysdeps/posix/getaddrinfo.c: In function `gaih_inet': ../sysdeps/posix/getaddrinfo.c:371: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c:445: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c:502: error: `IDNA_ALLOW_UNASSIGNED' undeclared (first use in this function) ../sysdeps/posix/getaddrinfo.c:502: error: (Each undeclared identifier is reported only once ../sysdeps/posix/getaddrinfo.c:502: error: for each function it appears in.) ../sysdeps/posix/getaddrinfo.c:504: error: `IDNA_USE_STD3_ASCII_RULES' undeclared (first use in this function) ../sysdeps/posix/getaddrinfo.c:508: error: `IDNA_SUCCESS' undeclared (first use in this function) ../sysdeps/posix/getaddrinfo.c:510: error: `IDNA_MALLOC_ERROR' undeclared (first use in this function) ../sysdeps/posix/getaddrinfo.c:512: error: `IDNA_DLOPEN_ERROR' undeclared (first use in this function) ../sysdeps/posix/getaddrinfo.c:552: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c:1059: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c: In function `rfc3484_sort': ../sysdeps/posix/getaddrinfo.c:1404: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c:1406: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c:1424: warning: cast discards qualifiers from pointer target type ../sysdeps/posix/getaddrinfo.c:1426: warning: cast discards qualifiers from pointer target type make[2]: *** [/tmp/glibc-2.4/build/posix/getaddrinfo.o] Error 1 make[2]: Leaving directory `/tmp/glibc-2.4/posix' make[1]: *** [posix/subdir_lib] Error 2 make[1]: Leaving directory `/tmp/glibc-2.4' make: *** [all] Error 2
*** This bug has been marked as a duplicate of 333 ***
Isn't the libidn add-on working ?
The glibc-libidn-2.4 archive extracts to glibc-libidn-2.4/ whereas earlier versions extracted to plain libidn/. The build process doesn't take that into account. Just rename glibc-libidn-2.4 before building and it should work.
This problem is not fixed in glibc 2.5
Stop reopening the bug. Bugzilla is not for compilation problems which are all of your own doing. *** This bug has been marked as a duplicate of 333 ***
So what is to use for these problems please ?
This real problem is not fixed in 2.7
Same problem with 2.10.1 Why can't this be fixed ? The glibc-libidn directory is detected by the configure script, so why not saving the name and give it to the relevant files ?