net-libs/adns-1.0 failed to compile while using i686-pc-linux-gnu-3.4.2. It compiled using i686-pc-linux-gnu-3.3.4 Reproducible: Always Steps to Reproduce: 1.set compiler to gcc 3.4.2 2.emerge adns 3. Actual Results: adns failed to compile. Expected Results: It should have compiled. set -e; for d in src dynamic client regress; do make -C $d all; done make[1]: Entering directory `/var/tmp/portage/adns-1.0/work/adns-1.0/src' gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o types.o types.c gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o event.o event.c gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o query.o query.c gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o reply.o reply.c gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o general.o general.c gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o setup.o setup.c gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o transmit.o transmit.c transmit.c: In function `adns__mkquery': transmit.c:98: warning: operation on `p' may be undefined transmit.c:98: warning: operation on `p' may be undefined gcc -march=athlon -O2 -pipe -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer -arith -c -o parse.o parse.c parse.c:115: error: conflicting types for 'adns__parse_domain' internal.h:571: error: previous declaration of 'adns__parse_domain' was here parse.c:115: error: conflicting types for 'adns__parse_domain' internal.h:571: error: previous declaration of 'adns__parse_domain' was here make[1]: *** [parse.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/adns-1.0/work/adns-1.0/src' make: *** [all] Error 2 !!! ERROR: net-libs/adns-1.0 failed. !!! Function src_compile, Line 17, Exitcode 2 !!! (no error message)
Created attachment 40927 [details, diff] Patch to fix the described bug The code of adns is dead-ugly, but I finally figuerd it out. The applied patch should fix the bug.
Thanks, patch added to cvs.