Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2003 14:30:12 -0700 (PDT)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/52796: devel/apr is compiled without threads support
Message-ID:  <200305302130.h4ULUCcB079842@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/52796; it has been noted by GNATS.

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
 



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