Subject: pkg/21822: www/opera7 is unable to launch applications
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Kai.Puolamaki@iki.fi>
List: netbsd-bugs
Date: 06/08/2003 09:09:09
>Number: 21822
>Category: pkg
>Synopsis: www/opera7 is unable to launch applications
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Jun 08 09:10:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Kai Puolamaki
>Release: NetBSD 1.6.1
>Organization:
-
>Environment:
NetBSD winnie.localdomain 1.6.1 NetBSD 1.6.1 (WINNIE) #0: Tue Apr 29 20:21:43 EEST 2003 root@winnie.localdomain:/usr/src/sys/arch/i386/compile/WINNIE i386
>Description:
www/opera7 is unable to launch native NetBSD applications, such as
emacs (as a source viewer) or gv (as a application/postscript
viewer). When trying to launch these applications Opera writes
to the console
Shared object "libXp.so.6" not found
and nothing happens.
>How-To-Repeat:
1. Install www/opera7
2. Set emacs as a source viewer (File -> Preferences... -> Programs
and paths).
3. Try to view a page source (View -> Source).
>Fix:
The problem occurs because Opera sets the environment variable
LD_PRELOAD=/usr/pkg/java/sun-1.3.1/lib/i386/libawt.so
Making the following wrapper script
/usr/local/bin/owrapper:
#!/bin/sh
unset LD_PRELOAD
exec $@
and replacing all direct calls to native NetBSD programs by
emacs -> /usr/local/bin/owrapper emacs
gv -> /usr/local/bin/owrapper gv
etc.
solves the problem.
One could make the www/opera7 install script to advice users
to make a wrapper script if they want to run applications from
Opera. (Unless there is a more elegant solution to this.)
>Release-Note:
>Audit-Trail:
>Unformatted: