pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56750: audio/pulseaudio fails to build on Solaris 10



>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);
     }
 



Home | Main Index | Thread Index | Old Index