Subject: pkg/21822: www/opera7 is unable to launch applications
To: None <>
From: None <>
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
>Originator:     Kai Puolamaki
>Release:        NetBSD 1.6.1
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

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 "" not found

and nothing happens.
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).
The problem occurs because Opera sets the environment variable

Making the following wrapper script

   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

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.)