{"action":"created","issue":{"url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1206","labels_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1206/labels{/name}","comments_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1206/comments","events_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1206/events","html_url":"https://github.com/sparklemotion/nokogiri/issues/1206","id":51362569,"number":1206,"title":"Compile issue on OS X Mavericks 10.9.5","user":{"login":"baburdick","id":24587,"avatar_url":"https://avatars.githubusercontent.com/u/24587?v=3","gravatar_id":"","url":"https://api.github.com/users/baburdick","html_url":"https://github.com/baburdick","followers_url":"https://api.github.com/users/baburdick/followers","following_url":"https://api.github.com/users/baburdick/following{/other_user}","gists_url":"https://api.github.com/users/baburdick/gists{/gist_id}","starred_url":"https://api.github.com/users/baburdick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baburdick/subscriptions","organizations_url":"https://api.github.com/users/baburdick/orgs","repos_url":"https://api.github.com/users/baburdick/repos","events_url":"https://api.github.com/users/baburdick/events{/privacy}","received_events_url":"https://api.github.com/users/baburdick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sparklemotion/nokogiri/labels/osx","name":"osx","color":"fbca04"},{"url":"https://api.github.com/repos/sparklemotion/nokogiri/labels/will-close","name":"will-close","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2014-12-08T22:37:47Z","updated_at":"2015-08-31T23:34:53Z","closed_at":null,"body":"Despite saying that it's using a special bundled libxml2, the process fails to find it. Here is the interesting excerpt from `~/.rvm/gems/ruby-2.1.2@my_service/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.5/mkmf.log`. Suspicious lines (there is no \"travis\" user on my system):\r\n```\r\nld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'\r\nld: library not found for -llibxml2\r\n```\r\n\r\n```\r\nconftest.c:15:27: error: too few arguments to function call, single argument 'cur' was not specified\r\nint t(void) { xmlParseDoc(); return 0; }\r\n              ~~~~~~~~~~~ ^\r\n/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/include/libxml2/libxml/parser.h:841:11: note: 'xmlParseDoc' declared here\r\nXMLPUBFUN xmlDocPtr XMLCALL\r\n          ^\r\n```\r\n\r\n```\r\nhave_library: checking for xmlParseDoc() in -llibxml2... -------------------- no\r\n\r\n\"gcc -o conftest -I/Users/bruce/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/bruce/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/bruce/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -I/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/include -I/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/include/libxml2 -I/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/include/libxml2 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_LIBXML2_PATH\\=\\\"/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2\\\" -DNOKOGIRI_LIBXML2_PATCHES\\=\\\"0001-Revert-Missing-initialization-for-the-catalog-module.patch\\ 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch\\\" -DNOKOGIRI_LIBXSLT_PATH\\=\\\"/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28\\\" -DNOKOGIRI_LIBXSLT_PATCHES\\=\\\"0001-Adding-doc-update-related-to-1.1.28.patch\\ 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch\\ 0003-Initialize-pseudo-random-number-generator-with-curre.patch\\ 0004-EXSLT-function-str-replace-is-broken-as-is.patch\\ 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch\\ 0007-Separate-function-for-predicate-matching-in-patterns.patch\\ 0008-Fix-direct-pattern-matching.patch\\ 0009-Fix-certain-patterns-with-predicates.patch\\ 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch\\ 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch\\ 0014-Fix-for-bug-436589.patch\\ 0015-Fix-mkdir-for-mingw.patch\\\" -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe  -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/bruce/.rvm/rubies/ruby-2.1.2/lib -L/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib -L/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib -L. -L/Users/travis/.sm/pkg/active/lib -fPIC -Bstatic -fstack-protector   -arch x86_64  /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a -llzma -lruby-static -framework CoreFoundation -llibxml2 /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a -llzma -lpthread -ldl -lobjc  \"\r\nld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'\r\nld: library not found for -llibxml2\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nchecked program was:\r\n/* begin */\r\n 1: #include \"ruby.h\"\r\n 2: \r\n 3: #include <libxml/parser.h>\r\n 4: \r\n 5: /*top*/\r\n 6: extern int t(void);\r\n 7: int main(int argc, char **argv)\r\n 8: {\r\n 9:   if (argc > 1000000) {\r\n10:     printf(\"%p\", &t);\r\n11:   }\r\n12: \r\n13:   return 0;\r\n14: }\r\n15: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return 0; }\r\n/* end */\r\n\r\n\"gcc -o conftest -I/Users/bruce/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/bruce/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/bruce/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -I/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/include -I/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/include/libxml2 -I/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/include/libxml2 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_LIBXML2_PATH\\=\\\"/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2\\\" -DNOKOGIRI_LIBXML2_PATCHES\\=\\\"0001-Revert-Missing-initialization-for-the-catalog-module.patch\\ 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch\\\" -DNOKOGIRI_LIBXSLT_PATH\\=\\\"/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28\\\" -DNOKOGIRI_LIBXSLT_PATCHES\\=\\\"0001-Adding-doc-update-related-to-1.1.28.patch\\ 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch\\ 0003-Initialize-pseudo-random-number-generator-with-curre.patch\\ 0004-EXSLT-function-str-replace-is-broken-as-is.patch\\ 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch\\ 0007-Separate-function-for-predicate-matching-in-patterns.patch\\ 0008-Fix-direct-pattern-matching.patch\\ 0009-Fix-certain-patterns-with-predicates.patch\\ 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch\\ 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch\\ 0014-Fix-for-bug-436589.patch\\ 0015-Fix-mkdir-for-mingw.patch\\\" -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe  -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/bruce/.rvm/rubies/ruby-2.1.2/lib -L/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib -L/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib -L. -L/Users/travis/.sm/pkg/active/lib -fPIC -Bstatic -fstack-protector   -arch x86_64  /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a -llzma -lruby-static -framework CoreFoundation -llibxml2 /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/lib/libxml2.a -llzma -lpthread -ldl -lobjc  \"\r\nconftest.c:15:27: error: too few arguments to function call, single argument 'cur' was not specified\r\nint t(void) { xmlParseDoc(); return 0; }\r\n              ~~~~~~~~~~~ ^\r\n/Users/bruce/.rvm/gems/ruby-2.1.2@my_service/gems/nokogiri-1.6.5/ports/x86_64-apple-darwin13.1.0/libxml2/2.9.2/include/libxml2/libxml/parser.h:841:11: note: 'xmlParseDoc' declared here\r\nXMLPUBFUN xmlDocPtr XMLCALL\r\n          ^\r\n1 error generated.\r\nchecked program was:\r\n/* begin */\r\n 1: #include \"ruby.h\"\r\n 2: \r\n 3: #include <libxml/parser.h>\r\n 4: \r\n 5: /*top*/\r\n 6: extern int t(void);\r\n 7: int main(int argc, char **argv)\r\n 8: {\r\n 9:   if (argc > 1000000) {\r\n10:     printf(\"%p\", &t);\r\n11:   }\r\n12: \r\n13:   return 0;\r\n14: }\r\n15: int t(void) { xmlParseDoc(); return 0; }\r\n/* end */\r\n\r\n--------------------\r\n```"},"comment":{"url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/comments/136527731","html_url":"https://github.com/sparklemotion/nokogiri/issues/1206#issuecomment-136527731","issue_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1206","id":136527731,"user":{"login":"baburdick","id":24587,"avatar_url":"https://avatars.githubusercontent.com/u/24587?v=3","gravatar_id":"","url":"https://api.github.com/users/baburdick","html_url":"https://github.com/baburdick","followers_url":"https://api.github.com/users/baburdick/followers","following_url":"https://api.github.com/users/baburdick/following{/other_user}","gists_url":"https://api.github.com/users/baburdick/gists{/gist_id}","starred_url":"https://api.github.com/users/baburdick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baburdick/subscriptions","organizations_url":"https://api.github.com/users/baburdick/orgs","repos_url":"https://api.github.com/users/baburdick/repos","events_url":"https://api.github.com/users/baburdick/events{/privacy}","received_events_url":"https://api.github.com/users/baburdick/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T23:34:53Z","updated_at":"2015-08-31T23:34:53Z","body":"Very much agreed with @cabo, here. I use MacPorts and Fink because I know them well and because they continue to work (MacPorts more so than Fink). I respect Homebrew. But it doesn't have what I want and need. I don't view it as a clear improvement over MacPorts. It's simply a different approach among several."}}