I can not build bind-8.8.2_P5-1.src.rpm on RedHat 5.2 i386 (gcc 2.7.2.3, kernel 2.2.13) platform. make[2]: Entering directory `/usr/src/redhat/BUILD/bind-8.2.2_P5/src/bin/nslookup' Lot of link errors like this : xxx.o: In function `yyy_yyy': xxx.o(.text+0x56f): undefined reference to `__p_class' xxx.o(.text+0x57e): undefined reference to `__p_type' xxx.o(.text+0x5a6): undefined reference to `__p_time' xxx.o(.text+0xb2d): undefined reference to `__p_time' xxx.o(.text+0xb50): undefined reference to `__p_time' xxx.o(.text+0xb70): undefined reference to `__p_time' xxx.o(.text+0xb93): undefined reference to `__p_time' xxx.o(.text+0xff4): undefined reference to `__p_type' xxx.o(.text+0x102b): undefined reference to `__p_time' make[2]: Leaving directory `/usr/src/redhat/BUILD/bind-8.2.2_P5/src/bin/nslookup' make[1]: *** [nslookup] Error 2 The bind-8.2.2_P3-0.5.2.i386 are buit OK. Could you make RawHide's bind-8.2.2_P5 more platform-independent ?
Remove the glibc 2.1 patches from the .spec file and it will most probably work. Raw Hide RPMs will generally compile and work on Raw Hide - some patches conflict with old releases.
I removed glibc2.1 patch from bind.spec and got the same error. :-( As a result, I compiled bind-8.2.2_P5 (on my RedHat 5.2 i386) from pure sources (from ftp://ftp.isc.org) WITHOUT any RedHat's patches and got fully working bind... I have not RedHat 6.1 (glibc2.1 based) now, but I expect, pure sources will work. Please, check you bind's pathes.
YES! I found it! rawhide/SRPMS/SRPMS/bind-8.2.2_P5-1.src.rpm See: SPECS/bind.spec:78 substitution of $RPM_OPT_FLAGS SOURCES/bind-8.1.2-rh.patch:5 $RPM_OPT_FLAGS As a result, during compilaion (rpm -bc) on my system : $RPM_OPT_FLAGS = '-O2 -fno-strenght-reduce' But pure bind's sources are compiled with options : '-O -g' . I do not know why, but 'gcc -O2 -fno-strenght-reduce' on RedHat 5.2 i386 compiles bind incorrectly. At the same time 'gcc -O -g' works fine. Could you change gcc's options in future bind-8.2.2_P2-2 ?