Date: Sat, 11 Sep 1999 18:56:25 -0300 From: Mario Sergio Fujikawa Ferreira (94/32213) <lioux@linf.unb.br> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/13700: security/stunnel patch so configure can locate pthread_create Message-ID: <E11Pv8D-000ED8-00@cyrius.linf.unb.br>
next in thread | raw e-mail | index | archive | help
>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 <<EOF + #line 945 "configure" + #include "confdefs.h" +@@ -967,13 +967,13 @@ + fi + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&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 <<EOF + #define $ac_tr_lib 1 + EOF + +- LIBS="-lpthread $LIBS" ++ LIBS="-lc_r $LIBS" + + else + echo "$ac_t""no" 1>&6 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E11Pv8D-000ED8-00>