<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I've run into this problem too while
      compiling ChucK for the Raspberry Pi.<br>
      <br>
      The solution is to edit util_string.cpp by adding this line:<br>
      <br>
      #include <limits.h><br>
      <br>
      I don't know why this wasn't an issue before, but it builds fine
      for me after this fix.<br>
      <br>
      Joel<br>
      <br>
      On 12/04/2013 09:16 AM, Jeff Jacobson wrote:<br>
    </div>
    <blockquote
cite="mid:CAGpM8aG8nPqwK=q120hvW=Un9mRen0HLmv6sYYaN=EVZqjHSbg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>After running 'make linux-alsa' things run smoothly until:</div>
        <div><br>
        </div>
        <div>
          <div>g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__
            -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c
            ulib_regex.cpp -o ulib_regex.o</div>
          <div>ulib_regex.cpp: In function ‘void regex_replace(void*,
            Chuck_DL_Return*, Chuck_VM_Shred*, CK_DL_API)’:</div>
          <div>ulib_regex.cpp:308:19: warning: converting to non-pointer
            type ‘long int’ from NULL [-Wconversion-null]</div>
          <div>     RETURN->v_int = NULL;</div>
          <div>                   ^</div>
          <div>ulib_regex.cpp: In function ‘void regex_replaceAll(void*,
            Chuck_DL_Return*, Chuck_VM_Shred*, CK_DL_API)’:</div>
          <div>ulib_regex.cpp:397:19: warning: converting to non-pointer
            type ‘long int’ from NULL [-Wconversion-null]</div>
          <div>     RETURN->v_int = NULL;</div>
          <div>                   ^</div>
          <div>g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__
            -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c
            util_buffers.cpp -o util_buffers.o</div>
          <div>g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__
            -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c
            util_console.cpp -o util_console.o</div>
          <div>g++ -I. -Ilo -O3 -D__LINUX_ALSA__ -D__PLATFORM_LINUX__
            -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__  -c
            util_string.cpp -o util_string.o</div>
          <div>util_string.cpp: In function ‘std::string
            get_full_path(const string&)’:</div>
          <div>util_string.cpp:393:14: error: ‘PATH_MAX’ was not
            declared in this scope</div>
          <div>     char buf[PATH_MAX];</div>
          <div>              ^</div>
          <div>util_string.cpp:395:42: error: ‘buf’ was not declared in
            this scope</div>
          <div>     char * result = realpath(fp.c_str(), buf);</div>
          <div>                                          ^</div>
          <div>makefile:144: recipe for target 'util_string.o' failed</div>
          <div>make: *** [util_string.o] Error 1</div>
        </div>
        <div><br>
        </div>
        <div>My googling found no similar errors.  Versions of
          dependencies are as follows:</div>
        <div><br>
        </div>
        <div>alsa-lib 1.0.27.2-1</div>
        <div>alsa-utils 1.0.27.2-1<br>
        </div>
        <div>libsndfile 1.0.25-3<br>
        </div>
        <div>
          <div>gcc 4.8.2-5</div>
        </div>
        <div>flex 2.5.37-1<br>
        </div>
        <div>bison 3.0.1-1<br>
        </div>
        <div>make 4.0-1<br>
        </div>
        <div><br>
        </div>
        <div>I'm new to building software from source so I apologize if
          this is a beginner's misunderstanding.  Thanks for any help
          you can give me; I'm looking forward to trying ChucK.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
chuck-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>