Comment 50 for bug 571247

Revision history for this message
Claude Krantz (puma) wrote :

I can confirm that the LD_PRELOAD method does not work in a x86_64 environment (with 64-bit firefox). The acroread_exec_monitor.so does not preload even if compiled with the -fPIC option. I did not really try to understand why.

However, as suggested by swt-techie, one can compile acroread_interceptor with -m32 and use it to replace acroread on-disk as described in the source code header.

Steps to follow if you are on a x86_64 system:

* change the following line in build_interceptor.sh
    - gcc -Wno-format-security -ggdb -o acroread_interceptor acroread_interceptor.c
    + gcc -m32 -Wno-format-security -ggdb -o acroread_interceptor acroread_interceptor.c
* run build_interceptor.sh
* in /opt/Adobe/Reader9/Reader/intellinux/bin, rename "acroread" to "acroread.original"
* copy the compiled "acroread_interceptor" to /opt/Adobe/Reader9/Reader/intellinux/bin and rename it to "acroread"
* make sure the new "acroread" is executable for all users

This got me rid of this Adobe bug on Oneriric x86_64. Many thanks to Massimiliano for sharing his code.