Can't install pdftk +with_gcc34

Ryan Schmidt ryandesign at
Thu Feb 22 10:06:36 PST 2007

"port outdated" showed me the pdftk port was upgraded. Doing a "sudo  
port upgrade pdftk" started installing gmp, and I looked at the  
changes in the pdftk portfile in r22181 and saw that it now depends  
on gcc41 by default, which depends on gmp, neither of which I had  
installed. I did not want to wait for gcc41 to compile itself, so I  
used the +with_gcc34 variant. And it said as follows:

$ sudo port install pdftk +with_gcc34
--->  Building pdftk with target all
Error: Target returned: shell command "cd "/opt/local/ 
work/pdftk-1.41/pdftk" && make all -f Makefile.MacOSX TOOLPATH=/opt/ 
local/bin/ VERSUFF=-dp-3.4" returned error 2
Command output: make -C ../java_libs
make -C "/opt/local/var/db/dports/build/ 
/opt/local/bin/gcj-dp-3.4 -O2 --encoding=UTF-8 --classpath="/opt/ 
java_libs" -c -o Engine.o
/bin/sh: line 1: /opt/local/bin/gcj-dp-3.4: No such file or directory
make[2]: *** [Engine.o] Error 127
make[1]: *** [libgcj_local] Error 2
make: *** [java_libs] Error 2

Error: Status 1 encountered during processing.

I do have the gcj34 port installed, but gcj is not located at /opt/ 
local/bin/gcj-dp-3.4 on my system:

$ port contents gcj34 | grep bin/gcj$

/opt/local/bin/gcj is a symlink to /opt/local/gcj34-3.4.5/bin/gcj.

If pdftk needs gcj34, shouldn't the pdftk portfile declare a  
dependency on gcj34?

I do not have the gcc34 port installed. Installing pdftk did not  
automatically try to install gcc34.

The previous version of pdftk which I had installed worked just fine.

I'm on Mac OS X 10.4.8 PPC G4.

More information about the macports-users mailing list