Opened 10 years ago

Closed 10 years ago

#44737 closed defect (invalid)

poppler @0.26.4_0: build fails, cannot find "opj_stdint.h"

Reported by: papachoco (Carlos Sanchez) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc:
Port: poppler

Description

My installation of poppler fail to upgrade. Log attached

Thanks a lot

Carlos

Attachments (1)

main.log (113.1 KB) - added by papachoco (Carlos Sanchez) 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by papachoco (Carlos Sanchez)

Attachment: main.log added

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: devans@… removed
Keywords: install removed
Owner: changed from macports-tickets@… to devans@…
Summary: Fail to upgrade popplerpoppler @0.26.4_0: build fails, cannot find "opj_stdint.h"

comment:2 Changed 10 years ago by dbevans (David B. Evans)

Status: newassigned

There's something wrong with your installation of poppler's dependency openjpeg15. The error from your log file is

705	:info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../goo -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -fPIC -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-common -pipe -Os -arch x86_64 -stdlib=libc++ -D_THREAD_SAFE -pthread -MT CurlPDFDocBuilder.lo -MD -MP -MF .deps/CurlPDFDocBuilder.Tpo -c CurlPDFDocBuilder.cc  -fno-common -DPIC -o .libs/CurlPDFDocBuilder.o
706	:info:build In file included from JPEG2000Stream.cc:15:
707	:info:build In file included from ./JPEG2000Stream.h:19:
708	:info:build /opt/local/include/openjpeg.h:115:10: fatal error: 'opj_stdint.h' file not found
709	:info:build #include "opj_stdint.h"
710	:info:build          ^
711	:info:build 1 error generated.

openjpeg15 does install /opt/local/include/openjpeg.h but its version does not include any reference to opj_stdint.h.

openjpeg (version 2.1) on the other hand installs its include file at /opt/local/include/openjpeg-2.1/openjpeg.h and THAT openjpeg.h DOES reference opj_stdint.h (installed at /opt/local/include/openjpeg-2.1/opj_stdint.h) at line 115.

So it looks like you have the openjpeg version of openjpeg.h installed where the openjpeg15 version should be.

I suggest reinstalling openjpeg15 and then try upgrading poppler again.

sudo port -n upgrade --force openjpeg15
sudo port upgrade poppler
Version 1, edited 10 years ago by dbevans (David B. Evans) (previous) (next) (diff)

comment:3 Changed 10 years ago by papachoco (Carlos Sanchez)

Indeed my /opt/local/include/openjpeg.h was pointing to openjpeg-2.1openjpeg.h. I had changed it previously b/c I was installing ImageMagick @6.8.9-7 outside macports.

Thanks a lot for the tip.

as soon as I changed my openjpeg.h link to openjpeg-1.5/openjpeg.h poppler upgraded w/o any problem

Carlos

comment:4 Changed 10 years ago by dbevans (David B. Evans)

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.