Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 13:48:24 -0700
From:      Anthony Chavez <acc@anthonychavez.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: [gmane.os.freebsd.devel.ports] bacula-server on 4.11
Message-ID:  <m2y8ddwup3.fsf@pegasos.anthonychavez.org>
References:  <m2d5uwz0hq.fsf@pegasos.anthonychavez.org> <200502211945.j1LJjDRM020572@odie.koellers.net>

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 21 Feb 2005 20:45:13 +0100 Lars K=C2=81=C3=B6ller <Lars@koellers.ne=
t> 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.

=2D --=20
Anthony Chavez                                 http://anthonychavez.org/
mailto:acc@anthonychavez.org         jabber:acc@jabber.anthonychavez.org

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

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

iD8DBQFCHj2dbZTbIaRBRXERAp64AJ9XwXHZht+2RgfH9ZdVftyLB9/zIACfXfFq
CCrrufrqi9KVW87VlpjIoSU=3D
=3DE10e
=2D----END PGP SIGNATURE-----



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