Date: Wed, 11 Aug 2004 18:29:57 +0300 (EEST) From: Giorgos Keramidas <keramida@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/70305: Unbreak build of dns/adns on CURRENT Message-ID: <200408111529.i7BFTv5l056890@orion.daedalusnetworks.priv> Resent-Message-ID: <200408111530.i7BFUVT6018070@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 70305 >Category: ports >Synopsis: Unbreak build of dns/adns on CURRENT >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 11 15:30:31 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD orion.daedalusnetworks.priv 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Aug 11 14:30:30 EEST 2004 root@orion.daedalusnetworks.priv:/usr/obj/usr/src/sys/ORION i386 >Description: The ethereal port depends on dns/adns which fails to build on today's CURRENT. The cause of the failure is an obvious bug in the prototype of a C function in the adns sources. >How-To-Repeat: # cd /usr/ports/dns/adns # make [...] cc -O -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 gmake[1]: *** [parse.o] Error 1 gmake[1]: Leaving directory `/home/ports/dns/adns/work/adns-1.0/src' gmake: *** [all] Error 2 >Fix: Putting the following patch in ports/dns/adns/files/patch-zz-local fixes the build for me, by making the definition of adns__parse_domain() similar to its prototype in the internal.h header. %% --- src/parse.c.orig Wed Aug 11 18:19:45 2004 +++ src/parse.c Wed Aug 11 18:20:19 2004 @@ -111,7 +111,7 @@ } adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu, - vbuf *vb, adns_queryflags flags, + vbuf *vb, parsedomain_flags flags, const byte *dgram, int dglen, int *cbyte_io, int max) { findlabel_state fls; %% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408111529.i7BFTv5l056890>