{"action":"created","issue":{"url":"https://api.github.com/repos/politza/pdf-tools/issues/443","repository_url":"https://api.github.com/repos/politza/pdf-tools","labels_url":"https://api.github.com/repos/politza/pdf-tools/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/politza/pdf-tools/issues/443/comments","events_url":"https://api.github.com/repos/politza/pdf-tools/issues/443/events","html_url":"https://github.com/politza/pdf-tools/issues/443","id":377582622,"node_id":"MDU6SXNzdWUzNzc1ODI2MjI=","number":443,"title":"macOS mojave fails to build","user":{"login":"hyiltiz","id":3246683,"node_id":"MDQ6VXNlcjMyNDY2ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/3246683?v=4","gravatar_id":"","url":"https://api.github.com/users/hyiltiz","html_url":"https://github.com/hyiltiz","followers_url":"https://api.github.com/users/hyiltiz/followers","following_url":"https://api.github.com/users/hyiltiz/following{/other_user}","gists_url":"https://api.github.com/users/hyiltiz/gists{/gist_id}","starred_url":"https://api.github.com/users/hyiltiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyiltiz/subscriptions","organizations_url":"https://api.github.com/users/hyiltiz/orgs","repos_url":"https://api.github.com/users/hyiltiz/repos","events_url":"https://api.github.com/users/hyiltiz/events{/privacy}","received_events_url":"https://api.github.com/users/hyiltiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T21:07:06Z","updated_at":"2018-11-05T21:44:07Z","closed_at":null,"author_association":"NONE","body":"I tried the following:\r\n- follow the instructions\r\n- manually do `autoconf` and `./configure`\r\n- point `gcc` (llvm in disguise) to `glib.h` via `-I` flag\r\n- reinstall `glib` via homebrew\r\n- reinstall `automake` and `poppler` via homebrew\r\n- reinstall `CommandLineTools` for macOS (this failed as macOS failed to find \"an appropriate update\", so I put back the tools folder from the backup)\r\n- `CXXFLAGS='-O2 -g --std=c++11' make distclean all`\r\n- installing directly from `melpa` also fails upon running `(pdf-tools-install)`\r\n\r\nSoftware version:\r\n```\r\npdf-tools version: b6c0e4f3bb8d57818c51f27c12b9235d39bec8d3 (from master)\r\nmacOS version: 10.14.1 (18B75)\r\nHomebrew 1.8.1-52-gc694532\r\nHomebrew/homebrew-core (git revision d4010; last commit 2018-11-05)\r\nHomebrew/homebrew-cask (git revision a7b42; last commit 2018-11-05)\r\n```\r\n\r\n```\r\n$ env CXXFLAGS='-O2 -g --std=c++11' make distclean all\r\nUsing Emacs 26.1\r\n! [ -f server/Makefile ] || make -C server clean\r\nmake[1]: Entering directory '/Users/me/Documents/Github/pdf-tools/server'\r\ntest -z \"epdfinfo\" || rm -f epdfinfo\r\ntest -z \"libsynctex.a\" || rm -f libsynctex.a\r\nrm -f *.o\r\nmake[1]: Leaving directory '/Users/me/Documents/Github/pdf-tools/server'\r\nrm -f -- pdf-tools-0.90.tar\r\nrm -f -- lisp/*.elc\r\nrm -f -- pdf-tools-readme.txt\r\nrm -f -- pdf-tools-0.90.entry\r\n! [ -f server/Makefile ] || make -C server distclean\r\nmake[1]: Entering directory '/Users/me/Documents/Github/pdf-tools/server'\r\ntest -z \"epdfinfo\" || rm -f epdfinfo\r\ntest -z \"libsynctex.a\" || rm -f libsynctex.a\r\nrm -f *.o\r\nrm -f *.tab.c\r\ntest -z \"\" || rm -f\r\ntest . = \".\" || test -z \"\" || rm -f\r\nrm -f config.h stamp-h1\r\nrm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags\r\nrm -f cscope.out cscope.in.out cscope.po.out cscope.files\r\nrm -f config.status config.cache config.log configure.lineno config.status.lineno\r\nrm -f ./.deps/epdfinfo-epdfinfo.Po\r\nrm -f ./.deps/epdfinfo-poppler-hack.Po\r\nrm -f ./.deps/libsynctex_a-synctex_parser.Po\r\nrm -f ./.deps/libsynctex_a-synctex_parser_utils.Po\r\nrm -f Makefile\r\nmake[1]: Leaving directory '/Users/me/Documents/Github/pdf-tools/server'\r\nrm -rf -- .cask\r\ncask install\r\ncd server && ./configure -q\r\n\r\nIs case-sensitive searching enabled ?     yes\r\nIs modifying text annotations enabled ?   yes\r\nIs modifying markup annotations enabled ? yes\r\n\r\nmake -C server\r\nmake[1]: Entering directory '/Users/me/Documents/Github/pdf-tools/server'\r\nmake  all-am\r\nmake[2]: Entering directory '/Users/me/Documents/Github/pdf-tools/server'\r\ngcc -DHAVE_CONFIG_H -I.    -Wall -I/usr/local/Cellar/glib/2.58.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/poppler/0.71.0/include/poppler/glib -I/usr/local/Cellar/poppler/0.71.0/include/poppler -I/usr/local/Cellar/cairo/1.16.0/include/cairo -I/usr/local/Cellar/glib/2.58.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.35/include/libpng16 -I/usr/local/Cellar/poppler/0.71.0/include/poppler -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/libpng/1.6.35/include/libpng16 -g -O2 -MT epdfinfo-epdfinfo.o -MD -MP -MF .deps/epdfinfo-epdfinfo.Tpo -c -o epdfinfo-epdfinfo.o `test -f 'epdfinfo.c' || echo './'`epdfinfo.c\r\nepdfinfo.c:354:19: warning: 'tempnam' is deprecated: This function is provided for\r\n      compatibility reasons only. Due to security concerns inherent in the design of\r\n      tempnam(3), it is highly recommended that you use mkstemp(3) instead.\r\n      [-Wdeprecated-declarations]\r\n      filename =  tempnam(NULL, \"epdfinfo\");\r\n                  ^\r\n/usr/include/stdio.h:306:1: note: 'tempnam' has been explicitly marked deprecated\r\n      here\r\n__deprecated_msg(\"This function is provided for compatibility reasons only.  ...\r\n^\r\n/usr/include/sys/cdefs.h:180:48: note: expanded from macro '__deprecated_msg'\r\n        #define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))\r\n                                                      ^\r\n1 warning generated.\r\nmv -f .deps/epdfinfo-epdfinfo.Tpo .deps/epdfinfo-epdfinfo.Po\r\ng++ -DHAVE_CONFIG_H -I.    -Wall -Wall -I/usr/local/Cellar/glib/2.58.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/poppler/0.71.0/include/poppler/glib -I/usr/local/Cellar/poppler/0.71.0/include/poppler -I/usr/local/Cellar/cairo/1.16.0/include/cairo -I/usr/local/Cellar/glib/2.58.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.35/include/libpng16 -I/usr/local/Cellar/poppler/0.71.0/include/poppler -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/libpng/1.6.35/include/libpng16 -std=c++11 -O2 -g --std=c++11 -MT epdfinfo-poppler-hack.o -MD -MP -MF .deps/epdfinfo-poppler-hack.Tpo -c -o epdfinfo-poppler-hack.o `test -f 'poppler-hack.cc' || echo './'`poppler-hack.cc\r\nmv -f .deps/epdfinfo-poppler-hack.Tpo .deps/epdfinfo-poppler-hack.Po\r\ngcc -DHAVE_CONFIG_H -I.    -w -I/usr/local/Cellar/zlib/1.2.11/include -g -O2 -MT libsynctex_a-synctex_parser.o -MD -MP -MF .deps/libsynctex_a-synctex_parser.Tpo -c -o libsynctex_a-synctex_parser.o `test -f 'synctex_parser.c' || echo './'`synctex_parser.c\r\nmv -f .deps/libsynctex_a-synctex_parser.Tpo .deps/libsynctex_a-synctex_parser.Po\r\ngcc -DHAVE_CONFIG_H -I.    -w -I/usr/local/Cellar/zlib/1.2.11/include -g -O2 -MT libsynctex_a-synctex_parser_utils.o -MD -MP -MF .deps/libsynctex_a-synctex_parser_utils.Tpo -c -o libsynctex_a-synctex_parser_utils.o `test -f 'synctex_parser_utils.c' || echo './'`synctex_parser_utils.c\r\nmv -f .deps/libsynctex_a-synctex_parser_utils.Tpo .deps/libsynctex_a-synctex_parser_utils.Po\r\nrm -f libsynctex.a\r\nar cru libsynctex.a libsynctex_a-synctex_parser.o libsynctex_a-synctex_parser_utils.o\r\nar: `u' modifier ignored since `D' is the default (see `U')\r\nar: libsynctex_a-synctex_parser.o: unknown load command 0x32\r\nar: libsynctex_a-synctex_parser.o: unknown load command 0x32\r\nar: libsynctex_a-synctex_parser.o: unknown load command 0x32\r\nar: libsynctex_a-synctex_parser_utils.o: unknown load command 0x32\r\nar: libsynctex_a-synctex_parser_utils.o: unknown load command 0x32\r\nar: libsynctex_a-synctex_parser_utils.o: unknown load command 0x32\r\nranlib libsynctex.a\r\nranlib: libsynctex.a(libsynctex_a-synctex_parser.o): unknown load command 0x32\r\nranlib: libsynctex.a(libsynctex_a-synctex_parser.o): unknown load command 0x32\r\nranlib: libsynctex.a(libsynctex_a-synctex_parser.o): unknown load command 0x32\r\nranlib: libsynctex.a(libsynctex_a-synctex_parser_utils.o): unknown load command 0x32\r\nranlib: libsynctex.a(libsynctex_a-synctex_parser_utils.o): unknown load command 0x32\r\nranlib: libsynctex.a(libsynctex_a-synctex_parser_utils.o): unknown load command 0x32\r\ng++ -Wall -Wall -I/usr/local/Cellar/glib/2.58.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/poppler/0.71.0/include/poppler/glib -I/usr/local/Cellar/poppler/0.71.0/include/poppler -I/usr/local/Cellar/cairo/1.16.0/include/cairo -I/usr/local/Cellar/glib/2.58.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.42/include -I/usr/local/Cellar/pixman/0.34.0_1/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.35/include/libpng16 -I/usr/local/Cellar/poppler/0.71.0/include/poppler -I/usr/local/Cellar/zlib/1.2.11/include -I/usr/local/Cellar/libpng/1.6.35/include/libpng16 -std=c++11 -O2 -g --std=c++11   -o epdfinfo epdfinfo-epdfinfo.o epdfinfo-poppler-hack.o -L/usr/local/Cellar/glib/2.58.1/lib -L/usr/local/opt/gettext/lib -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -L/usr/local/Cellar/poppler/0.71.0/lib -L/usr/local/Cellar/glib/2.58.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/cairo/1.16.0/lib -lpoppler-glib -lgobject-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation -lcairo -L/usr/local/Cellar/poppler/0.71.0/lib -lpoppler -L/usr/local/Cellar/zlib/1.2.11/lib -L/usr/local/Cellar/libpng/1.6.35/lib -lpng16 -lz libsynctex.a -L/usr/local/Cellar/zlib/1.2.11/lib -lz\r\nld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.\r\nld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.\r\nld: warning: ignoring file libsynctex.a, file was built for archive which is not the architecture being linked (x86_64): libsynctex.a\r\nUndefined symbols for architecture x86_64:\r\n  \"_synctex_display_query\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_edit_query\", referenced from:\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_next_result\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_box_visible_depth\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_box_visible_h\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_box_visible_height\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_box_visible_v\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_box_visible_width\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_column\", referenced from:\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_line\", referenced from:\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_page\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_node_tag\", referenced from:\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_scanner_free\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_scanner_get_name\", referenced from:\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\n  \"_synctex_scanner_new_with_output_file\", referenced from:\r\n      _cmd_synctex_forward_search in epdfinfo-epdfinfo.o\r\n      _cmd_synctex_backward_search in epdfinfo-epdfinfo.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[2]: *** [Makefile:471: epdfinfo] Error 1\r\nmake[2]: Leaving directory '/Users/me/Documents/Github/pdf-tools/server'\r\nmake[1]: *** [Makefile:366: all] Error 2\r\nmake[1]: Leaving directory '/Users/me/Documents/Github/pdf-tools/server'\r\nmake: *** [Makefile:82: server/epdfinfo] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/politza/pdf-tools/issues/comments/436046506","html_url":"https://github.com/politza/pdf-tools/issues/443#issuecomment-436046506","issue_url":"https://api.github.com/repos/politza/pdf-tools/issues/443","id":436046506,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjA0NjUwNg==","user":{"login":"hyiltiz","id":3246683,"node_id":"MDQ6VXNlcjMyNDY2ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/3246683?v=4","gravatar_id":"","url":"https://api.github.com/users/hyiltiz","html_url":"https://github.com/hyiltiz","followers_url":"https://api.github.com/users/hyiltiz/followers","following_url":"https://api.github.com/users/hyiltiz/following{/other_user}","gists_url":"https://api.github.com/users/hyiltiz/gists{/gist_id}","starred_url":"https://api.github.com/users/hyiltiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyiltiz/subscriptions","organizations_url":"https://api.github.com/users/hyiltiz/orgs","repos_url":"https://api.github.com/users/hyiltiz/repos","events_url":"https://api.github.com/users/hyiltiz/events{/privacy}","received_events_url":"https://api.github.com/users/hyiltiz/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T21:44:07Z","updated_at":"2018-11-05T21:44:07Z","author_association":"NONE","body":"I also tried explicitly setting `CC` and `CXXFLAGS` etc. to either llvm or gnu compilers. Those didn't work either. Interestingly, I was able to compile without problem a month ago."}}
{"actor":{"display_login":"hyiltiz"}}