NetBSD Problem Report #41219
From www@NetBSD.org Wed Apr 15 09:26:27 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 2D94863C1F9
for <gnats-bugs@gnats.netbsd.org>; Wed, 15 Apr 2009 09:26:27 +0000 (UTC)
Message-Id: <20090415092626.C5F7D63B8A5@www.NetBSD.org>
Date: Wed, 15 Apr 2009 09:26:26 +0000 (UTC)
From: cheusov@tut.by
Reply-To: cheusov@tut.by
To: gnats-bugs@NetBSD.org
Subject: audio/jack fails to build under Linux [patch]
X-Send-Pr-Version: www-1.0
>Number: 41219
>Category: pkg
>Synopsis: audio/jack fails to build under Linux [patch]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 15 09:30:00 +0000 2009
>Closed-Date: Wed Apr 15 12:27:36 +0000 2009
>Last-Modified: Wed Apr 15 12:30:05 +0000 2009
>Originator: Aleksey Cheusov
>Release: linux
>Organization:
home
>Environment:
linux
>Description:
audio/jack fails under Linux like this
gcc -DHAVE_CONFIG_H -I. -I.. -I/tmp/obj_pkgsrc/audio/jack/work/.buildlink/include -I../config -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -O2 -DDEVOSSAUDIO=\"/dev/audio\" -I/usr/include/nptl -pthread -DJACK_LOCATION=\"/usr/pkg/bin\" -Wall -g -O2 -DDEVOSSAUDIO=\"/dev/audio\" -pthread -MT libjack_la-client.lo -MD -MP -MF .deps/libjack_la-client.Tpo -c client.c -fPIC -DPIC -o .libs/libjack_la-client.o
In file included from client.c:42:
../jack/engine.h:83: error: expected specifier-qualifier-list before 'pthread_rwlock_t'
client.c: In function 'jack_client_alloc_internal':
client.c:356: error: 'jack_engine_t' has no member named 'port_segment'
*** Error code 1
This happens because for some unknown reason pthread_rwlock_t declaration in GLIBC is "hidden" under #defines.
To fix the problem it is enough to add _GNU_SOURCE to CFLAGS.
Full report is here
http://mova.org/~cheusov/pub/pkgsrc-distbb/Linux/current/logs/20090410.2105/audio_jack_jack-0.115.1/stage_build.html
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/jack/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 16 Nov 2008 11:55:19 -0000 1.13
+++ Makefile 15 Apr 2009 09:20:16 -0000
@@ -35,6 +35,7 @@
CONFIGURE_ARGS+= --enable-timestamps
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
+CFLAGS.Linux+= -D_GNU_SOURCE
CONFIGURE_ENV+= ac_cv_header_readline_chardefs_h=yes
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 15 Apr 2009 12:27:36 +0000
State-Changed-Why:
Committed, thanks.
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/41219 CVS commit: pkgsrc/audio/jack
Date: Wed, 15 Apr 2009 12:27:16 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Wed Apr 15 12:27:16 UTC 2009
Modified Files:
pkgsrc/audio/jack: Makefile
Log Message:
Build fix (untested by me):
Define _GNU_SOURCE on Linux.
From Aleksey Cheusov in PR 41219.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/audio/jack/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.