Can't install pdftk +with_gcc34
Yves de Champlain
yves at macports.org
Thu Feb 22 13:40:04 PST 2007
Le 07-02-22 à 13:06, Ryan Schmidt a écrit :
> "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
> Password:
> ---> Building pdftk with target all
> Error: Target com.apple.build returned: shell command "cd "/opt/
> local/var/db/dports/build/
> _Users_rschmidt_macports_dports_textproc_pdftk/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/
> _Users_rschmidt_macports_dports_textproc_pdftk/work/pdftk-1.41/
> java_libs/gnu_local/java/security";
> /opt/local/bin/gcj-dp-3.4 -O2 --encoding=UTF-8 --classpath="/opt/
> local/var/db/dports/build/
> _Users_rschmidt_macports_dports_textproc_pdftk/work/pdftk-1.41/
> java_libs" -c Engine.java -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
> /opt/local/gcj34-3.4.5/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.
Well I justed added a with_gcj34 variant that should do the trick.
However, the gcj34 port is sort of deprecated and should be replaced
by gcc34 or, even better, gcc41. Revision 2 of pdftk was a switch
from gcj34 to gcc34 which explains why it used to work with gcj.
yves
More information about the macports-users
mailing list