OT: Acrobat 7 and gtk-2.11.6 does not work. expr: syntax error message



There are two problems with Acrobat reader 7.0.9. One is a well 
documented sed error, and the other is that it cannot run with the newest 
gtk2. I have it running with one library from gtk 2.11.3 and here is a 
summary of the workaround.

Assuming you have installed the latest gtk2, 2.11.6 AND
you DO have libgtk-x11-2.0.so at version 2.11.3 or 
earlier....

1) copy the file libgtk-x11-2.0.so.0.1103.0 to /usr/lib

2) edit the file acroread and return 0 from the function

check_gtk_ver_and_set_lib_path()

3) and add these lines before acrobat is started

LD_PRELOAD=/usr/lib/libgtk-x11-2.0.so.0.1103.0
export LD_PRELOAD

This will force acrobat not to use the current libgtk-x11, but rather to 
use the last working version.

Here is my diff file for these changes:

peter mars ~/tmp $ diff -u acroread /opt/Acrobat7.0/bin/acroread
--- acroread    2007-01-05 14:56:39.000000000 -0500
+++ /opt/Acrobat7.0/bin/acroread        2007-08-05 11:30:13.000000000 -0400
@@ -431,6 +431,9 @@
 
 check_gtk_ver_and_set_lib_path()
 {
+       # assuming libgtk-x11.so is OK, skip these checks by returning 0
+       return 0
+
     if [ -z "$LD_LIBRARY_PATH" ]; then
         LD_LIBRARY_PATH=/lib:/usr/lib
     else
@@ -707,6 +710,9 @@
 ACRO_LANG=$ST_LANG
 export ACRO_LANG
 
+LD_PRELOAD=/usr/lib/libgtk-x11-2.0.so.0.1103.0
+export LD_PRELOAD
+
 # Adobe Reader/Acrobat uses gconftool-2 to check whether accessibility support is enabled. Please refer to the Readme file to work around this.
 check_file_in_path gconftool-2
 if [ $? -eq 0 ]


References: 
http://www.adobeforums.com/cgi-bin/webx?14@@.3bc4895e/1
http://javier.rodriguez.org.mx/index.php/2007/06/01/fix-adobe-acrobat-readers-expr-syntax-error-message/

although the sed workaround does NOT apply nor does it help at all
with the newest gtk.
-- 
Peter




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]