From freebsd@bilogic.org  Thu May 29 20:37:37 2003
Return-Path: <freebsd@bilogic.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9A8C937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 May 2003 20:37:37 -0700 (PDT)
Received: from cvs.tortall.net (cvs.tortall.net [198.78.66.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2B17743F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 May 2003 20:37:37 -0700 (PDT)
	(envelope-from freebsd@bilogic.org)
Received: by cvs.tortall.net (Postfix, from userid 1000)
	id 593CC2B83A; Thu, 29 May 2003 20:37:34 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
	by cvs.tortall.net (Postfix) with ESMTP id 4B1542B81D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 May 2003 20:37:34 -0700 (PDT)
Message-Id: <20030529203621.J12202@cvs.tortall.net>
Date: Thu, 29 May 2003 20:37:34 -0700 (PDT)
From: Peter Johnson <freebsd@bilogic.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: devel/apr is compiled without threads support

>Number:         52796
>Category:       ports
>Synopsis:       devel/apr is compiled without threads support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 20:40:11 PDT 2003
>Closed-Date:    Sun Nov 02 13:01:37 PST 2003
>Last-Modified:  Sun Nov 02 13:01:37 PST 2003
>Originator:     Peter Johnson
>Release:        FreeBSD 4.8-RC i386
>Organization:
None
>Environment:
System: FreeBSD powerplant.home.bilogic.org 4.8-RC FreeBSD 4.8-RC #0: Wed
Mar 12 08:30:17 PST 2003
root@powerplant.home.bilogic.org:/usr/obj/usr/src/sys/WORKSTATION i386
>Description:
The devel/apr port is compiled without threads support.  As some
applications
(notably the Python bindings for Subversion) require APR threads support,
this
is a desired feature.
>How-To-Repeat:
devel/apr "make configure" reports Threading support ... no (or similar
message).
>Fix:
Add --enable-threads to the arguments passed to configure in
devel/apr/Makefile.


>Release-Note:
>Audit-Trail:

From: Peter Johnson <freebsd@bilogic.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/52796: devel/apr is compiled without threads support
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).
 
 -- 
 Peter Johnson
 
 

From: "Scot W. Hetzel" <hetzels@westbend.net>
To: "Peter Johnson" <freebsd@bilogic.org>
Cc: <FreeBSD-gnats-submit@FreeBSD.org>
Subject: Re: ports/52796: devel/apr is compiled without threads support
Date: Fri, 30 May 2003 16:24:05 -0500

 From: "Peter Johnson" <freebsd@bilogic.org>
 > 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
 

From: Craig Rodrigues <rodrigc@crodrigues.org>
To: freebsd-gnats-submit@freebsd.org
Cc: Peter Johnson <freebsd@bilogic.org>, rodrigc@crodrigues.org
Subject: Re: ports/52796: devel/apr is compiled without threads support
Date: Sun, 2 Nov 2003 11:54:42 -0500 (EST)

 Please close this PR.  I have submitted a patch:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=58834
 
 --
 Craig Rodrigues
 http://crodrigues.org
 rodrigc@crodrigues.org
State-Changed-From-To: open->closed 
State-Changed-By: sergei 
State-Changed-When: Sun Nov 2 13:00:33 PST 2003 
State-Changed-Why:  
Close this PR in favor of ports/58834 which contains a patch 
submitted by the port maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52796 
>Unformatted:
