I'm still getting the same problem with the mupdf plugin on the snapshot
mentioned below.
$ sysctl -n kern.version
OpenBSD 7.1-current (GENERIC.MP) #483: Sat Apr 23 05:33:19 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Here are the dynamic libraries marked as needed from objdump(1).
$ objdump -p /usr/local/lib/zathura/libpdf-mupdf.so | grep NEEDED
NEEDED libgirara-gtk3.so.1.2
NEEDED libharfbuzz.so.17.3
NEEDED libcairo.so.13.2
NEEDED libglib-2.0.so.4201.8
After shooting in the dark for a bit, I looked at the other dependencies
in the build file, and noticed these libraries are missing from that
output:
libjbig2dec.so.1.0
libopenjp2.so.4.0
libgumbo.so.0.0
nm(1) showed that they contain the needed symbols. Using LD_PRELOAD with
them listed causes zathura to work. Without LD_PRELOAD, it breaks like
before.
Sadly, I don't know much about meson build files, or libraries and
linking for that matter, so I wouldn't know how to write a diff to fix
this.
$
LD_PRELOAD=/usr/local/lib/libgumbo.so.0.0:/usr/local/lib/libopenjp2.so.4.0:/usr/local/lib/libjbig2dec.so.1.0
zathura --version
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.8) (/usr/local/lib/zathura/libpdf-mupdf.so)
$ zathura --version
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_ctx_new_imp'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol 'jbig2_data_in'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_make_global_ctx'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_global_ctx_free'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_complete_page'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_page_out'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_release_page'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'jbig2_ctx_free'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_set_default_decoder_parameters'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_create_decompress'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_set_info_handler'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_set_warning_handler'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_set_error_handler'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_setup_decoder'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_default_create'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_set_read_function'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_set_skip_function'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_set_seek_function'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_set_user_data'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_set_user_data_length'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_read_header'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol 'opj_decode'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_stream_destroy'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_destroy_codec'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'opj_image_destroy'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'gumbo_parse_with_options'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'gumbo_destroy_output'
zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
'gumbo_normalized_tagname'
error: Could not load plugin '/usr/local/lib/zathura/libpdf-mupdf.so' (Cannot
load specified object).
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
On 22/04/18 22:36, Stuart Henderson wrote:
> I've committed a fix.
>
> If you report problems with ports, it would help to include at least:
>
> - OpenBSD version and machine arch (it never hurts to include the full dmesg)
> - Package version
> - (plus the description of what happens, any console messages etc, like
> you included here)
>
> And preferably on ports@ rather than misc.
>
>
> On 2022-04-18, Shadrock Uhuru wrote:
> > Hi everyone
> > i have zathura zathura-ps zathura-pdf-mupdf installed,
> > i run zathura from the command line with zathura file.pdf which opens
> > zathura with nothing
> > displayed,
> > the shell that i run zathura from displays the following
> >
> > zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
> > 'jbig2_ctx_new_imp'
> > zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
> > 'jbig2_data_in'
> > zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol
> > 'jbig2_make_global_ctx'
> > zathura:/usr/local/lib/zathura/libpdf-mupdf.so: undefined symbol