Subject: pkg/24601: threading problems with pkgsrc and FreeBSD 4 - bl3 bug?
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 02/29/2004 13:21:46
>Number: 24601
>Category: pkg
>Synopsis: threading problems with pkgsrc and FreeBSD 4 - bl3 bug?
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 29 13:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Michal Pasternak
>Release: N/A
>Organization:
>Environment:
N/A
>Description:
SUMMARY:
========
No matter, which switches I use in mk/pthread.buildlink3.mk for
BUILDLINK_LDADD.pthread and BUILDLINK_CFLAGS.pthread, many threading
apps don't want to build on FreeBSD4.
x11/gtk2:
=========
Points, where the build breaks, are gdk-pixbuf, gtk-demo and tests.
Errors? Many lines about function pthread_* not found in libghtread.so.
As I have seen in x11/gtk2/patches, pkgsrc uses "LDFLAGS" to add some
extra libraries to command line options for buildling gtk2.
Explicit adding "LDFLAGS+=-lc_r" or (more correct) "-pthread" to
x11/gtk2/Makefile helps, but it is not a solution, it's just a hack.
devel/libglade2:
================
Okay, when I have gtk2, I try to build libglade2. It breaks while
compiling test-libglade.c . Adding "-pthread" to "LIBGLADE_LIBS" helps.
devel/glade2:
=============
I'll add information about it later.
>How-To-Repeat:
Obvious.
>Fix:
You tell me. Is it bl3 fault? If not - do I have to patch all those
files just to add ${PTHREAD_LDFLAGS}? If not - what else?
As gtk2 is *CRITICAL* for my job, I request any assistance you can
provide with fixing this bug. It worked okay with bl2, so I assume
the problem is connected with recent transition to bl3.
>Release-Note:
>Audit-Trail:
>Unformatted: