Opened 8 years ago

Closed 8 years ago

#50935 closed defect (fixed)

poppler @0.42.0 does not build on 10.5.8 PPC

Reported by: udbraumann Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: poppler

Description

...
:info:build /bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I/opt/local/include    -I/opt/local/include/openjpeg-1.5 -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/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I.. -I../goo -I/opt/local/include  -fPIC -Wall -Woverloaded -virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions  -fno-common -pipe -Os -arch ppc -D_THREAD_SAFE -pthread -MT libpoppler_la-Decrypt.lo -MD -MP -MF .deps/libpoppler_la-Decrypt.Tpo -c -o libpoppler_la-Decrypt.lo `test -f 'Decrypt.cc' || echo './'`Decrypt.cc
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I/opt/local/include/openjpeg-1.5 -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/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I.. -I../goo -I/opt/local/include -fPIC -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-common -pipe -Os -arch ppc -D_THREAD_SAFE -pthread -MT libpoppler_la-Decrypt.lo -MD -MP -MF .deps/libpoppler_la-Decrypt.Tpo -c Decrypt.cc  -fno-common -DPIC -o .libs/libpoppler_la-Decrypt.o
:info:build Decrypt.cc:1447: error: integer constant is too large for ‘long’ type
...
:info:build Decrypt.cc:1630: error: integer constant is too large for ‘long’ type
:info:build make[3]: *** [libpoppler_la-Decrypt.lo] Error 1
...

However, selecting gcc-mp-5

sudo port install poppler configure.compiler=macports-gcc-5

works for me.

Attachments (1)

main.log.gz (10.1 KB) - added by udbraumann 8 years ago.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by udbraumann

Attachment: main.log.gz added

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

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

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

Blind fix committed in r146906. Let me know if this works for you.

comment:3 in reply to:  2 Changed 8 years ago by udbraumann

Replying to devans@…:

Blind fix committed in r146906. Let me know if this works for you.

Thanks, behaves better now, but still has the problem in Decrypt.cc between lines 1623 and 1630:

...
:info:build libtool: compile:  /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I/opt/local/include/openjpeg-1.5 -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/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I.. -I../goo -I/opt/local/include -fPIC -Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-common -pipe -Os -arch ppc -D_THREAD_SAFE -pthread -MT libpoppler_la-Decrypt.lo -MD -MP -MF .deps/libpoppler_la-Decrypt.Tpo -c Decrypt.cc  -fno-common -DPIC -o .libs/libpoppler_la-Decrypt.o
:info:build Decrypt.cc:1623: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1624: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1625: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1626: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1627: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1628: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1629: error: integer constant is too large for ‘long’ type
:info:build Decrypt.cc:1630: error: integer constant is too large for ‘long’ type
:info:build make[3]: *** [libpoppler_la-Decrypt.lo] Error 1
...

Perhaps you can have a look again, thanks.

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

Yes, missed that block. Fixed in r147005. Hopefully that will do it.

comment:5 in reply to:  4 Changed 8 years ago by udbraumann

Works now, thanks!

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

Cc: devans@… removed
Keywords: gcc-4.2 removed
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.