Latest port build of zathura-mupdf fails to load PDFs with the following error: error: Could not load plugin '/usr/local/lib/zathura/libpdf-mupdf.so' (/usr/local/lib/libmupdf.so.1.16.0: Undefined symbol "jbig2_ctx_new").
I can't reproduce it. Did you maybe remove jbig2dec? $ grep jbig2_ctx_new /usr/local/lib/libjbig2dec.so Binary file /usr/local/lib/libjbig2dec.so matches $ ldd /usr/local/lib/zathura/libpdf-mupdf.so | grep libjbig libjbig2dec.so.0 => /usr/local/lib/libjbig2dec.so.0 (0x808f42000) $ pkg which /usr/local/lib/libjbig2dec.so.0 /usr/local/lib/libjbig2dec.so.0 was installed by package jbig2dec-0.16
No jbig2dec is installed. However it is perhaps because it's version 0.17? I'm on FreeBSD-CURRENT.
The graphics/zathura-pdf-mupdf depends on graphics/jbig2dec: https://svnweb.freebsd.org/ports/head/graphics/zathura-pdf-mupdf/Makefile?revision=516270&view=markup#l19 So graphics/jbig2dec should installed. Maybe did you deinstall it with "pkg delete -f"? Please try install it!
jbig2dec is definitely installed, > pkg info jbig2dec jbig2dec-0.17 Name : jbig2dec Version : 0.17 Installed on : Mon Nov 11 09:27:05 2019 CET > ls -l /usr/local/lib/libjbig2dec.so.0.0.0 -rwxr-xr-x 1 root wheel 126048 Nov 9 02:42 /usr/local/lib/libjbig2dec.so.0.0.0
> pkg which /usr/local/lib/libjbig2dec.so.0.0.0 /usr/local/lib/libjbig2dec.so.0.0.0 was installed by package jbig2dec-0.17
Sorry, poor comma on my part. I mean "No, jbig2dec is installed"
(In reply to mmatalka from comment #6) :) Please run "grep jbig2_ctx_new /usr/local/lib/libjbig2dec.so". I think in the newest version this function disappeared (I'm using quarterly repo).
> grep jbig2_ctx_new /usr/local/lib/libjbig2dec.so Binary file /usr/local/lib/libjbig2dec.so matches There is also a discussion about this in the debian mailing lists (although the jbig2dec version seems older than mine) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940605
Hi, any updates on this?
(In reply to mmatalka from comment #9) Working on it but I didn't have too many time.
Anything I can do to help?
(In reply to mmatalka from comment #11) If you've time and can create (and test) patch would be nice :)
I'm not actually sure what the fix is, do you have a suggestion? Which package needs a fix?
I rebuild zathura-pdf-mupdf with latest jbig2dec and install on my machine (quarterly repo, jbig2dec 0.16, not 0.17) and works well. I think it will be the solution in jbig2dec 0.17. Added its maintainer.
Does the problem after update of jbig2dec to 0.17 ( ports r516657 ) still extists?
Sorry , overlooked some thing, is already answered.
Any news? It's becoming harder to downgrade jbig2dec as more and more ports use the new version.
I don't have time to figure it. If you've any idea... :)
Looks like this one https://www.freshports.org/graphics/mupdf/ needs revision bump after jbig2 upgrade. I have no issues after I rebuilt and force reinstalled mupdf. BTW, upstream has newer version of the library.
Ivan, do you have a patch? Or just did it quickly in your own ports tree?
Created attachment 212829 [details] Portrevision bump The simplest solution :)
(In reply to mmatalka from comment #20) Thanks! I didn't think it's so easy :(
I don't know how ports work very well, is this literally just forcing it to rebuild?
(In reply to mmatalka from comment #23) Yes. See: https://www.freebsd.org/doc/en/books/porters-handbook/book.html#makefile-naming-revepoch
Is this bug exists now?
I believe this bug is resolved.
I'm glad :) Could you please close it?