Subject: pkg/23589: www/htdig does not configure with gcc 3 (fix included)
To: None <gnats-bugs@gnats.netbsd.org>
From: Julian Coleman <jdc@coris.org.uk>
List: netbsd-bugs
Date: 11/28/2003 12:26:31
>Number: 23589
>Category: pkg
>Synopsis: www/htdig does not configure with gcc 3 (fix included)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 28 12:27:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Julian Coleman
>Release: NetBSD 1.6ZF
>Organization:
@home
>Environment:
System: NetBSD altair.coris.org.uk 1.6ZF NetBSD 1.6ZF (PC164LX) #0: Thu Nov 13 16:43:12 GMT 2003 root@altair.coris.org.uk:/usr/obj/alpha/usr/src/sys/arch/alpha/compile/PC164LX alpha
Architecture: alpha
Machine: alpha
>Description:
www/htdig fails to configure with gcc 3, as it can't find the
deprecated c++ headers that it uses:
checking for ostream.h... no
checking for iostream.h... no
checking for fstream.h... no
configure: error: To compile ht://Dig, you will need a C++ library. Try installing libstdc++.
>How-To-Repeat:
cd /usr/pkgsrc/www/htdig && make
>Fix:
Apply patch (tested on 1.6ZF/alpha/gcc3 and 1.6L/sparc/gcc2):
--- /usr/pkgsrc/www/htdig/Makefile 2003-07-18 04:46:21.000000000 +0100
+++ Makefile 2003-11-28 11:34:18.000000000 +0000
@@ -24,7 +24,7 @@
--with-database-dir=/var/db/htdig \
--with-image-dir=${PREFIX}/share/examples/htdig \
--with-search-dir=${PREFIX}/share/examples/htdig
-CPPFLAGS+= -I${PREFIX}/include/db2
+CPPFLAGS+= -I/usr/include/g++/backward -Wno-deprecated -I${PREFIX}/include/db2
PLIST_SUBST= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
post-patch:
>Release-Note:
>Audit-Trail:
>Unformatted: