<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PulseAudio fails to build on musl libc"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=85319">85319</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PulseAudio fails to build on musl libc
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>clandmeter@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm receiving the following error when building PA 5.0 on Musl libc.

utils/padsp.c:2376:5: error: conflicting types for 'ioctl'
 int ioctl(int fd, unsigned long request, ...) {
     ^
In file included from utils/padsp.c:36:0:
/usr/include/sys/ioctl.h:9:5: note: previous declaration of 'ioctl' was here
 int ioctl (int, int, ...);
     ^
utils/padsp.c:2516:5: error: redefinition of 'stat'
 int stat64(const char *pathname, struct stat64 *buf) {
     ^
In file included from utils/padsp.c:40:0:
/usr/include/sys/stat.h:73:5: note: previous definition of 'stat' was here
 int stat(const char *__restrict, struct stat *__restrict);
     ^
utils/padsp.c:2550:5: warning: no previous prototype for 'open64'
[-Wmissing-prototypes]
 int open64(const char *filename, int flags, ...) {
     ^
utils/padsp.c:2574:5: warning: no previous prototype for '__open64_2'
[-Wmissing-prototypes]
 int __open64_2(const char *filename, int flags) {
     ^
utils/padsp.c:2676:7: error: redefinition of 'fopen'
 FILE *fopen64(const char *filename, const char *mode) {
       ^
In file included from utils/padsp.c:46:0:
/usr/include/stdio.h:63:7: note: previous definition of 'fopen' was here
 FILE *fopen(const char *__restrict, const char *__restrict);
       ^
Makefile:8164: recipe for target 'utils/libpulsedsp_la-padsp.lo' failed
make[3]: *** [utils/libpulsedsp_la-padsp.lo] Error 1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>