Sublime Forum

ST3: Issues with JavaC when building(MacOS)

#1

For some reason that I cannot figure out, whenever I try to build any java file, I get this

[Finished in 0.5s with exit code -5]
[shell_cmd: javac “/Code/myTestFile.java”]
[dir: /Code/]
[path: /usr/bin:/bin:/usr/sbin:/sbin]dyld: lazy symbol binding failed: Symbol not found: _dirfd
Referenced from: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dirfd
Referenced from: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
Expected in: /usr/lib/libSystem.B.dylib

It does not occur with ST2 and works every time. The file that I am using is a simply Hello World that compiles everywhere else and runs without any errors.

0 Likes

#2

I appear to be having this same issue. Sublime Text 3, build 3010. Mac OS 10.7.4.

[Finished in 2.7s with exit code -5]
[cmd: ['/Users/todd/bin/push', '/Users/todd/a_test.rb']]
[dir: /Users/todd]
[path: /usr/bin:/bin:/usr/sbin:/sbin]dyld: lazy symbol binding failed: Symbol not found: _dirfd
  Referenced from: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dirfd
  Referenced from: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
  Expected in: /usr/lib/libSystem.B.dylib

Here is my build file:

{
  "cmd": "/Users/todd/bin/push", "$file"]
}
0 Likes

#3

Same issue here, exact errors, build file as

{ "cmd": "/usr/bin/unison", "-ui", "text", "-batch", "-force", "/Users/chas/src/project-rel-1.1", "/Users/chas/src/project-rel-1.1", "ssh://sub.example.net//var/www/html/chas/project-rel-1.1"] }

Error was, in part:

[path: /usr/bin:/bin:/usr/sbin:/sbin]dyld: lazy symbol binding failed: Symbol not found: _dirfd
Referenced from: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dirfd
Referenced from: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
Expected in: /usr/lib/libSystem.B.dylib

Build 3010, Mac OS X 10.7.5

0 Likes

#4

Hooray, this appears to be fixed in build 3012.

0 Likes