pkgsrc-Users archive

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

Re: sendmail not working on netbsd-5

On 9/23/10 10:45 PM, Robert Elz wrote:
     Date:        Thu, 23 Sep 2010 21:26:08 -0400
     From:        Louis Guillaume<>

   | Just upgraded packages on my staging machine and noticed that sendmail
   | stopped working.

I have sendmail (from pkgsrc-current) running under NetBSD 5.1RC3
(though the sendmail would have been compiled in a 5.0 environment).

   |      # /usr/pkg/bin/mailq
   |      _res is not supported for multi-threaded programs.
   |      Abort

How/why did sendmail get compiled multi-threaded?   Is see nothing in
pkgsrc that would do that.  Do you perhaps have -pthread in come local
CFLAGS (or COPTS) setting, or something?

No idea. The only thing sendmail-related in mk.conf is...

PKG_OPTIONS.sendmail += ldap sasl db4 tls
ACCEPTABLE_LICENSES  += sendmail-license

The env has nothing like CFLAGS or COPTS.

What does
        ldd /usr/pkg/libexec/sendmail/sendmail
tell you?   There should be no mention of anything thread related there.

$ ldd /usr/pkg/libexec/sendmail/sendmail
        -lwrap.0 => /usr/lib/
        -lc.12 => /usr/lib/
        -lssl.6 => /usr/lib/
        -lcrypto.4 => /usr/lib/
        -lcrypt.0 => /lib/
        -lsasl2.2 => /usr/pkg/lib/
        -lresolv.1 => /usr/lib/
        -lutil.7 => /usr/lib/
        -lldap.2 => /usr/lib/
        -llber.2 => /usr/lib/
        -ldb4-4.8.8 => /usr/pkg/lib/
        -lpthread.0 => /usr/lib/

I wonder if it's getting libpthread from the db4 option:

PTHREAD_OPTS+=  native
.include "../../mk/"
.endif # DB4_BUILDLINK3_MK

... that's in db4's


Home | Main Index | Thread Index | Old Index