JuliaLang/julia — Issue #556: OSX make fails: dirpath.c:118: error: expected ‘{’ at end of input
Author: ajacksified
Created: 2012-03-09 21:20:34+00:00
State: open

Error received:

`
dirpath.c:118: error: expected ‘{’ at end of input
make[2]: *** [dirpath.o] Error 1
make[1]: *** [support/libsupport.a] Error 2
make: *** [julia-release] Error 2
`

File: julia/src/support/dirpath.c

Relevant code:
`
#elif defined(__APPLE__)
#include
char *get_exename(char *buf, size_t size)
{
ProcessSerialNumber PSN;
FSRef ref;

if (GetCurrentProcess(&PSN) < 0 ||
GetProcessBundleLocation(&PSN, &ref) < 0 ||
FSRefMakePath(&ref, (uint8_t*)buf, size) < 0)
return NULL;

return buf;
} <-- Line 118
#endif
`

Using commit 03dfb02