Closed rcina closed 7 years ago
I added the ability to specify a error log file (pdf-info-epdfinfo-error-filename), which were previously simply discarded. You need to set it before opening any PDF files.
Also the tests (make check) should work again.
I turned on the error log file with the variable you mentioned before opening a pdf and found it in the /tmp/epdfinfo.log but the file was empty. The server quit and gave me the quit and restart message when opening the pdf though so I don't know why it isn't showing any messages in the log. However, the make check works now and it has several errors:
% gmake check cask install cask exec emacs -Q --batch -L /home/rob/test/pdf-tools/lisp -f batch-byte-compile lisp/*.el
In pdf-isearch-search-function:
lisp/pdf-isearch.el:269:44:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-same-search-p:
lisp/pdf-isearch.el:359:30:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-update:
lisp/pdf-isearch.el:393:42:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-occur:
lisp/pdf-isearch.el:426:23:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
lisp/pdf-isearch.el:427:21:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
lisp/pdf-isearch.el:428:12:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-search-fun-default:
lisp/pdf-isearch.el:462:9:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-outline-buffer-mode:
lisp/pdf-outline.el:177:20:Warning: hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.
In pdf-outline-toggle-subtree:
lisp/pdf-outline.el:406:36:Warning: hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead.
lisp/pdf-outline.el:407:10:Warning: show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.
In pdf-outline-move-to-page:
lisp/pdf-outline.el:423:29:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
lisp/pdf-outline.el:423:8:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
In toplevel form: lisp/pdf-tools.el:249:1:Warning: Unused lexical argument `callback' Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter cask exec emacs -Q --batch -l test/run-tests.el pdf-tools-0.70.tar Parsing tar file... Parsing tar file...done Parsing tar file... Parsing tar file...done Extracting pdf-tools-0.70/ Extracting pdf-tools-0.70/pdf-annot.el Extracting pdf-tools-0.70/pdf-cache.el Extracting pdf-tools-0.70/pdf-dev.el Extracting pdf-tools-0.70/pdf-history.el Extracting pdf-tools-0.70/pdf-info.el Extracting pdf-tools-0.70/pdf-isearch.el Extracting pdf-tools-0.70/pdf-links.el Extracting pdf-tools-0.70/pdf-misc.el Extracting pdf-tools-0.70/pdf-occur.el Extracting pdf-tools-0.70/pdf-outline.el Extracting pdf-tools-0.70/pdf-sync.el Extracting pdf-tools-0.70/pdf-tools.el Extracting pdf-tools-0.70/pdf-util.el Extracting pdf-tools-0.70/pdf-view.el Extracting pdf-tools-0.70/pdf-virtual.el Extracting pdf-tools-0.70/README Extracting pdf-tools-0.70/epdfinfo Extracting pdf-tools-0.70/pdf-tools-pkg.el Making backup-inhibited local to pdf-tools-autoloads.el while let-bound! Making version-control local to pdf-tools-autoloads.el while let-bound! Generating autoloads for pdf-annot.el... Generating autoloads for pdf-annot.el...done Generating autoloads for pdf-cache.el... Generating autoloads for pdf-cache.el...done Generating autoloads for pdf-dev.el... Generating autoloads for pdf-dev.el...done Generating autoloads for pdf-history.el... Generating autoloads for pdf-history.el...done Generating autoloads for pdf-info.el... Generating autoloads for pdf-info.el...done Generating autoloads for pdf-isearch.el... Generating autoloads for pdf-isearch.el...done Generating autoloads for pdf-links.el... Generating autoloads for pdf-links.el...done Generating autoloads for pdf-misc.el... Generating autoloads for pdf-misc.el...done Generating autoloads for pdf-occur.el... Generating autoloads for pdf-occur.el...done Generating autoloads for pdf-outline.el... Generating autoloads for pdf-outline.el...done Generating autoloads for pdf-sync.el... Generating autoloads for pdf-sync.el...done Generating autoloads for pdf-tools-pkg.el... Generating autoloads for pdf-tools-pkg.el...done Generating autoloads for pdf-tools.el... Generating autoloads for pdf-tools.el...done Generating autoloads for pdf-util.el... Generating autoloads for pdf-util.el...done Generating autoloads for pdf-view.el... Generating autoloads for pdf-view.el...done Generating autoloads for pdf-virtual.el... Generating autoloads for pdf-virtual.el...done Saving file /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-tools-autoloads.el... Checking /tmp/package1337a0U/elpa/pdf-tools-0.70... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-annot.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-cache.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-dev.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-history.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-info.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-isearch.el...
In pdf-isearch-search-function:
pdf-isearch.el:269:44:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-same-search-p:
pdf-isearch.el:359:30:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-update:
pdf-isearch.el:393:42:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-occur:
pdf-isearch.el:426:23:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
pdf-isearch.el:427:21:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
pdf-isearch.el:428:12:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-search-fun-default:
pdf-isearch.el:462:9:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-links.el...
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-misc.el...
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-occur.el...
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-outline.el...
In pdf-outline-buffer-mode:
pdf-outline.el:177:20:Warning: hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.
In pdf-outline-toggle-subtree:
pdf-outline.el:406:36:Warning: hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead.
pdf-outline.el:407:10:Warning: show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.
In pdf-outline-move-to-page:
pdf-outline.el:423:29:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
pdf-outline.el:423:8:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-sync.el...
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-tools-autoloads.el...
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-tools-pkg.el...
Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-tools.el...
In toplevel form:
pdf-tools.el:249:1:Warning: Unused lexical argument callback' Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-util.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-view.el... Compiling /tmp/package1337a0U/elpa/pdf-tools-0.70/pdf-virtual.el... Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter Done (Total of 16 files compiled, 1 skipped) Setting
package-selected-packages' temporarily since "emacs -q" would overwrite customizations
Loading /home/rob/test/pdf-tools/test/pdf-info.ert...
Loading /home/rob/test/pdf-tools/test/pdf-sync.ert...
Loading /home/rob/test/pdf-tools/test/pdf-tools.ert...
Loading /home/rob/test/pdf-tools/test/pdf-util.ert...
Loading /home/rob/test/pdf-tools/test/pdf-view.ert...
Loading /home/rob/test/pdf-tools/test/pdf-virtual.ert...
Running 51 tests (2017-01-19 18:34:52-0500)
Test pdf-info-addannot backtrace:
pdf-info-query(addannot "/home/rob/test/pdf-tools/test/test.pdf" 1 t
apply(pdf-info-query addannot "/home/rob/test/pdf-tools/test/test.pd
pdf-info-addannot(1 (0 0 1 1) text)
(setq annot (pdf-info-addannot 1 (quote (0 0 1 1)) (quote text)))
(list (setq annot (pdf-info-addannot 1 (quote (0 0 1 1)) (quote text
(let ((fn-178 (function consp)) (args-179 (list (setq annot (pdf-inf
(let (annot) (let ((fn-178 (function consp)) (args-179 (list (setq a
(save-current-buffer (set-buffer buffer) (let (annot) (let ((fn-178
(unwind-protect (save-current-buffer (set-buffer buffer) (let (annot
(let ((buffer (find-file-noselect (expand-file-name "test.pdf")))) (
(closure (t) nil (let ((fn-173 (function pdf-info-writable-annotatio
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-addannot nil (closure (t)
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-addannot condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 1/51 pdf-info-addannot
passed 2/51 pdf-info-check-epdfinfo
Test pdf-info-delannot backtrace:
pdf-info-query(addannot "/home/rob/test/pdf-tools/test/test.pdf" 1 t
apply(pdf-info-query addannot "/home/rob/test/pdf-tools/test/test.pd
pdf-info-addannot(1 (0 0 1 1) text)
(cons (pdf-info-addannot 1 (quote (0 0 1 1)) (quote text)) annots)
(setq annots (cons (pdf-info-addannot 1 (quote (0 0 1 1)) (quote tex
(let ((nannots (length (pdf-info-getannots))) annots) (setq annots (
(save-current-buffer (set-buffer buffer) (let ((nannots (length (pdf
(unwind-protect (save-current-buffer (set-buffer buffer) (let ((nann
(let ((buffer (find-file-noselect (expand-file-name "test.pdf")))) (
(closure (t) nil (let ((fn-198 (function pdf-info-writable-annotatio
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-delannot nil (closure (t)
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-delannot condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 3/51 pdf-info-delannot
passed 4/51 pdf-info-editannot
passed 5/51 pdf-info-getannot
passed 6/51 pdf-info-getannots
passed 7/51 pdf-info-getselection
passed 8/51 pdf-info-gettext
passed 9/51 pdf-info-metadata
passed 10/51 pdf-info-mvannot
passed 11/51 pdf-info-number-of-pages
passed 12/51 pdf-info-open/close
Test pdf-info-outline backtrace:
pdf-info-query(outline "/home/rob/test/pdf-tools/test/test.pdf")
pdf-info-outline()
(let ((outline (pdf-info-outline))) (let ((fn-69 (function =)) (args
(save-current-buffer (set-buffer buffer) (let ((outline (pdf-info-ou
(unwind-protect (save-current-buffer (set-buffer buffer) (let ((outl
(let ((buffer (find-file-noselect (expand-file-name "test.pdf")))) (
(closure (t) nil (let ((buffer (find-file-noselect (expand-file-name
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-outline nil (closure (t) n
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-outline condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 13/51 pdf-info-outline
Test pdf-info-pagelinks backtrace:
pdf-info-query(pagelinks "/home/rob/test/pdf-tools/test/test.pdf" 3)
pdf-info-pagelinks(3)
(let ((links (pdf-info-pagelinks 3))) (let ((fn-39 (function =)) (ar
(save-current-buffer (set-buffer buffer) (let ((links (pdf-info-page
(unwind-protect (save-current-buffer (set-buffer buffer) (let ((link
(let ((buffer (find-file-noselect (expand-file-name "test.pdf")))) (
(closure (t) nil (let ((buffer (find-file-noselect (expand-file-name
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-pagelinks nil (closure (t)
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-pagelinks condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 14/51 pdf-info-pagelinks
passed 15/51 pdf-info-pagesize
passed 16/51 pdf-info-quit
passed 17/51 pdf-info-save
passed 18/51 pdf-info-search-regexp
passed 19/51 pdf-info-search-string
passed 20/51 pdf-info-textregions
passed 21/51 pdf-sync-backward--find-position
passed 22/51 pdf-sync-backward--get-source-context
passed 23/51 pdf-sync-backward--get-text-context
passed 24/51 pdf-sync-backward--source-strip-comments
passed 25/51 pdf-tools-semantic-workaround
passed 26/51 pdf-util-seq-alignment
failed 27/51 pdf-view-handle-archived-file
passed 28/51 pdf-virtual-adapter-argument-handling
passed 29/51 pdf-virtual-addannot
passed 30/51 pdf-virtual-charlayout
passed 31/51 pdf-virtual-close
passed 32/51 pdf-virtual-delannot
passed 33/51 pdf-virtual-document-create
passed 34/51 pdf-virtual-document-filenames
passed 35/51 pdf-virtual-document-page
passed 36/51 pdf-virtual-document-page-of
passed 37/51 pdf-virtual-document-pages
passed 38/51 pdf-virtual-editannot
passed 39/51 pdf-virtual-getannot
passed 40/51 pdf-virtual-getannots
passed 41/51 pdf-virtual-getselection
passed 42/51 pdf-virtual-gettext
passed 43/51 pdf-virtual-metadata
passed 44/51 pdf-virtual-mvannot
passed 45/51 pdf-virtual-number-of-pages
passed 46/51 pdf-virtual-open
Test pdf-virtual-outline backtrace:
pdf-virtual-outline(#[256 "\300\301\302!\"\207" [pdf-info-query out
apply(pdf-virtual-outline #[256 "\300\301\302!\"\207" [pdf-info-que
pdf-info-outline()
(let ((outline (pdf-info-outline))) (let ((fn-425 (function =)) (arg
(progn (let ((outline (pdf-info-outline))) (let ((fn-425 (function =
(progn (insert ";; %VPDF 1.0\n\n") (let (print-length) (pp doc (curr
(unwind-protect (progn (insert ";; %VPDF 1.0\n\n") (let (print-lengt
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(with-current-buffer temp-buffer (unwind-protect (progn (insert ";;
(let ((temp-buffer (generate-new-buffer " temp"))) (with-current-b
(with-temp-buffer (insert ";; %VPDF 1.0\n\n") (let (print-length) (p
(let ((doc pdf-virtual-test-document)) (pdf-info-process-assert-runn
(with-pdf-virtual-test-buffer (let ((outline (pdf-info-outline))) (l
(closure (t) nil (with-pdf-virtual-test-buffer (let ((outline (pdf-i
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-virtual-outline nil (closure (t
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-virtual-outline condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 47/51 pdf-virtual-outline
Test pdf-virtual-pagelinks backtrace:
pdf-virtual-pagelinks(#[513 "\300!\204\301\302\303\304E\"\210\30
apply(pdf-virtual-pagelinks #[513 "\300!\204\301\302\303\304E\"\
pdf-info-pagelinks(4)
(let ((links (pdf-info-pagelinks 4))) (let ((fn-405 (function cl-eve
(progn (let ((links (pdf-info-pagelinks 4))) (let ((fn-405 (function
(progn (insert ";; %VPDF 1.0\n\n") (let (print-length) (pp doc (curr
(unwind-protect (progn (insert ";; %VPDF 1.0\n\n") (let (print-lengt
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(with-current-buffer temp-buffer (unwind-protect (progn (insert ";;
(let ((temp-buffer (generate-new-buffer " temp"))) (with-current-b
(with-temp-buffer (insert ";; %VPDF 1.0\n\n") (let (print-length) (p
(let ((doc pdf-virtual-test-document)) (pdf-info-process-assert-runn
(with-pdf-virtual-test-buffer (let ((links (pdf-info-pagelinks 4)))
(closure (t) nil (with-pdf-virtual-test-buffer (let ((links (pdf-inf
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-virtual-pagelinks nil (closure
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-virtual-pagelinks condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 48/51 pdf-virtual-pagelinks
passed 49/51 pdf-virtual-pagesize
passed 50/51 pdf-virtual-save
passed 51/51 pdf-virtual-search
Ran 51 tests, 45 results as expected, 6 unexpected (2017-01-19 18:34:54-0500) 1 expected failures
6 unexpected results: FAILED pdf-info-addannot FAILED pdf-info-delannot FAILED pdf-info-outline FAILED pdf-info-pagelinks FAILED pdf-virtual-outline FAILED pdf-virtual-pagelinks
gmake: *** [Makefile:71: test] Error 1
Try again with the latest revision. It should output the error messages from the program.
I tried the latest revision but there is still nothing in the log at /tmp/epdfinfo.log. It is created but it is empty.
No, it should appear interspersed with the test output.
Sorry didn't realize you wanted the test output.
% gmake check cask install cask exec emacs -Q --batch -L /home/rob/test/pdf-tools/lisp -f batch-byte-compile lisp/*.el
In pdf-isearch-search-function:
lisp/pdf-isearch.el:269:44:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-same-search-p:
lisp/pdf-isearch.el:359:30:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-update:
lisp/pdf-isearch.el:393:42:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-occur:
lisp/pdf-isearch.el:426:23:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
lisp/pdf-isearch.el:427:21:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
lisp/pdf-isearch.el:428:12:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-search-fun-default:
lisp/pdf-isearch.el:462:9:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-outline-buffer-mode:
lisp/pdf-outline.el:177:20:Warning: hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.
In pdf-outline-toggle-subtree:
lisp/pdf-outline.el:406:36:Warning: hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead.
lisp/pdf-outline.el:407:10:Warning: show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.
In pdf-outline-move-to-page:
lisp/pdf-outline.el:423:29:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
lisp/pdf-outline.el:423:8:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
In toplevel form: lisp/pdf-tools.el:249:1:Warning: Unused lexical argument `callback' Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter cask exec emacs -Q --batch -l test/run-tests.el pdf-tools-0.70.tar Parsing tar file... Parsing tar file...done Parsing tar file... Parsing tar file...done Extracting pdf-tools-0.70/ Extracting pdf-tools-0.70/pdf-annot.el Extracting pdf-tools-0.70/pdf-cache.el Extracting pdf-tools-0.70/pdf-dev.el Extracting pdf-tools-0.70/pdf-history.el Extracting pdf-tools-0.70/pdf-info.el Extracting pdf-tools-0.70/pdf-isearch.el Extracting pdf-tools-0.70/pdf-links.el Extracting pdf-tools-0.70/pdf-misc.el Extracting pdf-tools-0.70/pdf-occur.el Extracting pdf-tools-0.70/pdf-outline.el Extracting pdf-tools-0.70/pdf-sync.el Extracting pdf-tools-0.70/pdf-tools.el Extracting pdf-tools-0.70/pdf-util.el Extracting pdf-tools-0.70/pdf-view.el Extracting pdf-tools-0.70/pdf-virtual.el Extracting pdf-tools-0.70/README Extracting pdf-tools-0.70/epdfinfo Extracting pdf-tools-0.70/pdf-tools-pkg.el Making backup-inhibited local to pdf-tools-autoloads.el while let-bound! Making version-control local to pdf-tools-autoloads.el while let-bound! Generating autoloads for pdf-annot.el... Generating autoloads for pdf-annot.el...done Generating autoloads for pdf-cache.el... Generating autoloads for pdf-cache.el...done Generating autoloads for pdf-dev.el... Generating autoloads for pdf-dev.el...done Generating autoloads for pdf-history.el... Generating autoloads for pdf-history.el...done Generating autoloads for pdf-info.el... Generating autoloads for pdf-info.el...done Generating autoloads for pdf-isearch.el... Generating autoloads for pdf-isearch.el...done Generating autoloads for pdf-links.el... Generating autoloads for pdf-links.el...done Generating autoloads for pdf-misc.el... Generating autoloads for pdf-misc.el...done Generating autoloads for pdf-occur.el... Generating autoloads for pdf-occur.el...done Generating autoloads for pdf-outline.el... Generating autoloads for pdf-outline.el...done Generating autoloads for pdf-sync.el... Generating autoloads for pdf-sync.el...done Generating autoloads for pdf-tools-pkg.el... Generating autoloads for pdf-tools-pkg.el...done Generating autoloads for pdf-tools.el... Generating autoloads for pdf-tools.el...done Generating autoloads for pdf-util.el... Generating autoloads for pdf-util.el...done Generating autoloads for pdf-view.el... Generating autoloads for pdf-view.el...done Generating autoloads for pdf-virtual.el... Generating autoloads for pdf-virtual.el...done Saving file /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-tools-autoloads.el... Checking /tmp/package1192Ahp/elpa/pdf-tools-0.70... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-annot.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-cache.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-dev.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-history.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-info.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-isearch.el...
In pdf-isearch-search-function:
pdf-isearch.el:269:44:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-same-search-p:
pdf-isearch.el:359:30:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-update:
pdf-isearch.el:393:42:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-occur:
pdf-isearch.el:426:23:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
pdf-isearch.el:427:21:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
pdf-isearch.el:428:12:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-search-fun-default:
pdf-isearch.el:462:9:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-links.el...
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-misc.el...
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-occur.el...
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-outline.el...
In pdf-outline-buffer-mode:
pdf-outline.el:177:20:Warning: hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.
In pdf-outline-toggle-subtree:
pdf-outline.el:406:36:Warning: hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead.
pdf-outline.el:407:10:Warning: show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.
In pdf-outline-move-to-page:
pdf-outline.el:423:29:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
pdf-outline.el:423:8:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-sync.el...
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-tools-autoloads.el...
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-tools-pkg.el...
Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-tools.el...
In toplevel form:
pdf-tools.el:249:1:Warning: Unused lexical argument callback' Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-util.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-view.el... Compiling /tmp/package1192Ahp/elpa/pdf-tools-0.70/pdf-virtual.el... Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter Done (Total of 16 files compiled, 1 skipped) Setting
package-selected-packages' temporarily since "emacs -q" would overwrite customizations
Loading /home/rob/test/pdf-tools/test/pdf-info.ert...
Loading /home/rob/test/pdf-tools/test/pdf-sync.ert...
Loading /home/rob/test/pdf-tools/test/pdf-tools.ert...
Loading /home/rob/test/pdf-tools/test/pdf-util.ert...
Loading /home/rob/test/pdf-tools/test/pdf-view.ert...
Loading /home/rob/test/pdf-tools/test/pdf-virtual.ert...
Running 51 tests (2017-01-20 18:07:46-0500)
Test pdf-info-addannot backtrace:
pdf-info-query(addannot "/home/rob/test/pdf-tools/test/test.pdf" 1 t
apply(pdf-info-query addannot "/home/rob/test/pdf-tools/test/test.pd
pdf-info-addannot(1 (0 0 1 1) text)
(setq annot (pdf-info-addannot 1 (quote (0 0 1 1)) (quote text)))
(list (setq annot (pdf-info-addannot 1 (quote (0 0 1 1)) (quote text
(let ((fn-178 (function consp)) (args-179 (list (setq annot (pdf-inf
(let (annot) (let ((fn-178 (function consp)) (args-179 (list (setq a
(save-current-buffer (set-buffer buffer) (let (annot) (let ((fn-178
(progn (pdf-info-quit) (pdf-info-process-assert-running t) (save-cur
(unwind-protect (progn (pdf-info-quit) (pdf-info-process-assert-runn
(let ((buffer (find-file-noselect (expand-file-name "test.pdf"))) (p
(closure (t) nil (let ((fn-173 (function pdf-info-writable-annotatio
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-addannot nil (closure (t)
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-addannot condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 1/51 pdf-info-addannot
passed 2/51 pdf-info-check-epdfinfo
Test pdf-info-delannot backtrace:
pdf-info-query(addannot "/home/rob/test/pdf-tools/test/test.pdf" 1 t
apply(pdf-info-query addannot "/home/rob/test/pdf-tools/test/test.pd
pdf-info-addannot(1 (0 0 1 1) text)
(cons (pdf-info-addannot 1 (quote (0 0 1 1)) (quote text)) annots)
(setq annots (cons (pdf-info-addannot 1 (quote (0 0 1 1)) (quote tex
(let ((nannots (length (pdf-info-getannots))) annots) (setq annots (
(save-current-buffer (set-buffer buffer) (let ((nannots (length (pdf
(progn (pdf-info-quit) (pdf-info-process-assert-running t) (save-cur
(unwind-protect (progn (pdf-info-quit) (pdf-info-process-assert-runn
(let ((buffer (find-file-noselect (expand-file-name "test.pdf"))) (p
(closure (t) nil (let ((fn-198 (function pdf-info-writable-annotatio
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-delannot nil (closure (t)
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-delannot condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 3/51 pdf-info-delannot
passed 4/51 pdf-info-editannot
passed 5/51 pdf-info-getannot
passed 6/51 pdf-info-getannots
passed 7/51 pdf-info-getselection
passed 8/51 pdf-info-gettext
passed 9/51 pdf-info-metadata
passed 10/51 pdf-info-mvannot
passed 11/51 pdf-info-number-of-pages
passed 12/51 pdf-info-open/close
Test pdf-info-outline backtrace:
pdf-info-query(outline "/home/rob/test/pdf-tools/test/test.pdf")
pdf-info-outline()
(let ((outline (pdf-info-outline))) (let ((fn-69 (function =)) (args
(save-current-buffer (set-buffer buffer) (let ((outline (pdf-info-ou
(progn (pdf-info-quit) (pdf-info-process-assert-running t) (save-cur
(unwind-protect (progn (pdf-info-quit) (pdf-info-process-assert-runn
(let ((buffer (find-file-noselect (expand-file-name "test.pdf"))) (p
(closure (t) nil (let ((buffer (find-file-noselect (expand-file-name
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-outline nil (closure (t) n
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-outline condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 13/51 pdf-info-outline
Test pdf-info-pagelinks backtrace:
pdf-info-query(pagelinks "/home/rob/test/pdf-tools/test/test.pdf" 3)
pdf-info-pagelinks(3)
(let ((links (pdf-info-pagelinks 3))) (let ((fn-39 (function =)) (ar
(save-current-buffer (set-buffer buffer) (let ((links (pdf-info-page
(progn (pdf-info-quit) (pdf-info-process-assert-running t) (save-cur
(unwind-protect (progn (pdf-info-quit) (pdf-info-process-assert-runn
(let ((buffer (find-file-noselect (expand-file-name "test.pdf"))) (p
(closure (t) nil (let ((buffer (find-file-noselect (expand-file-name
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-info-pagelinks nil (closure (t)
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-info-pagelinks condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 14/51 pdf-info-pagelinks
passed 15/51 pdf-info-pagesize
passed 16/51 pdf-info-quit
passed 17/51 pdf-info-save
passed 18/51 pdf-info-search-regexp
passed 19/51 pdf-info-search-string
passed 20/51 pdf-info-textregions
passed 21/51 pdf-sync-backward--find-position
passed 22/51 pdf-sync-backward--get-source-context
passed 23/51 pdf-sync-backward--get-text-context
passed 24/51 pdf-sync-backward--source-strip-comments
passed 25/51 pdf-tools-semantic-workaround
passed 26/51 pdf-util-seq-alignment
failed 27/51 pdf-view-handle-archived-file
passed 28/51 pdf-virtual-adapter-argument-handling
passed 29/51 pdf-virtual-addannot
passed 30/51 pdf-virtual-charlayout
passed 31/51 pdf-virtual-close
passed 32/51 pdf-virtual-delannot
passed 33/51 pdf-virtual-document-create
passed 34/51 pdf-virtual-document-filenames
passed 35/51 pdf-virtual-document-page
passed 36/51 pdf-virtual-document-page-of
passed 37/51 pdf-virtual-document-pages
passed 38/51 pdf-virtual-editannot
passed 39/51 pdf-virtual-getannot
passed 40/51 pdf-virtual-getannots
passed 41/51 pdf-virtual-getselection
passed 42/51 pdf-virtual-gettext
passed 43/51 pdf-virtual-metadata
passed 44/51 pdf-virtual-mvannot
passed 45/51 pdf-virtual-number-of-pages
passed 46/51 pdf-virtual-open
Test pdf-virtual-outline backtrace:
pdf-virtual-outline(#[256 "\300\301\302!\"\207" [pdf-info-query out
apply(pdf-virtual-outline #[256 "\300\301\302!\"\207" [pdf-info-que
pdf-info-outline()
(let ((outline (pdf-info-outline))) (let ((fn-425 (function =)) (arg
(progn (let ((outline (pdf-info-outline))) (let ((fn-425 (function =
(progn (insert ";; %VPDF 1.0\n\n") (let (print-length) (pp doc (curr
(unwind-protect (progn (insert ";; %VPDF 1.0\n\n") (let (print-lengt
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(with-current-buffer temp-buffer (unwind-protect (progn (insert ";;
(let ((temp-buffer (generate-new-buffer " temp"))) (with-current-b
(with-temp-buffer (insert ";; %VPDF 1.0\n\n") (let (print-length) (p
(let ((doc pdf-virtual-test-document)) (pdf-info-process-assert-runn
(with-pdf-virtual-test-buffer (let ((outline (pdf-info-outline))) (l
(closure (t) nil (with-pdf-virtual-test-buffer (let ((outline (pdf-i
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-virtual-outline nil (closure (t
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-virtual-outline condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 47/51 pdf-virtual-outline
Test pdf-virtual-pagelinks backtrace:
pdf-virtual-pagelinks(#[513 "\300!\204\301\302\303\304E\"\210\30
apply(pdf-virtual-pagelinks #[513 "\300!\204\301\302\303\304E\"\
pdf-info-pagelinks(4)
(let ((links (pdf-info-pagelinks 4))) (let ((fn-405 (function cl-eve
(progn (let ((links (pdf-info-pagelinks 4))) (let ((fn-405 (function
(progn (insert ";; %VPDF 1.0\n\n") (let (print-length) (pp doc (curr
(unwind-protect (progn (insert ";; %VPDF 1.0\n\n") (let (print-lengt
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
(with-current-buffer temp-buffer (unwind-protect (progn (insert ";;
(let ((temp-buffer (generate-new-buffer " temp"))) (with-current-b
(with-temp-buffer (insert ";; %VPDF 1.0\n\n") (let (print-length) (p
(let ((doc pdf-virtual-test-document)) (pdf-info-process-assert-runn
(with-pdf-virtual-test-buffer (let ((links (pdf-info-pagelinks 4)))
(closure (t) nil (with-pdf-virtual-test-buffer (let ((links (pdf-inf
ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
ert-run-test([cl-struct-ert-test pdf-virtual-pagelinks nil (closure
ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test p
ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20
ert-run-tests-batch(t)
ert-run-tests-batch-and-exit(t)
eval-buffer(#<buffer load> nil "/home/rob/test/pdf-tools/test/run
load-with-code-conversion("/home/rob/test/pdf-tools/test/run-tests.e
load("/home/rob/test/pdf-tools/test/run-tests.el" nil t)
command-line-1(("-l" "test/run-tests.el" "pdf-tools-0.70.tar"))
command-line()
normal-top-level()
Test pdf-virtual-pagelinks condition:
(error "The epdfinfo server quit unexpectedly.")
FAILED 48/51 pdf-virtual-pagelinks
passed 49/51 pdf-virtual-pagesize
passed 50/51 pdf-virtual-save
passed 51/51 pdf-virtual-search
Ran 51 tests, 45 results as expected, 6 unexpected (2017-01-20 18:07:49-0500) 1 expected failures
6 unexpected results: FAILED pdf-info-addannot FAILED pdf-info-delannot FAILED pdf-info-outline FAILED pdf-info-pagelinks FAILED pdf-virtual-outline FAILED pdf-virtual-pagelinks
gmake: *** [Makefile:71: test] Error 1
Still no error messages. What about this:
echo pagelinks:/home/rob/test/pdf-tools/test/test.pdf:3 | ~/test/pdf-tools/server/epdfinfo
If that still just aborts without any output, running this through a debugger would be your best option.
I get a segmentation fault when i run the above command.
I finally got pdf-tools to work on my FreeBSD 11 box! I had to fix the Makefile that gets created in the server directory to make it use FreeBSD's native cc and c++ commands instead of gcc and g++.
--- Makefile.orig 2017-01-23 19:46:59.376628000 -0500 +++ Makefile 2017-01-23 19:47:43.177956000 -0500 @@ -224,13 +224,13 @@ AUTOHEADER = ${SHELL} /home/rob/test/pdftools-original/server/missing autoheader AUTOMAKE = ${SHELL} /home/rob/test/pdftools-original/server/missing automake-1.15 AWK = nawk -CC = gcc +CC = cc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 -CPP = gcc -E +CPP = cc -E CPPFLAGS = -CXX = g++ -CXXCPP = g++ -E +CXX = c++ +CXXCPP = c++ -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = -g -O2 CYGPATH_W = echo
==================================================
4) Run gmake -s (compile again using FreeBSD c++ and cc) 5) Run gmake check (to test if everything passes) 6) Install into emacs with the usual instructions provided on web page.
Here is the output of the gmake check just to confirm I got it working with this patch: gmake check cask install cask exec emacs -Q --batch -L /home/rob/test/pdf-tools/lisp -f batch-byte-compile lisp/*.el
In pdf-isearch-search-function:
lisp/pdf-isearch.el:269:44:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-same-search-p:
lisp/pdf-isearch.el:359:30:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-update:
lisp/pdf-isearch.el:393:42:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-occur:
lisp/pdf-isearch.el:426:23:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
lisp/pdf-isearch.el:427:21:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
lisp/pdf-isearch.el:428:12:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-search-fun-default:
lisp/pdf-isearch.el:462:9:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-outline-buffer-mode:
lisp/pdf-outline.el:177:20:Warning: hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.
In pdf-outline-toggle-subtree:
lisp/pdf-outline.el:406:36:Warning: hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead.
lisp/pdf-outline.el:407:10:Warning: show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.
In pdf-outline-move-to-page:
lisp/pdf-outline.el:423:29:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
lisp/pdf-outline.el:423:8:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
In toplevel form: lisp/pdf-tools.el:249:1:Warning: Unused lexical argument `callback' Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter cask exec emacs -Q --batch -l test/run-tests.el pdf-tools-0.70.tar Parsing tar file... Parsing tar file...done Parsing tar file... Parsing tar file...done Extracting pdf-tools-0.70/ Extracting pdf-tools-0.70/pdf-annot.el Extracting pdf-tools-0.70/pdf-cache.el Extracting pdf-tools-0.70/pdf-dev.el Extracting pdf-tools-0.70/pdf-history.el Extracting pdf-tools-0.70/pdf-info.el Extracting pdf-tools-0.70/pdf-isearch.el Extracting pdf-tools-0.70/pdf-links.el Extracting pdf-tools-0.70/pdf-misc.el Extracting pdf-tools-0.70/pdf-occur.el Extracting pdf-tools-0.70/pdf-outline.el Extracting pdf-tools-0.70/pdf-sync.el Extracting pdf-tools-0.70/pdf-tools.el Extracting pdf-tools-0.70/pdf-util.el Extracting pdf-tools-0.70/pdf-view.el Extracting pdf-tools-0.70/pdf-virtual.el Extracting pdf-tools-0.70/README Extracting pdf-tools-0.70/epdfinfo Extracting pdf-tools-0.70/pdf-tools-pkg.el Making backup-inhibited local to pdf-tools-autoloads.el while let-bound! Making version-control local to pdf-tools-autoloads.el while let-bound! Generating autoloads for pdf-annot.el... Generating autoloads for pdf-annot.el...done Generating autoloads for pdf-cache.el... Generating autoloads for pdf-cache.el...done Generating autoloads for pdf-dev.el... Generating autoloads for pdf-dev.el...done Generating autoloads for pdf-history.el... Generating autoloads for pdf-history.el...done Generating autoloads for pdf-info.el... Generating autoloads for pdf-info.el...done Generating autoloads for pdf-isearch.el... Generating autoloads for pdf-isearch.el...done Generating autoloads for pdf-links.el... Generating autoloads for pdf-links.el...done Generating autoloads for pdf-misc.el... Generating autoloads for pdf-misc.el...done Generating autoloads for pdf-occur.el... Generating autoloads for pdf-occur.el...done Generating autoloads for pdf-outline.el... Generating autoloads for pdf-outline.el...done Generating autoloads for pdf-sync.el... Generating autoloads for pdf-sync.el...done Generating autoloads for pdf-tools-pkg.el... Generating autoloads for pdf-tools-pkg.el...done Generating autoloads for pdf-tools.el... Generating autoloads for pdf-tools.el...done Generating autoloads for pdf-util.el... Generating autoloads for pdf-util.el...done Generating autoloads for pdf-view.el... Generating autoloads for pdf-view.el...done Generating autoloads for pdf-virtual.el... Generating autoloads for pdf-virtual.el...done Saving file /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-tools-autoloads.el... Checking /tmp/package2603YMq/elpa/pdf-tools-0.70... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-annot.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-cache.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-dev.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-history.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-info.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-isearch.el...
In pdf-isearch-search-function:
pdf-isearch.el:269:44:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-same-search-p:
pdf-isearch.el:359:30:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-update:
pdf-isearch.el:393:42:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-occur:
pdf-isearch.el:426:23:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
pdf-isearch.el:427:21:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
pdf-isearch.el:428:12:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
In pdf-isearch-search-fun-default:
pdf-isearch.el:462:9:Warning: isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-links.el...
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-misc.el...
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-occur.el...
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-outline.el...
In pdf-outline-buffer-mode:
pdf-outline.el:177:20:Warning: hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.
In pdf-outline-toggle-subtree:
pdf-outline.el:406:36:Warning: hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead.
pdf-outline.el:407:10:Warning: show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.
In pdf-outline-move-to-page:
pdf-outline.el:423:29:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
pdf-outline.el:423:8:Warning: show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-sync.el...
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-tools-autoloads.el...
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-tools-pkg.el...
Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-tools.el...
In toplevel form:
pdf-tools.el:249:1:Warning: Unused lexical argument callback' Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-util.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-view.el... Compiling /tmp/package2603YMq/elpa/pdf-tools-0.70/pdf-virtual.el... Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter Done (Total of 16 files compiled, 1 skipped) Setting
package-selected-packages' temporarily since "emacs -q" would overwrite customizations
Loading /home/rob/test/pdf-tools/test/pdf-info.ert...
Loading /home/rob/test/pdf-tools/test/pdf-sync.ert...
Loading /home/rob/test/pdf-tools/test/pdf-tools.ert...
Loading /home/rob/test/pdf-tools/test/pdf-util.ert...
Loading /home/rob/test/pdf-tools/test/pdf-view.ert...
Loading /home/rob/test/pdf-tools/test/pdf-virtual.ert...
Running 51 tests (2017-01-23 19:43:05-0500)
passed 1/51 pdf-info-addannot
passed 2/51 pdf-info-check-epdfinfo
passed 3/51 pdf-info-delannot
passed 4/51 pdf-info-editannot
passed 5/51 pdf-info-getannot
passed 6/51 pdf-info-getannots
passed 7/51 pdf-info-getselection
passed 8/51 pdf-info-gettext
passed 9/51 pdf-info-metadata
passed 10/51 pdf-info-mvannot
passed 11/51 pdf-info-number-of-pages
passed 12/51 pdf-info-open/close
passed 13/51 pdf-info-outline
passed 14/51 pdf-info-pagelinks
passed 15/51 pdf-info-pagesize
passed 16/51 pdf-info-quit
passed 17/51 pdf-info-save
passed 18/51 pdf-info-search-regexp
passed 19/51 pdf-info-search-string
passed 20/51 pdf-info-textregions
passed 21/51 pdf-sync-backward--find-position
passed 22/51 pdf-sync-backward--get-source-context
passed 23/51 pdf-sync-backward--get-text-context
passed 24/51 pdf-sync-backward--source-strip-comments
passed 25/51 pdf-tools-semantic-workaround
passed 26/51 pdf-util-seq-alignment
failed 27/51 pdf-view-handle-archived-file
passed 28/51 pdf-virtual-adapter-argument-handling
passed 29/51 pdf-virtual-addannot
passed 30/51 pdf-virtual-charlayout
passed 31/51 pdf-virtual-close
passed 32/51 pdf-virtual-delannot
passed 33/51 pdf-virtual-document-create
passed 34/51 pdf-virtual-document-filenames
passed 35/51 pdf-virtual-document-page
passed 36/51 pdf-virtual-document-page-of
passed 37/51 pdf-virtual-document-pages
passed 38/51 pdf-virtual-editannot
passed 39/51 pdf-virtual-getannot
passed 40/51 pdf-virtual-getannots
passed 41/51 pdf-virtual-getselection
passed 42/51 pdf-virtual-gettext
passed 43/51 pdf-virtual-metadata
passed 44/51 pdf-virtual-mvannot
passed 45/51 pdf-virtual-number-of-pages
passed 46/51 pdf-virtual-open
passed 47/51 pdf-virtual-outline
passed 48/51 pdf-virtual-pagelinks
passed 49/51 pdf-virtual-pagesize
passed 50/51 pdf-virtual-save
passed 51/51 pdf-virtual-search
Ran 51 tests, 51 results as expected (2017-01-23 19:43:06-0500) 1 expected failures
If its working fine, but I believe that cc is the same as gcc. I've just noticed the following warning, which shouldn't be happening:
epdfinfo.c: In function 'main': epdfinfo.c:3662:3: warning: implicit declaration of function 'getline' [-Wimplicit-function-declaration] while ((read = getline (&line, &line_size, stdin)) != -1) ^
On freebsd isn't cc now defaulting to clang/llvm and not gcc. I'm no expert but i believe there was an issue with the way a library was being linked when using gcc to the clang libraries. And that is why I believe I was getting a segfault with your echo command. That is what lead me to the solution of trying to substitute and compile with the default Freebsd clang cc command. Which seems to have allowed it to be linked to the clang specific libraries correctly and stopped the segfault. The tests pass and it seems to be working without exiting the server like it was before. I haven't had time to play or learn pdf-tools so I can't say if all the functionality is there but the pdf's open now and can be browsed. There may be a better and more correct fix but I'm not sure how to go about solving that warning you pointed out.
Can this be closed ? I don't know what I should do about this.
Sure thanks for the help.
On Feb 26, 2017 3:47 PM, "politza" notifications@github.com wrote:
Can this be closed ? I don't know what I should do about this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/politza/pdf-tools/issues/246#issuecomment-282586129, or mute the thread https://github.com/notifications/unsubscribe-auth/AGCHoaWN-Ey_qWJaAiwlmLx4dx9uHa15ks5rgeTxgaJpZM4Lonbm .
I'm trying to get pdf-tools to work in Emacs 25.1.1 on FreeBSD 11 and I am always getting the message epdfinfo server quit, restart it? I know FreeBSD is not officially supported but maybe you can help. The pdf loads and i can see it but the server just continuously quits so i cannot change pages. I am able to open a 2 page pdf (i.e. the emacs reference card) without the server quitting on me. But any pdf that is bigger gives me the server quit restart message over and over again. I don't know what information to require here but I have made a reasonable attempt at including what I have done to trouble shoot the issue. Any help you can offer would be greatly appreciated. Thanks.
This is the output I get when i build it with gmake:
% gmake -s Running autoreconf... configure.ac:15: installing './ar-lib' configure.ac:11: installing './compile' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' Makefile.am: installing './depcomp'
Is case-sensitive searching enabled ? yes Is modifying text annotations enabled ? yes Is modifying markup annotations enabled ? yes
epdfinfo.c: In function 'main': epdfinfo.c:3662:3: warning: implicit declaration of function 'getline' [-Wimplicit-function-declaration] while ((read = getline (&line, &line_size, stdin)) != -1) ^ epdfinfo-epdfinfo.o: In function `mktempfile': /usr/home/rob/test/pdf-tools/server/epdfinfo.c:354: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
A simple ls shows the binary is created under the pdf-tools directory:
% ls README pdf-history.el pdf-occur.el pdf-util.el epdfinfo pdf-info.el pdf-outline.el pdf-view.el pdf-annot.el pdf-isearch.el pdf-sync.el pdf-virtual.el pdf-cache.el pdf-links.el pdf-tools-pkg.el pdf-dev.el pdf-misc.el pdf-tools.el
And doing ldd ./epdfinfo shows this:
% ldd ./epdfinfo ./epdfinfo: libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x80083d000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x800b46000) libpoppler-glib.so.8 => /usr/local/lib/libpoppler-glib.so.8 (0x800d50000) libgio-2.0.so.0 => /usr/local/lib/libgio-2.0.so.0 (0x800fad000) libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x801317000) libcairo.so.2 => /usr/local/lib/libcairo.so.2 (0x80155f000) libthr.so.3 => /lib/libthr.so.3 (0x801876000) libpoppler.so.66 => /usr/local/lib/libpoppler.so.66 (0x801c00000) libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x8020a3000) libz.so.6 => /lib/libz.so.6 (0x8022dd000) libstdc++.so.6 => /usr/local/lib/libstdc++.so.6 (0x8024f4000) libm.so.5 => /lib/libm.so.5 (0x802807000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x802a31000) libc.so.7 => /lib/libc.so.7 (0x802c3f000) libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x802ff3000) libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x8032ee000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x803563000) libc++.so.1 => /usr/lib/libc++.so.1 (0x803809000) libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x803ac9000) libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x803ce8000) libffi.so.6 => /usr/local/lib/libffi.so.6 (0x803eeb000) libpixman-1.so.0 => /usr/local/lib/libpixman-1.so.0 (0x8040f2000) libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x80439c000) libEGL.so.1 => /usr/local/lib/libEGL.so.1 (0x8045e1000) libxcb-shm.so.0 => /usr/local/lib/libxcb-shm.so.0 (0x804800000) libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x804a02000) libxcb-render.so.0 => /usr/local/lib/libxcb-render.so.0 (0x804c27000) libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x804e33000) libX11.so.6 => /usr/local/lib/libX11.so.6 (0x80503c000) libXext.so.6 => /usr/local/lib/libXext.so.6 (0x805378000) libGL.so.1 => /usr/local/lib/libGL.so.1 (0x805589000) liblcms2.so.2 => /usr/local/lib/liblcms2.so.2 (0x805804000) libtiff.so.5 => /usr/local/lib/libtiff.so.5 (0x805a62000) libjpeg.so.8 => /usr/local/lib/libjpeg.so.8 (0x805ccb000) libnss3.so => /usr/local/lib/libnss3.so (0x805f38000) libsmime3.so => /usr/local/lib/libsmime3.so (0x806262000) libssl3.so => /usr/local/lib/libssl3.so (0x80648c000) libnssutil3.so => /usr/local/lib/libnssutil3.so (0x8066d8000) libplds4.so => /usr/local/lib/libplds4.so (0x806905000) libplc4.so => /usr/local/lib/libplc4.so (0x806b08000) libnspr4.so => /usr/local/lib/libnspr4.so (0x806d0c000) libopenjp2.so.7 => /usr/local/lib/libopenjp2.so.7 (0x806f49000) libbz2.so.4 => /usr/lib/libbz2.so.4 (0x807188000) libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x80739b000) libX11-xcb.so.1 => /usr/local/lib/libX11-xcb.so.1 (0x8075c2000) libxcb-dri2.so.0 => /usr/local/lib/libxcb-dri2.so.0 (0x8077c3000) libxcb-xfixes.so.0 => /usr/local/lib/libxcb-xfixes.so.0 (0x8079c7000) libgbm.so.1 => /usr/local/lib/libgbm.so.1 (0x807bce000) libdrm.so.2 => /usr/local/lib/libdrm.so.2 (0x807dd4000) libXau.so.6 => /usr/local/lib/libXau.so.6 (0x807fe3000) libpthread-stubs.so.0 => /usr/local/lib/libpthread-stubs.so.0 (0x8081e5000) libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x8083e6000) libglapi.so.0 => /usr/local/lib/libglapi.so.0 (0x8085eb000) libXdamage.so.1 => /usr/local/lib/libXdamage.so.1 (0x808854000) libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0x808a56000) libxcb-glx.so.0 => /usr/local/lib/libxcb-glx.so.0 (0x808c5b000) libXxf86vm.so.1 => /usr/local/lib/libXxf86vm.so.1 (0x808e74000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x809078000) libjbig.so.2 => /usr/local/lib/libjbig.so.2 (0x8092a1000) libdevq.so.0 => /usr/local/lib/libdevq.so.0 (0x8094ae000) libprocstat.so.1 => /usr/lib/libprocstat.so.1 (0x8096b2000) libelf.so.2 => /lib/libelf.so.2 (0x8098bc000) libkvm.so.7 => /lib/libkvm.so.7 (0x809ad3000) libutil.so.9 => /lib/libutil.so.9 (0x809ce1000)
Finally, doing gmake check gives the following output with an error:
% gmake check cask install cask exec emacs -Q --batch -L /home/rob/test/pdf-tools/lisp -f batch-byte-compile lisp/*.el
In pdf-isearch-search-function: lisp/pdf-isearch.el:269:44:Warning:
isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.In pdf-isearch-same-search-p: lisp/pdf-isearch.el:359:30:Warning:
isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.In pdf-isearch-update: lisp/pdf-isearch.el:393:42:Warning:
isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.In pdf-isearch-occur: lisp/pdf-isearch.el:426:23:Warning:
isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead. lisp/pdf-isearch.el:427:21:Warning:isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead. lisp/pdf-isearch.el:428:12:Warning:isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.In pdf-isearch-search-fun-default: lisp/pdf-isearch.el:462:9:Warning:
isearch-word' is an obsolete variable (as of 25.1); use
isearch-regexp-function' instead.In pdf-outline-buffer-mode: lisp/pdf-outline.el:177:20:Warning:
hide-sublevels' is an obsolete function (as of 25.1); use
outline-hide-sublevels' instead.In pdf-outline-toggle-subtree: lisp/pdf-outline.el:406:36:Warning:
hide-subtree' is an obsolete function (as of 25.1); use
outline-hide-subtree' instead. lisp/pdf-outline.el:407:10:Warning:show-subtree' is an obsolete function (as of 25.1); use
outline-show-subtree' instead.In pdf-outline-move-to-page: lisp/pdf-outline.el:423:29:Warning:
show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead. lisp/pdf-outline.el:423:8:Warning:show-children' is an obsolete function (as of 25.1); use
outline-show-children' instead.In toplevel form: lisp/pdf-tools.el:249:1:Warning: Unused lexical argument
callback' Warning: Unknown macro property font-lock in pdf-virtual-document-defun Warning: Unknown macro property imenu in pdf-virtual-document-defun Warning: Unknown macro property font-lock in pdf-virtual-define-adapter Warning: Unknown macro property imenu in pdf-virtual-define-adapter cask exec emacs -Q --batch -l test/run-tests.el pdf-tools-0.70.tar Do
cask install' first gmake: *** [Makefile:71: test] Error 255