pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39610: clamav_milter doesn't work under NetBSD



>Number:         39610
>Category:       pkg
>Synopsis:       clamav_milter fails to start
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 22 14:00:00 +0000 2008
>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@localhost:/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@localhost>

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--

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


Home | Main Index | Thread Index | Old Index