Bug 30474

Summary: Cannot build audio/grip if devel/pth is installed
Product: Ports & Packages Reporter: chrise <chrise>
Component: Individual Port(s)Assignee: FUJISHIMA Satsuki <sf>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description chrise 2001-09-10 02:40:00 UTC
If devel/pth is already installed, building audio/grip fails with undefined references to pthread functions (e.g., __pthread_detach, __pthread_fork).

This problem was previously reported and ostensibly fixed: http://www.freebsd.org/cgi/query-pr.cgi?pr=28874

However, while this fix is successful if devel/pth is not installed, the problem recurrs if devel/pth is installed.

How-To-Repeat: cd /usr/ports/devel/pth && make

cd /usr/ports/audio/grip && make
Comment 1 Peter Pentchev 2001-09-10 09:44:05 UTC
On Sun, Sep 09, 2001 at 06:30:23PM -0700, Christopher Elkins wrote:
> 
> >Number:         30474
> >Category:       ports
> >Synopsis:       Cannot build audio/grip if devel/pth is installed
> >Originator:     Christopher Elkins
> >Release:        FreeBSD 4.3-RELEASE i386
> >Organization:
> >Environment:
> FreeBSD tlon 4.3-RELEASE FreeBSD 4.3-RELEASE #11: Mon Sep  3 17:49:01 PDT 2001     root@tlon:/usr/src/sys/compile/TLON  i386
> >Description:
> If devel/pth is already installed, building audio/grip fails with undefined references to pthread functions (e.g., __pthread_detach, __pthread_fork).

It's not only audio/grip that fails; *many* threaded applications will
fail if the devel/pth port is installed, including, IIRC, nearly all
the KDE and Gnome ports.  In short, the devel/pth port is not really
compatible with ports maintained for the FreeBSD native threads library.
"Fixing" that would probably be next to impossible - maintaining two
sets of patchfiles for each port which uses threads :)

G'luck,
Peter

-- 
If this sentence didn't exist, somebody would have invented it.
Comment 2 FUJISHIMA Satsuki freebsd_committer freebsd_triage 2001-09-11 16:49:06 UTC
State Changed
From-To: open->feedback

I fixed devel/pth. Please test in ports-current. 


Comment 3 FUJISHIMA Satsuki freebsd_committer freebsd_triage 2001-09-11 16:49:06 UTC
Responsible Changed
From-To: freebsd-ports->sf

I'll handle this.
Comment 4 FUJISHIMA Satsuki freebsd_committer freebsd_triage 2001-09-11 17:03:16 UTC
State Changed
From-To: feedback->closed

The originator confirmed this problem has been fixed.