pkgsrc-Bugs archive

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

Re: pkg/38533: sendmail+openssl: _res is not supported

The following reply was made to PR pkg/38533; it has been noted by GNATS.

From: Stephen Borrill <>
Subject: Re: pkg/38533: sendmail+openssl: _res is not supported
Date: Tue, 29 Apr 2008 03:03:34 +0100 (BST)

 The problem arises with openssl 0.9.8g because, unlike 0.9.7i, it enables 
 threading on BSD operating systems.
 See line 126 onwards from openssl's Configure file:
 # As for $BSDthreads. Idea is to maintain "collective" set of flags,
 # which would cover all BSD flavors. -pthread applies to them all,
 # but is treated differently. OpenBSD expands is as -D_POSIX_THREAD
 # -lc_r, which is sufficient. FreeBSD 4.x expands it as -lc_r,
 # which has to be accompanied by explicit -D_THREAD_SAFE and
 # sometimes -D_REENTRANT. FreeBSD 5.x expands it as -lc_r, which
 # seems to be sufficient?
 my $BSDthreads="-pthread -D_THREAD_SAFE -D_REENTRANT";
 This is entirely missing from 0.9.7i. A simple workaround for the problem 
 with sendmail in this case is:
 --- security/openssl/Makefile   17 Jan 2008 06:42:47 -0000      1.131
 +++ security/openssl/Makefile   29 Apr 2008 02:03:20 -0000
 @@ -48,7 +48,13 @@
   CONFIGURE_ARGS+=       --prefix=${PREFIX:Q}
   CONFIGURE_ARGS+=       --install_prefix=${DESTDIR}
   CONFIGURE_ARGS+=       --openssldir=${PKG_SYSCONFDIR:Q}
 -CONFIGURE_ARGS+=       shared threads
 +CONFIGURE_ARGS+=       shared
 +.if ${OPSYS} == "NetBSD"
 +CONFIGURE_ARGS+=        no-threads
 +CONFIGURE_ARGS+=       threads
   .if ${OPSYS} == "SunOS"
   .  if ${MACHINE_ARCH} == "sparc"
 I can confirm this fixes sendmail for NetBSD 3.0 and 4.0 (-current 

Home | Main Index | Thread Index | Old Index