<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=windows-1252"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
copied to [vm-dev]<br>
 <br>
Max Leske wrote:
<blockquote cite="mid:6ECB7816-E11C-40FE-9B3B-5BEA95743491@gmail.com"
 type="cite">
  <pre wrap="">On 09.08.2014, at 09:20, Max Leske <a class="moz-txt-link-rfc2396E" href="mailto:maxleske@gmail.com">&lt;maxleske@gmail.com&gt;</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">On 09.08.2014, at 08:39, Andreas Wacknitz <a class="moz-txt-link-rfc2396E" href="mailto:a.wacknitz@gmx.de">&lt;a.wacknitz@gmx.de&gt;</a> wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Am 09.08.2014 um 08:13 schrieb Andreas Wacknitz <a class="moz-txt-link-rfc2396E" href="mailto:a.wacknitz@gmx.de">&lt;a.wacknitz@gmx.de&gt;</a>:

      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi Max,

I had the same problems when I was building the VM for OpenSolaris.
My simple solution was to change the generated build/config.h such that the #include won’t happen:
Simply uncomment the line „#define HAVE_FEATURES_H 1“
        </pre>
      </blockquote>
      <pre wrap="">Upps, of course comment out this line :)
      </pre>
    </blockquote>
    <pre wrap="">Perfect! Thanks.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Lol, that wouldn’t even have been necessary in my case. The problem went away as soon as I realized that I hade used #buildUnix32 instead of #buildMacOSX32… *facepalm*.

Because I’m sick of doing everything by hand and reinventing the wheel every couple of weeks I’ve written a script that removes deprecated compiler flags, fixes invalid includes, updates the repo, gets the MacOSX10.6 SDK, checks for homebrew dependencies and so on. If you want to use it, just call it like so:

./build_vm_OSX10.9.sh /path/to/pharo-vm

The script is in my github repo: <a class="moz-txt-link-freetext" href="https://github.com/theseion/stuff/blob/master/build_vm_OSX10.9.sh">https://github.com/theseion/stuff/blob/master/build_vm_OSX10.9.sh</a>

Feel free to copy and modify it.

@Esteban
If you want you can put it into the pharo-vm repo too.

Cheers,
Max

  </pre>
  <blockquote type="cite">
    <pre wrap="">
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">Regards,
Andreas

Am 09.08.2014 um 00:19 schrieb Max Leske <a class="moz-txt-link-rfc2396E" href="mailto:maxleske@gmail.com">&lt;maxleske@gmail.com&gt;</a>:

        </pre>
        <blockquote type="cite">
          <pre wrap="">Apparently stuff has changed since I last built a VM. Now I can’t get past this annoying error:

-- Generating done
-- Build files have been written to: /Users/theseion/devel/git/pharo-vm/build
Scanning dependencies of target SqueakSSL
[  1%] Building C object SqueakSSL/CMakeFiles/SqueakSSL.dir/Users/theseion/devel/git/pharo-vm/src/plugins/SqueakSSL/SqueakSSL.c.o
In file included from /Users/theseion/devel/git/pharo-vm/src/plugins/SqueakSSL/SqueakSSL.c:21:
In file included from /Users/theseion/devel/git/pharo-vm/platforms/Cross/vm/sqVirtualMachine.h:24:
In file included from /Users/theseion/devel/git/pharo-vm/platforms/Cross/vm/sqMemoryAccess.h:18:
In file included from /Users/theseion/devel/git/pharo-vm/build/config.h:141:
/Users/theseion/devel/git/pharo-vm/platforms/unix/vm/glibc.h:1:10: fatal error: 'features.h' file not
  found
#include &lt;features.h&gt;
     ^
1 error generated.
make[2]: *** [SqueakSSL/CMakeFiles/SqueakSSL.dir/Users/theseion/devel/git/pharo-vm/src/plugins/SqueakSSL/SqueakSSL.c.o] Error 1
make[1]: *** [SqueakSSL/CMakeFiles/SqueakSSL.dir/all] Error 2
make: *** [all] Error 2


I’ve done everything suggested by the readme on github and I’ve symlinked /usr/include to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include just in case, but no luck so far. 

Any ideas?

Cheers,
Max
          </pre>
        </blockquote>
        <pre wrap="">
        </pre>
      </blockquote>
      <pre wrap="">
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>