Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2003 01:20:13 -0700 (PDT)
From:      none <noone@siu.edu>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/52825: goggles-0.5.5 compile under 5.1-BETA2 fails - pthread usage
Message-ID:  <200306080820.h588KDab045077@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/52825; it has been noted by GNATS.

From: none <noone@siu.edu>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc:  
Subject: Re: ports/52825: goggles-0.5.5 compile under 5.1-BETA2 fails -
 pthread usage
Date: Sun, 8 Jun 2003 03:17:23 -0500 (CDT)

 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 <<EOF
   #line 5980 "configure"
   #include "confdefs.h"
 --- 5967,5980 ----
   fi
   done
   
 ! echo $ac_n "checking for pthread_create in -pthread""... $ac_c" 1>&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 <<EOF
   #line 5980 "configure"
   #include "confdefs.h"
 ***************
 *** 6011,6017 ****
   #define $ac_tr_lib 1
   EOF
   
 !   LIBS="-lpthread $LIBS"
   
   else
     echo "$ac_t""no" 1>&6
 --- 6011,6017 ----
   #define $ac_tr_lib 1
   EOF
   
 !   LIBS="-pthread $LIBS"
   
   else
     echo "$ac_t""no" 1>&6
 =====================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306080820.h588KDab045077>