[gmane.os.freebsd.devel.ports] bacula-server on 4.11

Anthony Chavez acc at anthonychavez.org
Thu Feb 24 12:48:48 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 21 Feb 2005 20:45:13 +0100 Lars Köller <Lars at koellers.net> wrote:

> I can't reproduce this on my 4.11 system

Hi, Lars.

Thanks for following up.  As Michael Squires pointed out, the cause of
this appears to be that the configure script is not including -pthread
in the compiler flags.  I'm curious to know if you're using the same
4.11 branches that we are (I'm using -RELEASE and I think Michael is
also).  Could you please share your uname -rs?

In any case, below are patches to the Makefile (for the port itself) and
configure script that seem to address the problem properly and result in
a successful build.  Please review and commit.

Thanks.

- -- 
Anthony Chavez                                 http://anthonychavez.org/
mailto:acc at anthonychavez.org         jabber:acc at jabber.anthonychavez.org

- --8<---------------cut here---------------start------------->8---
*** Makefile.orig	Sun Jan 30 17:35:53 2005
- --- Makefile	Thu Feb 24 13:42:23 2005
***************
*** 37,43 ****
  		--disable-conio
  
  CONFIGURE_ENV+=	CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \
! 		LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
  
  ALL_OPTIONS=	CLIENT_ONLY WXCONSOLE GNOMECONSOLE MYSQL POSTGRESQL MTX
  
- --- 37,44 ----
  		--disable-conio
  
  CONFIGURE_ENV+=	CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \
! 		LDFLAGS="-L${LOCALBASE}/lib" PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
! 		PTHREAD_LIBS="${PTHREAD_LIBS}"
  
  ALL_OPTIONS=	CLIENT_ONLY WXCONSOLE GNOMECONSOLE MYSQL POSTGRESQL MTX
  
***************
*** 150,156 ****
  .endif
  
  post-patch:
- - 	@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_CFLAGS}|g' ${WRKSRC}/configure
  .if defined(WITH_CLIENT_ONLY)
  	# In client port only install startup script out of script dir (see below post-install)
  	# Dont mkdir ${PREFIX}/share/bacule cause it's empty
- --- 151,156 ----
- --8<---------------cut here---------------end--------------->8---

- --8<---------------cut here---------------start------------->8---
*** configure.orig	Thu Nov 18 15:14:02 2004
- --- configure	Thu Feb 24 13:39:46 2005
***************
*** 19092,19099 ****
  	DISTVER=`uname -a |awk '{print $3}'`
  	VER=`echo $DISTVER | cut -c 1`
  	if test x$VER = x4 ; then
! 	   PTHREAD_LIB="-pthread"
! 	   CFLAGS="${CFLAGS} -pthread"
  	fi
  	lld="qd"
  	llu="qu"
- --- 19092,19099 ----
  	DISTVER=`uname -a |awk '{print $3}'`
  	VER=`echo $DISTVER | cut -c 1`
  	if test x$VER = x4 ; then
! 	   PTHREAD_LIB="${PTHREAD_LIBS}"
! 	   CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  	fi
  	lld="qd"
  	llu="qu"
- --8<---------------cut here---------------end--------------->8---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCHj2dbZTbIaRBRXERAp64AJ9XwXHZht+2RgfH9ZdVftyLB9/zIACfXfFq
CCrrufrqi9KVW87VlpjIoSU=
=E10e
-----END PGP SIGNATURE-----



More information about the freebsd-ports mailing list