From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 8 01:18:22 2003 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D74A37B401; Sun, 8 Jun 2003 01:18:22 -0700 (PDT) Received: from 234-244.ip.ll.net (234-244.ip.ll.net [209.131.234.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id D41CE43FE0; Sun, 8 Jun 2003 01:18:18 -0700 (PDT) (envelope-from noone@siu.edu) Received: from freebsd2.localnet10 (localhost [127.0.0.1]) by freebsd2.localnet10 (8.12.9/8.12.9) with ESMTP id h588HN8T095920; Sun, 8 Jun 2003 03:17:28 -0500 (CDT) (envelope-from noone@siu.edu) Message-Id: <200306080817.h588HN8T095920@freebsd2.localnet10> Date: Sun, 8 Jun 2003 03:17:23 -0500 (CDT) From: none To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org In-Reply-To: <200305312030.h4VKU9Xx030202@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Subject: Re: ports/52825: goggles-0.5.5 compile under 5.1-BETA2 fails - pthread usage X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jimd@siu.edu List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 08:18:22 -0000 Included are two patches to correct the pthread problem. Feel free to modify them to better suit needs/standards/correctness/usability. These patches were applied to 5.1-RC1, but also apply for other releases. On 31 May, FreeBSD-gnats-submit@FreeBSD.org wrote: > Thank you very much for your problem report. > It has the internal identification `ports/52825'. > The individual assigned to look at your > report is: freebsd-ports-bugs. > > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=52825 > >>Category: ports >>Responsible: freebsd-ports-bugs >>Synopsis: goggles-0.5.5 compile under 5.1-BETA2 fails - pthread usage >>Arrival-Date: Sat May 31 13:30:09 PDT 2003 ============== Makefile patch ==================== *** Makefile.orig Sun Jun 8 03:12:41 2003 --- Makefile Sun Jun 8 03:08:40 2003 *************** *** 21,26 **** --- 21,28 ---- USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ + CXXFLAGS+=-pthread \ + CFLAGS+=-pthread \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS= --with-dvdcontrol=${LOCALBASE} \ --with-fox=${LOCALBASE} \ ================ configure patch ================== *** configure.orig Sun Jun 8 02:59:25 2003 --- configure Sun Jun 8 03:03:54 2003 *************** *** 5967,5980 **** fi done ! echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 ! echo "configure:5972: checking for pthread_create in -lpthread" >&5 ac_lib_var=`echo pthread'_'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" cat > conftest.$ac_ext <&6 ! echo "configure:5972: checking for pthread_create in -pthread" >&5 ac_lib_var=`echo pthread'_'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="-pthread $LIBS" cat > conftest.$ac_ext <&6 --- 6011,6017 ---- #define $ac_tr_lib 1 EOF ! LIBS="-pthread $LIBS" else echo "$ac_t""no" 1>&6 =====================================================