Opened 8 years ago

Closed 8 years ago

#53137 closed defect (worksforme)

Poppler 0.50.0 Undeclared Identifier

Reported by: lefte (Erik Hanson) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc: mkae (Marko Käning)
Port: poppler

Description

I'm receiving an error when attempting to upgrade poppler from 0.49.0_0 < 0.50.0_1 using port upgrade outdated. From the output:

$ sudo port clean poppler
--->  Cleaning poppler
$ sudo port upgrade outdated
--->  Computing dependencies for poppler
--->  Fetching archive for poppler
--->  Attempting to fetch poppler-0.50.0_1.darwin_16.x86_64.tbz2 from https://packages.macports.org/poppler
--->  Attempting to fetch poppler-0.50.0_1.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/poppler
--->  Attempting to fetch poppler-0.50.0_1.darwin_16.x86_64.tbz2 from http://lil.fr.packages.macports.org/poppler
--->  Fetching distfiles for poppler
--->  Verifying checksums for poppler
--->  Extracting poppler
--->  Configuring poppler
--->  Building poppler
Error: org.macports.build for port poppler returned: command execution failed
Please see the log file for port poppler for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_poppler/poppler/main.log
Error: Unable to upgrade port: 1

And the first apparent lines from the log:

695 :info:build JPEG2000Stream.cc:169:37: error: use of undeclared identifier 'OPJ_CLRSPC_SRGB'; did you mean 'CLRSPC_SRGB'?
696 :info:build     if (priv->image->color_space == OPJ_CLRSPC_SRGB && numComps == 4) { numComps = 3; }
697 :info:build                                     ^~~~~~~~~~~~~~~
698 :info:build                                     CLRSPC_SRGB
699 :info:build /opt/local/include/openjpeg.h:133:2: note: 'CLRSPC_SRGB' declared here
700 :info:build         CLRSPC_SRGB = 1,                /**< sRGB */
701 :info:build         ^

Attachments (1)

poppler-0-50-0-1-error.log (120.8 KB) - added by lefte (Erik Hanson) 8 years ago.
Poppler 0.50.0_1 Error Log

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by lefte (Erik Hanson)

Attachment: poppler-0-50-0-1-error.log added

Poppler 0.50.0_1 Error Log

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Keywords: poppler removed
Owner: set to dbevans
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers poppler), if any.

comment:2 Changed 8 years ago by lefte (Erik Hanson)

Forgot to mention, I'm using OSX Sierra 10.12.2

comment:3 Changed 8 years ago by dbevans (David B. Evans)

Status: assignedaccepted

comment:4 Changed 8 years ago by mkae (Marko Käning)

Cc: mkae added

comment:5 Changed 8 years ago by mkae (Marko Käning)

It worked for me on Sierra 10.12.2:

$ sudo port install poppler
--->  Computing dependencies for poppler
--->  Fetching distfiles for poppler
--->  Attempting to fetch poppler-0.50.0.tar.xz from https://poppler.freedesktop.org/
--->  Verifying checksums for poppler                                                
--->  Extracting poppler
--->  Configuring poppler
--->  Building poppler
--->  Staging poppler into destroot
--->  Installing poppler @0.50.0_1
--->  Activating poppler @0.50.0_1
--->  Cleaning poppler
--->  Updating database of binaries
--->  Scanning binaries for linking errors               
--->  No broken files found.               

comment:6 Changed 8 years ago by dbevans (David B. Evans)

The build works for me as well on Sierra and earlier systems and on the buildbots so there seems to be an issue specific to your installation. I suggest updating your ports and trying a clean install of poppler.

sudo port selfupdate
sudo port clean poppler
sudo port install poppler

comment:7 Changed 8 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: acceptedclosed

No further response. Works for me.

Note: See TracTickets for help on using tickets.