<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Also note/try:</p>
    <div>    $ ./autogen.sh</div>
    <div>    $ ./configure</div>
    <div>    $ make app</div>
    <div><br>
    </div>
    <div>I'd never used:<br>
    </div>
    <div><br>
    </div>
    <div>    $ make all</div>
    <div><br>
    </div>
    <div>--<br>
    </div>
    <pre class="moz-signature" cols="72">Mensaje telepatico asistido por maquinas.</pre>
    <div class="moz-cite-prefix">On 12/9/2020 11:53 AM, Christof Ressi
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:3fd5faa7-f838-c448-e7cb-e5f2553670fa@christofressi.com">
      
      <p> </p>
      <blockquote type="cite"> indicating that _WIN32 is not defined.</blockquote>
      <blockquote type="cite">So if I instead build with
        CFLAGS=-D_WIN32, I get a different set of errors while building
        s_inter.c</blockquote>
      <p> If "_WIN32" is not defined by the compiler, something is going
        very wrong...</p>
      <p> </p>
      <blockquote type="cite">usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld:
        pd-s_audio_oss.o: in function `oss_open_audio':</blockquote>
      This files should never be built on Windows in the first place.
      Can you post the full output of the "./configure" and "make"
      command and attach them as text files?<br>
      <p>Just for the record, can you successfully build other software
        with Msys2? Just to rule out a general problem with your Msys2
        installation.</p>
      <p>Christof<br>
      </p>
      <div class="moz-cite-prefix">On 09.12.2020 15:19, David Rush
        wrote:<br>
      </div>
      <blockquote type="cite" cite="mid:CAA_wS4ULc_ky5cmRv4aKFif3_8o0ShpaecfS=g_j48b3UmX30Q@mail.gmail.com">
        <div dir="ltr">Hi -
          <div><br>
          </div>
          <div>I imagine that this is somehow my mistake, but I am
            having persistent problems with building PD 0.51.x from git
            under the latest MSys2/Mingw64 gcc</div>
          <div><br>
          </div>
          <div>    $ gcc --version<br>
                gcc (GCC) 10.2.0<br>
                Copyright (C) 2020 Free Software Foundation, Inc.<br>
                This is free software; see the source for copying
            conditions.  There is NO<br>
                warranty; not even for MERCHANTABILITY or FITNESS FOR A
            PARTICULAR PURPOSE.<br>
            <br>
                $ gcc -dumpmachine<br>
                x86_64-pc-msys<br>
            <div><br>
            </div>
            <div>The issues seem to center around various WIN32
              compatibility hacks. If I use the usual</div>
            <div><br>
            </div>
            <div>    $ ./autogen.sh</div>
            <div>    $ ./configure</div>
            <div>    $ make clean</div>
            <div>    $ make all</div>
            <div><br>
            </div>
            <div>the build fails while linking pd.exe</div>
            <div><br>
            </div>
            <div>   
              /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld:
              pd-s_audio_oss.o: in function `oss_open_audio':<br>
                  /c/Users/User/git/pure-data/src/s_audio_oss.c:305:
              undefined reference to `sys_setalarm'<br>
                 
              /c/Users/User/git/pure-data/src/s_audio_oss.c:305:(.text+0xee3):
              relocation truncated to fit: R_X86_64_PC32 against
              undefined symbol `sys_setalarm'<br>
                 
              /usr/lib/gcc/x86_64-pc-msys/10.2.0/../../../../x86_64-pc-msys/bin/ld:
              /c/Users/User/git/pure-data/src/s_audio_oss.c:394:
              undefined reference to `sys_setalarm'<br>
            </div>
            <div><br>
            </div>
            <div>    &cet<br>
              <br>
              interestingly, that build also generates a warning message
              while compiling s_inter.c (which defines sys_setalarm()
              under the right set of compiler flags) indicating that
              _WIN32 is not defined.<br>
              <br>
                  s_inter.c: In function ‘sys_init_deken’:<br>
                  s_inter.c:998:4: warning: #warning unknown OS [-Wcpp]<br>
                    998 | #  warning unknown OS<br>
              <br>
              So if I instead build with CFLAGS=-D_WIN32, I get a
              different set of errors while building s_inter.c<br>
              <br>
                  /usr/include/w32api/psdk_inc/_fd_types.h:100:2:
              warning: #warning "fd_set and associated macros have been
              defined in sys/types.      This can cause runtime problems
              with W32 sockets" [-Wcpp]<br>
                  /usr/include/w32api/winsock2.h:1025:34: error:
              conflicting types for ‘select’<br>
                  s_inter.c:217:52: warning: passing argument 5 of
              ‘select’ from incompatible pointer type
              [-Wincompatible-pointer-types]<br>
                  /usr/include/w32api/winsock2.h:1025:116: note:
              expected ‘PTIMEVAL’ {aka ‘struct __ms_timeval * const’}
              but argument is of type ‘struct timeval *’<br>
                  s_inter.c:490:17: warning: implicit declaration of
              function ‘write’; did you mean ‘fwrite’?
              [-Wimplicit-function-declaration]<br>
                  s_inter.c:1305:20: warning: implicit declaration of
              function ‘_spawnl’; did you mean ‘spawnl’?
              [-Wimplicit-function-declaration]<br>
                  s_inter.c:1305:28: error: ‘P_NOWAIT’ undeclared (first
              use in this function)<br>
                  s_inter.c:1493:10: warning: implicit declaration of
              function ‘_exit’ [-Wimplicit-function-declaration]<br>
                  s_inter.c:1493:10: warning: incompatible implicit
              declaration of built-in function ‘_exit’<br>
              <br>
              Could someone please enlighten me? Or point me to relevant
              documentation? ig gcc 10.2.0 known to be problematic?<br>
              <br>
              TIA</div>
            <div>-- <br>
            </div>
            <div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">GPG Public key at <a href="http://cyber-rush.org/drr/gpg-public-key.txt" target="_blank" moz-do-not-send="true">http://cyber-rush.org/drr/gpg-public-key.txt</a></div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
Pd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at" moz-do-not-send="true">Pd-dev@lists.iem.at</a>
<a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-dev</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Pd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a>
<a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev">https://lists.puredata.info/listinfo/pd-dev</a>
</pre>
    </blockquote>
  </body>
</html>