Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87679 - acroread 7.0 plugin does not work with firefox
Summary: acroread 7.0 plugin does not work with firefox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 91291 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-02 08:42 UTC by georg.lippold
Modified: 2005-06-12 09:47 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
acroread-7.0.ebuild.patch (acroread-7.0.ebuild.patch,1.88 KB, patch)
2005-04-06 07:34 UTC, Fabio Rossi
Details | Diff
files/fix_firefox_plugin.sh (fix_firefox_plugin.sh,1.07 KB, text/plain)
2005-04-06 07:35 UTC, Fabio Rossi
Details
files/acroread7.patch (acroread7.patch,540 bytes, patch)
2005-04-06 07:36 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description georg.lippold 2005-04-02 08:42:49 UTC
Although the nppdf.so plugin is linked under /usr/lib/nsbrowser/plugins and firefox finds it correctly (about:plugins lists it as installed), no pdf's can be viewed in the browser.

Reproducible: Always
Steps to Reproduce:
1. emerge firefox
2. insert =app-text/acroread-7.0 in /etc/portage/package.keywords
3. be sure that /usr/lib/nsbrowser/plugins/nppdf.so is linked to /opt/netscape/plugins
4. start firefox and try any pdf on the internet (e.g. http://www.copyright.gov/legislation/dmca.pdf )

Actual Results:  
The document is not displayed in the browser window and no download is made either

Expected Results:  
The document should have been displayed in the browser window

I tried this both on my laptop under 2005.0 and on my desktop under 2004.3 with
different windowmanagers (blackbox, xfce4).
Comment 1 georg.lippold 2005-04-02 08:46:40 UTC
Steps to reproduce should include
2.a. emerge acroread
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-02 09:54:52 UTC
Do you use firefox or firefox-bin?
Are you on amd64?
What version of firefox do you use?
Can you please post your full emerge info?
Comment 3 georg.lippold 2005-04-02 12:52:37 UTC
On both hosts, CHOST defaults to "i686-pc-linux-gnu", firefox and not firefox-bin is installed and I am on x86-stable.
My useflags on my desktop computer are:
USE="3dnow aac acpi aim apache2 async bzlib cdparanoia dga dio divx4linux \
     dvd dvdr dvdread fbcon gcj gimp icq idea imap java javamail \
     javascript jbig jce jdepend jp2 lzo lzw lzw-tiff memlimit mime mmx \
     mozcalendar mozp3p mozplaintext mozsvg mp3 mpeg4 mplayer msn mythtv \
     netcdf network nis nntp nvidia offensive oscar parse-clocks passfile \
     pic pie posix pthreads rtc sasl session shared sharedmem silc smime \
     sockets svg sysvipc tga theora unicode unsupported_8bit usb wmf \
     wxwindows X509 xinerama xpm xvid xvmc yahoo yv12 -apm -foomaticdb \
     -gnome -libg -mikmod -spell -svga -aalib -alsa -arts -berkdb -bonobo \
     -cups -esd -gdbm -gtk -guile -kde -libwww -motif -mysql -perl -qt \
     -slang -tcltk"
with CXXFLAGS=CFLAGS="-mcpu=athlon -O3 -pipe"
I am currently using mozilla-launcher-1.23 and firefox-1.0.1.

On my laptop, I have the use-flags:
USE="alsa aac acpi acl aim apm avi bash-completion bluetooth bzlib cdr crypt \
cscope cups gcj dga divx4linux dv dvb dvd dvdread encode exif fortran ffmpeg \
flac foomaticdb ftp gif gnutls gstreamer gtk2 hal hardened howl icq \
imagemagick imap java jabber jpeg kerberos ldap lm_sensors mad mbox memlimit \
mppe-mppc mime mhash mmap mmx mono mp3 mpeg mpi msn nis nls nptl offensive ogg \
oggvorbis oscar pam pcmcia pdflib pic pie png pnp posix portaudio ppds \
quicktime readline samba sasl scanner sdl ncurses sockets sox sse ssl svg \
sysfs tetex theora tiff threads truetype trusted unicode usb v4l vcd wifi wmf \
wxwindows xface xine xinerama xml2 xmms xosd xpm xv xvid yahoo zeo \
unsupported_8bit"
with CFLAGS=CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer"
and have mozilla-firefox-1.0.2 and mozilla-launcher-1.30
Comment 4 georg.lippold 2005-04-02 12:59:30 UTC
emerge -pv for my desktop:
[ebuild     U ] www-client/mozilla-firefox-1.0.2 [1.0.1] -debug -gnome +java -ldap -mozdevelop -moznoxft +mozsvg -mozxmlterm +xinerama -xprint 0 kB 
[ebuild     U ] www-client/mozilla-launcher-1.30 [1.23] 0 kB 
[ebuild   R   ] app-text/acroread-7.0  -ldap -noplugin 0 kB 

emerge -pv for my notebook:
[ebuild   R   ] www-client/mozilla-firefox-1.0.2  -debug +gnome +java +ldap -mozdevelop -moznoxft -mozsvg -mozxmlterm +xinerama -xprint 31,992 kB 
[ebuild   R   ] www-client/mozilla-launcher-1.30  5 kB 
[ebuild   R   ] app-text/acroread-7.0  -cjk +ldap -noplugin 0 kB 
Comment 5 Fabio Rossi 2005-04-04 02:06:01 UTC
Read the post from IWBCMAN on http://forums.gentoo.org/viewtopic-t-290897-postdays-0-postorder-asc-highlight-acroread-start-25.html to solve the problem of the plugin
Comment 6 georg.lippold 2005-04-04 03:27:09 UTC
works like a charm. Thanks! Will you include this in future versions of the ebuild?
Comment 7 Fabio Rossi 2005-04-05 12:36:10 UTC
I dont' know who maintains this ebuild :-)
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-05 12:40:30 UTC
I maintain it currently .. and I would appreciate it when you could make a patch for it, because I cannot currently reproduce the problem .. I use firefox-bin and it works like a charm without tricks.
Comment 9 Fabio Rossi 2005-04-06 07:34:06 UTC
In the link above it's written that there is a problem using gtk+ > 2.4.9 with the acroread plugin and firefox (compiled from sources).

To make the patch it is necessary to build and not to install the gtk+-2.4.9. Some gtk+ libraries are then installed with acroread.

As it isn't possible to execute the command ebuild inside an another .ebuild file, I've choosen to insert a note in pkg_postinst() to tell users to execute a script to do the work.

The script is called fix_firefox_plugin.sh: it builds gtk+-2.4.9-r1 (with -doc use flag to gain time), installs the needed libraries and patches the acroread script.
Comment 10 Fabio Rossi 2005-04-06 07:34:38 UTC
Created attachment 55471 [details, diff]
acroread-7.0.ebuild.patch
Comment 11 Fabio Rossi 2005-04-06 07:35:43 UTC
Created attachment 55473 [details]
files/fix_firefox_plugin.sh

The script to execute after acroread installation
Comment 12 Fabio Rossi 2005-04-06 07:36:34 UTC
Created attachment 55474 [details, diff]
files/acroread7.patch

The patch for the /opt/Acrobat7/acroread script
Comment 13 Stefan Schweizer (RETIRED) gentoo-dev 2005-04-07 13:16:31 UTC
This looks like a very hacky solution to the problem .. 
I wont add it this way, because it will fail when the gtk+-2.4.9-ebuild is no longer in portage.

The easiest would probably be to add a <gtk+-2.4.10 depend, but its not possible with portage to add it only when firefox and not firefox-bin is installed :(

So I propose to provide some static pre-compiled binaries in the ebuild to be used  only when firefox/mozilla is detected to be incompatible, what do you think?
Comment 14 Fabio Rossi 2005-04-07 15:19:31 UTC
I agree with you for the precompiled libraries of gtk+. This is the clean and easy solution for all kind of users. When the definitive version of acroread will come out it will be necessary to check for the need of this hack.
Comment 15 Fabio Rossi 2005-04-12 13:12:11 UTC
Today I have tested the original ebuild of acroread and the official release of acroread: the plugin still doesn't work with firefox. So it seems the precompiled libraries of gtk+ are needed :-)
Comment 16 Benjamin Schulz 2005-04-12 15:18:25 UTC
using the fix from the forum, the plugin does still not work. It produces the following error:

/opt/Acrobat7/Reader/intellinux/bin/acroread: error while loading shared libraries: libBIB.so: cannot open shared object file: No such file or directory
/opt/Acrobat7/Reader/intellinux/bin/acroread: error while loading shared libraries: libBIB.so: cannot open shared object file: No such file or directory
/opt/Acrobat7/Reader/intellinux/bin/acroread: error while loading shared libraries: libBIB.so: cannot open shared object file: No such file or directory
/opt/Acrobat7/Reader/intellinux/bin/acroread: error while loading shared libraries: libBIB.so: cannot open shared object file: No such file or directory
/opt/Acrobat7/Reader/intellinux/bin/acroread: error while loading shared libraries: libBIB.so: cannot open shared object file: No such file or directory
/opt/Acrobat7/Reader/intellinux/bin/acroread: error while loading shared libraries: libBIB.so: cannot open shared object file: No such file or directory

my emerge info:
Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 19 2005, 02:53:45)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fforce-addr -falign-functions=4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fforce-addr -falign-functions=4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3ds X Xaw3d aalib acpi acpi4linux alsa apm arts avi bitmap-fonts cdparanoia cdr cdrom chroot cmucl codecs cpdflib cross crypt cups curl devfs26 dga directfb divx4linux dnd doc dv dvd dvdr dvdread emacs emacs-w3 emboss encode esd fam flac foomaticdb fortran freetype gd gdbm gif gimp gimpprint glut gnome gpm gsl gtk gtk2 guile i810 icc icc-pgo icq ifc imagemagick imlib ipv6 irda java jpeg jpeg2k junit kde koffice-plugin latex leim libg++ libwww lirc lzo lzw lzw-tiff mad mikmod mmx mmx2 motif mozilla mp3 mpeg mpeg4 mplayer mule ncurses nls ogg oggvorbis opengl opens oss pam pcmcia pdflib perl plotutils pngpnp python qt quicktime readline samba scanner sdl slang sockets socks5 speex spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts trusted type1 type1-fonts unicode usb vorbis xine xml xml2 xmms xv zlib video_cards_i830"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 17 Benjamin Schulz 2005-04-12 15:20:18 UTC
the fix worked. I had to copy all shared files from the above /lib directory to the gui directory. 
Comment 18 Fabio Rossi 2005-04-13 02:30:12 UTC
Benjamin, we're wrong. In the /opt/Acrobat7/acroread script it is set the LD_LIBRARY_PATH, so the library are searched in /opt/Acrobat7/../lib/gui and then in /opt/Acrobat7/../lib/. I have libBIB.so in the original position and it works :-)
Comment 19 Fabio Rossi 2005-04-13 02:31:36 UTC
Oops, Benjamin substitue "we're" with "you're" :-)
Comment 20 Stewart (Blkdeath) 2005-04-19 18:44:14 UTC
Presently using Firefox-bin-1.0.3 and Acroread-7.0 here; when I installed Acrobat 7 initially I was using a pre-existing version of Firefox (bin) 1.0.2 - pdf viewing didn't work. Upon updating Firefox to 1.0.3 it works flawlessly (and about 10x as fast as 5.0, I might add)
Comment 21 Fabio Rossi 2005-04-20 03:57:11 UTC
Yes, I confirm. Now the acroread plugin works with firefox 1.0.3 (compiled from sources) without using the gtk+ workaround. The acroread I'm using is the last one with digest

MD5 0ce9b4fc702f831db97a627ef2629675 AdbeRdr70_linux_enu.tar.gz 39467776
Comment 22 Jakub Moc (RETIRED) gentoo-dev 2005-04-30 04:32:28 UTC
Works for me with mozilla-firefox-1.0.3 and the final acroread-7.0 version. 
Comment 23 Giacomo Perale 2005-04-30 06:37:26 UTC
same here, acroread 7.0 final works with mozilla-firefox 1.0.3 (compiled from sources) and gtk+ 2.6.7
Comment 24 georg.lippold 2005-05-02 03:44:09 UTC
For me it works too now. Thanks.

Georg
Comment 25 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-02 05:10:09 UTC
ok, I think this is resolved with mozilla-firefox-1.0.3 being stable. If you need the version with the new digest, then please tell me in bug 88956: http://bugs.gentoo.org/show_bug.cgi?id=88956

thank you for all your help
Closing this as FIXED
Comment 26 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-12 09:47:36 UTC
*** Bug 91291 has been marked as a duplicate of this bug. ***