NetBSD Problem Report #28329

From www@netbsd.org  Tue Nov 16 13:46:46 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 54747251FA9; Tue, 16 Nov 2004 13:46:46 +0000 (UTC)
Message-Id: <20041116134646.54747251FA9@narn.netbsd.org>
Date: Tue, 16 Nov 2004 13:46:46 +0000 (UTC)
From: pierre.bourgin@pcotech.fr
Reply-To: pierre.bourgin@pcotech.fr
To: gnats-bugs@netbsd.org
Subject: webalizer don't perform reverse DNS lookups under Solaris8
X-Send-Pr-Version: www-1.0

>Number:         28329
>Category:       pkg
>Synopsis:       webalizer don't perform reverse DNS lookups under Solaris8
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 16 13:47:00 +0000 2004
>Closed-Date:    Mon Jan 28 23:26:31 +0000 2013
>Last-Modified:  Mon Jan 28 23:26:31 +0000 2013
>Originator:     Pierre Bourgin
>Release:        Sun Solaris 8/sparc
>Organization:
PCO Technologies
>Environment:
SunOS dapkg 5.8 Generic_117350-12 sun4u sparc SUNW,Ultra-5_10

>Description:
in pkgsrc/web/webalizer as of 20041009, the webalizer tool does not 
performs reverse DNS lookups from IP addresses present in access log 
files to analyse.

This comes from the configure script of the webalizer tarball (webalizer-2.01-10-src.tar.bz2) that does not find headers (and libs) 
of db4 database tool under Solaris 8.

>How-To-Repeat:
launch the building of the webalizer-2.1.10nb3 package.

In the output of the configure script of sources, you will see: 
[...]
checking for dbopen... no
checking for library containing dbopen... no
configure: warning: You must have a V1.85 compatable DB library!
configure: warning: DNS lookup code will be disabled...
[...]


then the bin/webalizer generated program is not linked to ant libdb file.

when using it, the following messages appears:
Warning: Invalid keyword 'DNSCache' (webalizer.conf)
Warning: Invalid keyword 'DNSChildren' (webalizer.conf)
Warning: Invalid keyword 'DNSCache' (/local/users/webalizer/webalizer.conf)
Warning: Invalid keyword 'DNSChildren' (/local/users/webalizer/webalizer.conf)


>Fix:
apply the following patch to pkgsrc/www/webalizer/Makefile 
(from # $NetBSD: Makefile,v 1.32 2004/10/03 00:18:27 tv Exp $)

--- Makefile.orig       2004-10-03 05:12:10.000000000 +0200
+++ Makefile    2004-11-16 14:38:11.260030000 +0100
@@ -36,6 +36,12 @@
                ${MV} -f ${WRKSRC}/$${file}.fixed ${WRKSRC}/$${file};   \
        done

+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+=       --with-db=${BUILDLINK_PREFIX.db4}/include/db4
+CONFIGURE_ARGS+=       --with-dblib=${BUILDLINK_PREFIX.db4}/lib/db4
+.include "../../databases/db4/buildlink3.mk"
+.endif
 .include "../../graphics/freetype2/buildlink3.mk"
 .include "../../graphics/gd/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: ben@netbsd.org
Responsible-Changed-When: Tue, 16 Nov 2004 13:53:52 +0000
Responsible-Changed-Why:
Assigned to solaris-pkg-people.


State-Changed-From-To: open->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Mon, 28 Jan 2013 23:26:31 +0000
State-Changed-Why:
The package has changed, the patch doesn't apply.
Meanwhile Solaris 8 was desupported (a year ago),
if you still experience the problem with newer Solaris, report back.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.