NetBSD Problem Report #43637

From  Sun Jul 18 14:47:53 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id E7B2A63BB10
	for <>; Sun, 18 Jul 2010 14:47:52 +0000 (UTC)
Message-Id: <>
Date: Sun, 18 Jul 2010 14:47:52 +0000 (UTC)
Subject: postfix with mysql fails on NetBSD 5.1_RC3
X-Send-Pr-Version: www-1.0

>Number:         43637
>Category:       pkg
>Synopsis:       postfix with mysql fails on NetBSD 5.1_RC3
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 14:50:00 +0000 2010
>Closed-Date:    Tue Feb 26 22:15:21 +0000 2013
>Last-Modified:  Tue Feb 26 22:20:04 +0000 2013
>Originator:     Friedrich Holzapfel
>Release:        NetBSD 5.1_RC3
NetBSD mail 5.1_RC3 NetBSD 5.1_RC3 (XEN3_DOMU) #0: Sat Jun 12 20:22:22 UTC 2010 amd64
Postfix 2.7.1 from pkgsrc-2010Q2 (PKG_OPTIONS mysql and tls) aborts while trying to send queued mails.

Jul 17 04:06:57 mail postfix/master[1070]: warning: process /usr/pkg/libexec/postfix/smtp pid 1435 killed by signal 6
Jul 17 04:06:57 mail postfix/master[1070]: warning: /usr/pkg/libexec/postfix/smtp: bad command startup -- throttling

  1070      1 smtp     write(0x2, 0x7f7ffcc0bde0, 0x33) = 51
       "_res is not supported for multi-threaded programs.\n"
  1070      1 smtp     __sigprocmask14(0x3, 0x7f7fffffbbb0, 0) = 0
  1070      1 smtp     _lwp_self()                 = 1
  1070      1 smtp     _lwp_kill(0x1, 0x6)         = 0
  1070      1 smtp     SIGABRT SIG_DFL

        -lssl.0.9.8 => /usr/pkg/lib/
        -lcrypto.0.9.8 => /usr/pkg/lib/
        -lc.12 => /usr/lib/
        -lmysqlclient.16 => /usr/pkg/lib/mysql/
        -lpthread.0 => /usr/lib/
        -lcrypt.0 => /usr/lib/
        -lm.0 => /usr/lib/
        -lz.1 => /usr/lib/

The problem seems to originate in the dependency of /usr/pkg/lib/mysql/ (needed by /usr/pkg/libexec/postfix/smtp) on /usr/lib/ when databases/mysql51-client is compiled with SSL support enabled (default) and an incompatibility somewhere in the latter shared library:
Signal 6 (SIGABRT) after printing "_res is not supported for multi-threaded programs.\n".

Install mail/postfix with PKG_OPTIONS mysql and MySQL client 5.1 (default PKG_OPTIONS ssl) on NetBSD 5.1_RC3 (XEN3_DOMU). Current postfix in pkgsrc (mail/postfix-current) is also affected.

OpenSSL from pkgsrc and from base are both affected (here PREFER.openssl=pkgsrc).

To workaround this disable the ssl PKG_OPTION for MySQL
 PKG_OPTIONS.mysql5+= -ssl

Fix unknown



Responsible-Changed-From-To: pkg-manager->martti
Responsible-Changed-When: Sun, 18 Jul 2010 18:41:33 +0000
Over to maintainer.

Responsible-Changed-From-To: martti->pkg-manager
Responsible-Changed-When: Sun, 10 Oct 2010 02:54:18 +0000
maintainer was reset :(

State-Changed-From-To: open->feedback
State-Changed-When: Tue, 26 Feb 2013 20:01:24 +0000
Applied patch from PR44656.  This fixes the mysql problem you described in my
personal configuration, so I assume this will fix your issue as well.

Thank you.

From: "Tim Rightnour" <>
Subject: PR/43637 CVS commit: pkgsrc/mail/postfix
Date: Tue, 26 Feb 2013 19:56:19 +0000

 Module Name:	pkgsrc
 Committed By:	garbled
 Date:		Tue Feb 26 19:56:19 UTC 2013

 Modified Files:
 	pkgsrc/mail/postfix: distinfo
 Added Files:
 	pkgsrc/mail/postfix/patches: patch-src_dns_dns__lookup.c

 Log Message:
 Add fix from PR44656 to fix sig6 in postfix/smtp when compiled with any type
 of DB support (like mysql, postgres, etc).  Also fixes PR43637
 Tested by me.

 To generate a diff of this commit:
 cvs rdiff -u -r1.148 -r1.149 pkgsrc/mail/postfix/distinfo
 cvs rdiff -u -r0 -r1.1 \

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-When: Tue, 26 Feb 2013 22:15:21 +0000
Feedback recieved, thank you for your PR

From: "" <>
Subject: Re: pkg/43637 (postfix with mysql fails on NetBSD 5.1_RC3)
Date: Tue, 26 Feb 2013 22:57:25 +0200

 Thanks Tim (and River)!

 I can confirm postfix/smtp running fine here with the patch applied, PR
 can be closed.


NetBSD Home
NetBSD PR Database Search

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