NetBSD Problem Report #56750
From www@netbsd.org Mon Mar 14 12:40:09 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 1ABDE1A921F
for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Mar 2022 12:40:09 +0000 (UTC)
Message-Id: <20220314124007.BD12F1A9239@mollari.NetBSD.org>
Date: Mon, 14 Mar 2022 12:40:07 +0000 (UTC)
From: pekdon@gmail.com
Reply-To: pekdon@gmail.com
To: gnats-bugs@NetBSD.org
Subject: audio/pulseaudio fails to build on Solaris 10
X-Send-Pr-Version: www-1.0
>Number: 56750
>Category: pkg
>Synopsis: audio/pulseaudio fails to build on Solaris 10
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 14 12:45:00 +0000 2022
>Originator: Claes Nästén
>Release: trunk 2022-03-13
>Organization:
>Environment:
SunOS 5.10 sun4v sparc SUNW,SPARC-Enterprise-T2000
>Description:
Building audio/pulseaudio under Solaris 10 fails due to missing -lrt in the LDFLAGS and missing SCM_TIMESTAMP define.
>How-To-Repeat:
Build audio/pulseaudio on Solaris 10
>Fix:
Add -lrt to LDFLAGS.SunOS
And the following patch to allow building without SCM_TIMESTAMP
--- src/modules/rtp/rtp-native.c.orig 2021-12-01 19:00:54.305300122 +0000
+++ src/modules/rtp/rtp-native.c
@@ -352,6 +352,7 @@ int pa_rtp_recv(pa_rtp_context *c, pa_me
pa_memchunk_reset(&c->memchunk);
}
+#ifdef SCM_TIMESTAMP
for (cm = CMSG_FIRSTHDR(&m); cm; cm = CMSG_NXTHDR(&m, cm))
if (cm->cmsg_level == SOL_SOCKET && cm->cmsg_type == SCM_TIMESTAMP) {
memcpy(tstamp, CMSG_DATA(cm), sizeof(struct timeval));
@@ -361,6 +362,9 @@ int pa_rtp_recv(pa_rtp_context *c, pa_me
if (!found_tstamp) {
pa_log_warn("Couldn't find SCM_TIMESTAMP data in auxiliary recvmsg() data!");
+#else // !SCM_TIMESTAMP
+ {
+#endif // SCM_TIMESTAMP
pa_zero(*tstamp);
}
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.