Subject: pkg/24601: threading problems with pkgsrc and FreeBSD 4 - bl3 bug?
To: None <>
From: None <>
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
>Originator:     Michal Pasternak
>Release:        N/A
No matter, which switches I use in mk/ for 
BUILDLINK_LDADD.pthread and BUILDLINK_CFLAGS.pthread, many threading 
apps don't want to build on FreeBSD4.

Points, where the build breaks, are gdk-pixbuf, gtk-demo and tests.
Errors? Many lines about function pthread_* not found in

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.

Okay, when I have gtk2, I try to build libglade2. It breaks while 
compiling test-libglade.c . Adding "-pthread" to "LIBGLADE_LIBS" helps.

I'll add information about it later.

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.