Re: no output from zathura

2022-04-24 Thread Ashlen
On 22/04/24 08:11, Landry Breuil wrote:
> Le Sat, Apr 23, 2022 at 05:44:41PM -0600, Ashlen a écrit :
> > 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
>
> that's one data point, but do you have zathura-pdf-mupdf-0.3.8 or
> zathura-pdf-mupdf-0.3.8p0 installed ? only the latter has stuart's fix
> (https://github.com/openbsd/ports/commit/11f36733ca2bddc98932283aac772c7bd9bae1ff)

zathura-pdf-mupdf-0.3.8. I should've included pkg_info(1) output there,
will remember that for next time. I do see Stuart's email about the
newer package not being available yet, so I'll sit tight for now and
work around it until the newer package becomes available.

Thanks for the help everyone.

--
https://amissing.link/



Re: no output from zathura

2022-04-24 Thread Stuart Henderson
On 2022/04/24 08:11, Landry Breuil wrote:
> Le Sat, Apr 23, 2022 at 05:44:41PM -0600, Ashlen a écrit :
> > 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
> 
> that's one data point, but do you have zathura-pdf-mupdf-0.3.8 or
> zathura-pdf-mupdf-0.3.8p0 installed ? only the latter has stuart's fix
> (https://github.com/openbsd/ports/commit/11f36733ca2bddc98932283aac772c7bd9bae1ff)
> 
> if its not on the mirrors yet you can build it from a -current
> portstree to check. I've locally built it and zathura correctly opens
> pdfs here.
> 
> Landry
> 

There are no newer amd64 packages yet, you will need to build from ports
(or use the LD_PRELOAD workaround) until they're available.



Re: no output from zathura

2022-04-23 Thread Landry Breuil
Le Sat, Apr 23, 2022 at 05:44:41PM -0600, Ashlen a écrit :
> 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

that's one data point, but do you have zathura-pdf-mupdf-0.3.8 or
zathura-pdf-mupdf-0.3.8p0 installed ? only the latter has stuart's fix
(https://github.com/openbsd/ports/commit/11f36733ca2bddc98932283aac772c7bd9bae1ff)

if its not on the mirrors yet you can build it from a -current
portstree to check. I've locally built it and zathura correctly opens
pdfs here.

Landry



Re: no output from zathura

2022-04-23 Thread Ashlen
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