<em><a href="Non-Sumou.html">Other GNU tips</a></em></p>
If you try to use gv, a great pdf file and postscript file viewer, notable for keyboard operation, on a system with unpatched ghostscript 8.71, gv will fail with something like:</p>
<pre> Error: /undefined in copy_trailer_attrs <blockquote> <p class="quoted">Operand stack:</p> </blockquote> <blockquote> <p class="quoted">Execution stack: %interp_exit .runexec2 —nostringval— —nostringval— —nostringval— 2 %stopped_push —nostringval— —nostringval— —nostringval— false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop 1755 1 3 %oparray_pop —nostringval— %errorexec_pop .runexec2 —nostringval— —nostringval— —nostringval— 2 %stopped_push —nostringval— Dictionary stack: —<a href="http://en.wikipedia.org/wiki/Special:Search?search=1159/1684">dict:1159/1684</a>(ro)(G)— —<a href="http://en.wikipedia.org/wiki/Special:Search?search=1/20">dict:1/20</a>(G)— —<a href="http://en.wikipedia.org/wiki/Special:Search?search=75/200">dict:75/200</a>(L)— —<a href="http://en.wikipedia.org/wiki/Special:Search?search=108/127">dict:108/127</a>(ro)(G)— —<a href="http://en.wikipedia.org/wiki/Special:Search?search=288/300">dict:288/300</a>(ro)(G)— —<a href="http://en.wikipedia.org/wiki/Special:Search?search=21/25">dict:21/25</a>(L)— Current allocation mode is local Last OS error: 11 GPL Ghostscript 8.71: Unrecoverable error, exit code 1 </pre></p> </blockquote>
This is due to bugs in ghostscript 8.71.</p>
I solved the issue by compiling ghostscript based on Sabayon Gentoo patches and guidelines. You can achieve this by:</p> <ul> <li>Download the patched ghostscript source, including all Gentoo ghostscript 8.71-r4 patches: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ wget -c <a href="http://sumoudou.org/src/ghostscript-8.71-r4.tar.xz">http://sumoudou.org/src/ghostscript-8.71-r4.tar.xz</a></b></td></tr></table></li> <li>Extract and build: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>$ tar xvf ghostscript-8.71-r4.tar.xz<br /> $ cd ghostscript-8.71-r4<br /> $ sed -i -e 's:png_check_sig:png_sig_cmp:' base/configure.ac<br /> $ sed -i -e 's:png_check_sig:png_sig_cmp:' jbig2dec/configure.ac<br /> $ autoreconf<br /> $ cd jbig2dec<br /> $ autoreconf<br /> $ cd ijs<br /> $ autoreconf<br /> $ ./configure —disable-compile-inits —enable-dynamic —enable-fontconfig —with-driver=ALL —with-ijs —with-jbig2dec —with-libpaper<br /> $ make -j1 so all<br /> $ make -j1 install-so install</b></td></tr></table></li> </ul>
Now gv will not fail and will display pdf files beautifully. <!— Page published by Emacs Muse ends here —> </div> <i>To send me feedback about this page, use the below email.</i><br /> <b>© sumoudou.org 2010</b><br /> <img style="border:0" alt="sumoudou.org" src="email.gif" width="129" height="10" /><br /> <a href="http://www.gnu.org/" style="text-decoration: none;"><img style="border:0" alt="GNU" src="powered-by-gnu.png" />]] <a href="http://www.gnu.org/software/emacs/emacs.html" style="text-decoration: none;"><img style="border:0" alt="GNU Emacs" src="made-with-emacs.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hcoop-proud-member.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hosted-by-hcoop.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="made-with-muse.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="powered-by-muse.png" />]] <br /> <a href="http://www.fsf.org/resources/formats/playogg" style="text-decoration: none;"><img style="border:0" alt="Ogg" src="play-ogg.png" />]] <a href="http://www.catb.org/hacker-emblem/" style="text-decoration: none;"><img style="border:0" alt="Glider" src="glider.png" />]] <a href="http://ubuntu.com/" style="text-decoration: none;"><img style="border:0" alt="Ubuntu" src="ubuntu.png" />]] <a href="http://validator.w3.org/check?uri=referer" style="text-decoration: none;"><img style="border:0" alt="Valid XHTML 1.0 Strict!" src="valid-xhtml10-blue.png" />]] <a href="http://jigsaw.w3.org/css-validator/check/referer" style="text-decoration: none;"><img style="border:0" alt="Valid CSS!" src="valid-css-blue.png" />]] <br />Last updated 2010-04-25-081624
</div> <br />. </body> </html>