From owner-freebsd-ports Sat Sep 11 15: 0:13 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D0788153E9 for ; Sat, 11 Sep 1999 15:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA27229; Sat, 11 Sep 1999 15:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from cyrius.linf.unb.br (cyrius.linf.unb.br [164.41.12.4]) by hub.freebsd.org (Postfix) with ESMTP id E2671156BC for ; Sat, 11 Sep 1999 14:55:33 -0700 (PDT) (envelope-from lioux@linf.unb.br) Received: from lioux by cyrius.linf.unb.br with local id 11Pv8D-000ED8-00; Sat, 11 Sep 1999 18:56:25 -0300 Message-Id: Date: Sat, 11 Sep 1999 18:56:25 -0300 From: Mario Sergio Fujikawa Ferreira (94/32213) Reply-To: lioux@gns.com.br To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13700: security/stunnel patch so configure can locate pthread_create Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13700 >Category: ports >Synopsis: security/stunnel patch so configure can locate pthread_create >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 11 15:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Mario Sergio Fujikawa Ferreira >Release: FreeBSD 3.2-STABLE i386 >Organization: None >Environment: FreeBSD 3.x. Ports tree cvs as of 09/11/1999 10am (GMT-3). >Description: security/stunnel port configure script tries to find out if pthread_create is cached within -lpthread but the 3.x family does not use such abstraction relying otherwise in libc_r using the gcc with the flag -pthread >How-To-Repeat: >Fix: I told configure to look for and use -lc_r :) Works here. May not be the good way, but will do untill one of the most wise ones have time for this. The patch for the port follows. diff -ruN stunnel.orig/patches/patch-ac stunnel/patches/patch-ac --- stunnel.orig/patches/patch-ac Wed Dec 31 21:00:00 1969 +++ stunnel/patches/patch-ac Sat Sep 11 18:32:44 1999 @@ -0,0 +1,37 @@ +--- configure.orig Tue Jul 13 10:35:02 1999 ++++ configure Sat Sep 11 18:25:14 1999 +@@ -932,14 +932,14 @@ + echo "$ac_t""no" 1>&6 + fi + +-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 +-echo "configure:937: checking for pthread_create in -lpthread" >&5 +-ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` ++echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 ++echo "configure:937: checking for pthread_create in -lc_r" >&5 ++ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpthread $LIBS" ++LIBS="-lc_r $LIBS" + cat > conftest.$ac_ext <&6 +- ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \ ++ ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message