Subject: Re: acroread problem: symbol lookup error: /usr/pkg/xorg/lib/libICE.so.6: undefined symbol: __sF
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: pkgsrc-users
Date: 03/01/2007 17:27:00
--Boundary-00=_UYl5FDRN+NArPcy
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Thu, 01 Mar 2007, Steven M. Bellovin wrote:
> I just upgraded to 4.99.12 from 25 February. When I click on a PDF
> link from native-compiled Firefox 2.0.0.2, I get
>
> /usr/pkg/Acrobat7/Reader/intellinux/bin/acroread: symbol lookup
> error: /usr/pkg/xorg/lib/libICE.so.6: undefined symbol: __sF
>
> If, otoh, I open the downloaded PDF file from a shell prompt, it
> just works. This problem started after my kernel+userland upgrade;
> these are the relevant packages:
We recently hit this, or something similar, with firefox 1.5.0.x and
acroread7. The problem in our case was that /usr/pkg/bin/firefox is
a script that explicitly sets up LD_LIBRARY_PATH to
include /usr/pkg/lib so then acroread, when run from firefox,
inherits that environment variable and starts potentially finding
some of its shared libraries in /usr/pkg/lib rather than the linux
ones.
Our current local fix is to clear LD_LIBRARY_PATH at the start of the
acroread7 script.
I haven't checked yet whether the LD_LIBRARY_PATH setting in the
firefox script is a recent change.
cheers
mark
--Boundary-00=_UYl5FDRN+NArPcy
Content-Type: text/x-diff;
charset="iso-8859-1";
name="foo"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="foo"
Index: files/acroread.diff
===================================================================
RCS file: /src/cvs/netbsd/pkgsrc/print/acroread7/files/acroread.diff,v
retrieving revision 1.4
diff -u -r1.4 acroread.diff
--- files/acroread.diff 13 Jun 2006 14:04:35 -0000 1.4
+++ files/acroread.diff 25 Feb 2007 13:02:42 -0000
@@ -1,17 +1,17 @@
-$NetBSD: acroread.diff,v 1.4 2006/06/13 14:04:35 salo Exp $
-
---- acroread.orig 2006-05-23 01:33:35.000000000 +0000
-+++ acroread 2006-06-13 13:55:00.000000000 +0000
-@@ -233,7 +233,7 @@ else
+--- acroread.orig 2007-02-26 01:46:29.000000000 +1300
++++ acroread 2007-02-26 01:49:49.000000000 +1300
+@@ -233,8 +233,9 @@
ScriptDirectory="`/bin/pwd 2> /dev/null`"
cd "$cwd"
fi
-install_dir=`dirname "$ScriptDirectory"`/Reader
+install_dir=@PREFIX@/Acrobat7/Reader
++LD_LIBRARY_PATH="" # protect from external setting
#
-@@ -476,18 +476,18 @@ check_gtk_ver_and_set_lib_path()
+ # Prepend a colon separated environment variable
+@@ -476,18 +477,18 @@
OLD_IFS=""
# This checks for libs in cache /etc/ld.so.cache
@@ -42,7 +42,7 @@
return 1
}
-@@ -614,6 +614,19 @@ case "$os_name" in
+@@ -614,6 +615,19 @@
ACRO_CONFIG=intellinux
export ACRO_CONFIG
;;
@@ -62,7 +62,7 @@
AIX)
ACRO_CONFIG=rs6000aix
export ACRO_CONFIG
-@@ -668,7 +681,7 @@ case "$ACRO_CONFIG" in
+@@ -668,7 +682,7 @@
;;
esac
--Boundary-00=_UYl5FDRN+NArPcy--