Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66034 - adns-1.0 failed to compile using gcc 3.4.2
Summary: adns-1.0 failed to compile using gcc 3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 08:51 UTC by Robert T Childers
Modified: 2004-10-02 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix the described bug (adns-gcc34.patch,425 bytes, patch)
2004-10-02 11:29 UTC, tklauser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert T Childers 2004-10-01 08:51:22 UTC
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)
Comment 1 tklauser 2004-10-02 11:29:30 UTC
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.
Comment 2 Bryan Østergaard (RETIRED) gentoo-dev 2004-10-02 12:31:41 UTC
Thanks, patch added to cvs.