On Wed, Sep 20, 2023 at 02:53:54PM +0200, Theo Buehler wrote:
> On Wed, Sep 20, 2023 at 02:46:16PM +0200, Rafael Sadowski wrote:
> > On Wed Sep 20, 2023 at 02:17:46PM +0200, Theo Buehler wrote:
> > > On Wed, Sep 20, 2023 at 11:44:09AM +0000, Klemens Nanni wrote:
> > > > On amd64 I haven't been able to start it:
> > > > 
> > > >         $ neochat
> > > >         QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
> > > > '/tmp/runtime-kn'
> > > >         neochat:/usr/local/lib/qt5/libQt5Pdf.so.1.0: undefined symbol 
> > > > 'FPDF_InitLibrary'
> > > >         ld.so: neochat: lazy binding failed!
> > > >         Killed
> > > > 
> > > > Qt5Pdf is from x11/qt5/qtwebengine.
> > > > 
> > > > Anyone knows what's going on or want to investigate?
> > > 
> > > FWIW, neochat starts fine if qtwebengine isn't installed. So something
> > > is wrong with libQt5Pdf.so.1.0 and this probably needs to be fixed in
> > > qtwebengine.
> > > 
> > > The symbol itself seems to come from pdfium
> > > 
> > > https://sources.debian.org/src/qtwebengine-opensource-src/5.15.15+dfsg-2/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/fpdf_view.cpp/?hl=165#L165
> > > 
> 
> > Do you have this issue after: 
> > https://marc.info/?l=openbsd-ports-cvs&m=169485462109728&w=4
> 
> Yes. I do have qtwebengine-5.15.10p4 installed.
> 

This works (and it does not work with qtwebengine-5.15.10p2):

$ LD_PRELOAD=/usr/local/lib/qt5/libQt5WebEngineCore.so.2.0 neochat

I suspect libQt5Pdf needs to link explicitly against libQt5WebEngineCore
in addition to what you did in your commit.

Reply via email to