Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56680 closed defect (fixed)

poppler @0.65.0: building fails at gir generation

Reported by: yan12125 (Chih-Hsuan Yen) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: drkp (Dan Ports), mndavidoff (Monte Davidoff), snarkhunter (Steve Langer), schwerdf (August Schwerdfeger)
Port: poppler

Description

g-ir-scanner: link: /usr/bin/clang -arch x86_64 -o /opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build/glib/tmp-introspect8HsYVr/Poppler-0.18 /opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build/glib/tmp-introspect8HsYVr/Poppler-0.18.o -L. -Wl,-rpath,. -lpoppler-glib -L/opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build -Wl,-rpath,/opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -Wl,-framework -Wl,CoreFoundation
dyld: Library not loaded: /opt/local/lib/libpoppler-glib.8.dylib
  Referenced from: /opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build/glib/tmp-introspect8HsYVr/Poppler-0.18
  Reason: image not found
Command '[u'/opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build/glib/tmp-introspect8HsYVr/Poppler-0.18', u'--introspect-dump=/opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build/glib/tmp-introspect8HsYVr/functions.txt,/opt/local/var/macports/build/_Users_yen_Projects_macports-ports_graphics_poppler/poppler/work/build/glib/tmp-introspect8HsYVr/dump.xml']' returned non-zero exit status -6

An example failure log can be found at https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/28339/steps/install-port/logs/stdio. I can reproduce the error on my machine if I build poppler @0.65.0 without poppler @0.57.0 installed.

Change History (12)

comment:1 Changed 6 years ago by yan12125 (Chih-Hsuan Yen)

Cc: drkp added

Also CC the most recent commiter to the poppler port.

comment:2 Changed 6 years ago by mndavidoff (Monte Davidoff)

Cc: mndavidoff added

comment:3 Changed 6 years ago by mf2k (Frank Schima)

Cc: dbevans removed
Owner: set to dbevans
Status: newassigned

comment:4 Changed 6 years ago by yan12125 (Chih-Hsuan Yen)

I managed to build poppler with a patch [1]. I'll create a PR once I understand why it works.

[1] https://github.com/yan12125/macports-ports/commit/8769ef3bf41c363a78a45c405839abaa7e3ab676

comment:5 Changed 6 years ago by snarkhunter (Steve Langer)

Cc: snarkhunter added

comment:6 Changed 6 years ago by schwerdf (August Schwerdfeger)

Cc: schwerdf added

comment:7 Changed 6 years ago by kencu (Ken)

I think that is a proper fix. It works on my poppler-qt4-mac 0.61.1 version as well.

comment:8 in reply to:  5 Changed 6 years ago by x13945 (Shaw)

Replying to snarkhunter:

Thanks the commit, it solved my problem.

comment:10 Changed 6 years ago by ProgrammingPoet (Gregory Gelfond)

This is also causing an issue with texlive due to a dependency on poppler.

comment:11 Changed 6 years ago by Chih-Hsuan Yen <yan12125@…>

Resolution: fixed
Status: assignedclosed

In 46789dfdac43ed135075d3ed722deb80dadadf41/macports-ports (master):

poppler: fix GIR generation during the build

Closes: #56680

comment:12 Changed 6 years ago by yan12125 (Chih-Hsuan Yen)

Sorry for the delay. GIR internals are beyond my ability, and why the patch works is still a mystery for me. Hopefully it won't break existing functionalities.

Note: See TracTickets for help on using tickets.