NetBSD Problem Report #39610

From kovert@omniscient.com  Mon Sep 22 13:59:33 2008
Return-Path: <kovert@omniscient.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4CB2C63B884
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Sep 2008 13:59:33 +0000 (UTC)
Message-Id: <200809221359.m8MDxSS0002944@guinness.omniscient.com>
Date: Mon, 22 Sep 2008 09:59:28 -0400
From: Todd Kover <kovert@omniscient.com>
To: gnats-bugs@gnats.NetBSD.org
Subject: clamav_milter doesn't work under NetBSD
X-Send-Pr-Version: 3.95

>Number:         39610
>Category:       pkg
>Synopsis:       clamav_milter fails to start
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 22 14:00:00 +0000 2008
>Closed-Date:    Thu Jun 18 04:49:52 +0000 2015
>Last-Modified:  Thu Jun 18 04:49:52 +0000 2015
>Originator:     Todd Kover
>Release:        NetBSD 4.0_STABLE
>Organization:
Omniscient Technologies
>Environment:
System: NetBSD guinness.omniscient.com 4.0_STABLE NetBSD 4.0_STABLE (GENERIC.MP) #2: Sun Aug 17 10:50:16 EDT 2008 kovert@saidin.omniscient.com:/usr/obj/4.0-stable/amd64/amd/guinness/usr/src/os/NetBSD-4.0-branch/src/sys/arch/amd64/compile/GENERIC.MP amd64
Architecture: x86_64
Machine: amd64
>Description:
	Under at least NetBSD 4.0, invoking clamav_milter gives the following
	error:

	_res is not supported for multi-threaded programs.

>How-To-Repeat:
	build clamav, configure milters, start clamav_milter
>Fix:
	The attach patch simply #if 0's out the check of _res that triggers
	the calling of res_init.  This shouldn't be necessary under most
	modern unixes anyway, but I'm not sure if a more creative solution
	is desirable or not 


------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8477.1222091959.2@guinness.omniscient.com>

Index: pkgsrc/mail/clamav/patches/patch-ah
===================================================================
RCS file: /cvsroot/pkgsrc/mail/clamav/patches/patch-ah,v
retrieving revision 1.16
diff -u -r1.16 patch-ah
--- pkgsrc/mail/clamav/patches/patch-ah	4 Sep 2008 06:44:07 -0000	1.16
+++ pkgsrc/mail/clamav/patches/patch-ah	22 Sep 2008 13:50:31 -0000
@@ -4,7 +4,22 @@

 --- clamav-milter/clamav-milter.c.orig	2008-09-01 20:19:44.000000000 +0300
 +++ clamav-milter/clamav-milter.c	2008-09-04 08:28:44.000000000 +0300
-@@ -3926,7 +3926,7 @@
+@@ -2148,12 +2148,14 @@
+ 	logg(_("*Debugging is on\n"));
+ 
+ #ifdef HAVE_RESOLV_H
++#if 0
+ 	if(!(_res.options&RES_INIT))
+ 		if(res_init() < 0) {
+ 			fprintf(stderr, "%s: Can't initialise the resolver\n",
+ 				argv[0]);
+ 			return EX_UNAVAILABLE;
+ 		}
++#endif /* 0 */
+ 
+ 	if(blacklist_time) {
+ 		char name[MAXHOSTNAMELEN + 1];
+@@ -3926,7 +3928,7 @@
  						 * the postmaster, so include
  						 * some useful information
  						 */
@@ -13,7 +28,7 @@
  							sendmailId, privdata->from);
  					else
  						fprintf(sendmail, _("A message sent from %s to\n"),
-@@ -3940,7 +3940,7 @@
+@@ -3940,7 +3942,7 @@
  						fprintf(sendmail, _("\nThe message in question has been quarantined as %s\n"), privdata->filename);

  					if(hflag) {
@@ -22,7 +37,7 @@
  							smfi_getsymval(ctx, "j"), privdata->from,
  							smfi_getsymval(ctx, "_"));
  						fputs(_("For your information, the original message headers were:\n\n"), sendmail);
-@@ -5129,7 +5129,7 @@
+@@ -5129,7 +5131,7 @@
  	cli_dbgmsg("qfile move '%s' to '%s'\n", privdata->filename, newname);

  	if(move(privdata->filename, newname) < 0) {

------- =_aaaaaaaaaa0--

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 18 Jun 2015 04:49:52 +0000
State-Changed-Why:
duplicate of 36853, and fixed therein a long time ago


>Unformatted:
 ------- =_aaaaaaaaaa0
 Content-Type: text/plain; charset="us-ascii"
 Content-ID: <8477.1222091959.1@guinness.omniscient.com>

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.