ports/52796: devel/apr is compiled without threads support

Scot W. Hetzel hetzels at westbend.net
Fri May 30 21:30:13 UTC 2003


The following reply was made to PR ports/52796; it has been noted by GNATS.

From: "Scot W. Hetzel" <hetzels at westbend.net>
To: "Peter Johnson" <freebsd at bilogic.org>
Cc: <FreeBSD-gnats-submit at 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 at 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
 



More information about the freebsd-ports-bugs mailing list