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<louis%zabrico.com@localhost>
     Message-ID:<4C9BFE30.9050804%zabrico.com@localhost>

   | 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
/usr/pkg/libexec/sendmail/sendmail:
        -lwrap.0 => /usr/lib/libwrap.so.0
        -lc.12 => /usr/lib/libc.so.12
        -lssl.6 => /usr/lib/libssl.so.6
        -lcrypto.4 => /usr/lib/libcrypto.so.4
        -lcrypt.0 => /lib/libcrypt.so.0
        -lsasl2.2 => /usr/pkg/lib/libsasl2.so.2
        -lresolv.1 => /usr/lib/libresolv.so.1
        -lutil.7 => /usr/lib/libutil.so.7
        -lldap.2 => /usr/lib/libldap.so.2
        -llber.2 => /usr/lib/liblber.so.2
        -ldb4-4.8.8 => /usr/pkg/lib/libdb4-4.8.so.8
        -lpthread.0 => /usr/lib/libpthread.so.0



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

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

... that's in db4's buildlink3.mk.



Louis






Home | Main Index | Thread Index | Old Index