ports/52825: goggles-0.5.5 compile under 5.1-BETA2 fails - pthread usage

none noone at siu.edu
Sun Jun 8 08:18:22 UTC 2003


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 at 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
=====================================================



More information about the freebsd-ports-bugs mailing list