pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/pdftk and NetBSD 4.0 and gcj: libgcj.spec: No such file or directory



I am not familiar with code that is built with gcj. And I don't know what 
libgcj.spec to use.

And I don't know if this requires gcc34 or if other gcc versions will 
work. I have gcc 4.1.2 included with base NetBSD 4.0 and gcc34-3.4.6nb1 
and gcc3-c-3.3.6 packages. I don't think I want gcc3-c-3.3.6 but that was 
a requirement for gcc3-java which I was thinking of building but then 
realized that was different from gcc34. 

I sent this yesterday to the pkgsrc-wip-discuss list. But maybe I can get 
some help here.

Building pkgsrc/wip/pdftk failed for me with:

===> Configuring for pdftk-1.41
(test -d /usr/pkgsrc/wip/pdftk/work/.gcc/bin || /bin/mkdir -p 
/usr/pkgsrc/wip/pdftk/work/.gcc/bin)
(cd /usr/pkg/gcc34/bin && bin_files=`/bin/ls *` &&  cd 
/usr/pkgsrc/wip/pdftk/work/.gcc/bin &&  for _target_ in ${bin_files} ; do  
echo '#!/bin/sh' > ${_target_} &&  echo -n "exec 
/usr/pkg/gcc34/bin/${_target_}" >> ${_target_} &&  echo ' "$@"' >> 
${_target_} &&  /bin/chmod +x ${_target_};  done )
===> Building for pdftk-1.41
/usr/pkg/bin/gmake -C ../java_libs
gmake[1]: Entering directory 
`/usr/pkgsrc/wip/pdftk/work/pdftk-1.41/java_libs'
/usr/pkg/bin/gmake -C 
"/usr/pkgsrc/wip/pdftk/work/pdftk-1.41/java_libs/gnu_local/java/security";
gmake[2]: Entering directory 
`/usr/pkgsrc/wip/pdftk/work/pdftk-1.41/java_libs/gnu_local/java/security'
gcj -O2 --encoding=UTF-8 
--classpath="/usr/pkgsrc/wip/pdftk/work/pdftk-1.41/java_libs" -c 
Engine.java -o Engine.o
gcj: libgcj.spec: No such file or directory
gmake[2]: *** [Engine.o] Error 1
gmake[2]: Leaving directory 
`/usr/pkgsrc/wip/pdftk/work/pdftk-1.41/java_libs/gnu_local/java/security'
gmake[1]: *** [libgcj_local] Error 2
gmake[1]: Leaving directory 
`/usr/pkgsrc/wip/pdftk/work/pdftk-1.41/java_libs'
gmake: *** [java_libs] Error 2


I have gcc34-3.4.6nb1 installed which provides /usr/pkg/gcc34/bin/gcj

Do I also need gcc3-java installed? If so, how should the dependency be 
done?

It is not listed in the NetBSD/x86_64/4.0_2007Q3/All/pkg_summary so I 
don't know if it is available.

Also why isn't pdftk in official pkgsrc yet? Something wrong with it?

  Jeremy C. Reed

p.s. I just need to cut out some PDF pages. texexec loses the page size 
and changes formatting but pdftk works good last time I used it. gv 
converting PDF and saving selected pages to postscript looks terrible 
(loses font details?). If anyone knows of an alternative, please let me 
know.



Home | Main Index | Thread Index | Old Index