Subject: pkg/20862: dillo doesn't build w/o IP6; doesn't need gmake either
To: None <>
From: Martin Weber <>
List: netbsd-bugs
Date: 03/23/2003 20:54:41
>Number:         20862
>Category:       pkg
>Synopsis:       current dillo won't build w/ USE_INET=no in mk.conf and won't need gmake
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 23 11:55:00 PST 2003
>Originator:     Martin Weber
>Release:        NetBSD 1.6Q
	Entropie Erlangen
System: NetBSD 1.6Q NetBSD 1.6Q (FAETON) #0: Sun Mar 23 11:00:09 CET 2003 i386

     $NetBSD: Makefile,v 1.12 2003/03/21 18:15:28 jmmv Exp $

Architecture: i386
Machine: i386

1.	patches/patch-aa nukes a name which is shared across the IPv6/IPv4 case
	and instead introduces something which only exists in the IPv6 case.
	The code in http.c then uses the new symbol unconditionally (the old
	code did so, too, on the other hand it defined the same symbol in different
	ways dependant on the ifdef). This makes the build of dillo fail gloriously:

cc -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/pkg/include -I/usr/X11R6/include -I/usr/local/include  -I/usr/pkg/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include -O2 -DPKG_SYSCONFDIR="\"/usr/pkg/etc\"" -march=pentiumpro -I/usr/pkg/include -I/usr/X11R6/include -D_REENTRANT -D_THREAD_SAFE -Wall -Waggregate-return -c `test -f http.c || echo './'`http.c
http.c: In function `Http_connect_socket':
http.c:274: `name6' undeclared (first use in this function)
http.c:274: (Each undeclared identifier is reported only once
http.c:274: for each function it appears in.)
gmake[3]: *** [http.o] Error 1
gmake[3]: Leaving directory `/usr/obj/pkg/www/dillo/work.i386/dillo-0.7.1/src/IO'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/obj/pkg/www/dillo/work.i386/dillo-0.7.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/obj/pkg/www/dillo/work.i386/dillo-0.7.1'
gmake: *** [all] Error 2
*** Error code 2

2.	dillo has USE_GMAKE=yes
	in its Makefile. dillo doesn't need gmake to build though.

1.	+ Nuke patches/patch-aa - dillo builds happily out of pkgsrc and runs fine
	for me - otoh I can't test ipv6. Erm, what I mean is it builds happily from
	within pkgsrc when I nuke patch-aa, or from outside pkgsrc.
	+ change patches/patch-aa in a way it works again for both non-ipv6 and ipv6
	enabled environments

2.	+ Delete USE_GMAKE=yes from dillo's Makefile.