From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 30 14:30:12 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5EA337B401 for ; Fri, 30 May 2003 14:30:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C49343F75 for ; Fri, 30 May 2003 14:30:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4ULUCUp079843 for ; Fri, 30 May 2003 14:30:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4ULUCcB079842; Fri, 30 May 2003 14:30:12 -0700 (PDT) Date: Fri, 30 May 2003 14:30:12 -0700 (PDT) Message-Id: <200305302130.h4ULUCcB079842@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Scot W. Hetzel" Subject: Re: ports/52796: devel/apr is compiled without threads support X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Scot W. Hetzel" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 21:30:13 -0000 The following reply was made to PR ports/52796; it has been noted by GNATS. From: "Scot W. Hetzel" To: "Peter Johnson" Cc: Subject: Re: ports/52796: devel/apr is compiled without threads support Date: Fri, 30 May 2003 16:24:05 -0500 From: "Peter Johnson" > The following reply was made to PR ports/52796; it has been noted by GNATS. > Date: Fri, 30 May 2003 00:14:36 -0400 (EDT) > > In addition to adding --enable-threads to configure, the installed > apr-config script needs to be patched to remove -lc_r from LIBS and add > -pthread to LDFLAGS. If this is not done, linking of Subversion (and > probably others) fail because -lc_r is ignored by libtool and -pthread is > not specified, so libc is linked instead of libc_r (generating many > undefined pthread_* symbol errors). > You'll need to patch the port to use the ${PTHREAD_LIBS} and ${PTHREAD_CFLAGS} variables found in /usr/ports/Mk/bsd.port.mk, this way it will be able to compile on both 4.x and 5.x correctly. Scot