From owner-freebsd-ports@FreeBSD.ORG Fri Apr 1 07:09:52 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BD0F16A4CE for ; Fri, 1 Apr 2005 07:09:52 +0000 (GMT) Received: from w250.z064001178.sjc-ca.dsl.cnc.net (209-204-181-78.dsl.static.sonic.net [209.204.181.78]) by mx1.FreeBSD.org (Postfix) with SMTP id C09A143D1F for ; Fri, 1 Apr 2005 07:09:51 +0000 (GMT) (envelope-from jos@catnook.com) Received: (qmail 94191 invoked by uid 1000); 1 Apr 2005 07:10:13 -0000 Date: Thu, 31 Mar 2005 23:09:51 -0801 From: Jos Backus To: ports@freebsd.org Message-ID: <20050401071013.GA76660@lizzy.catnook.local> Mail-Followup-To: ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Browser and Acrobat Reader problem + solution X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jos@catnook.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2005 07:09:52 -0000 I was having this problem with recent Acrobat Reader ports and mozilla's/firefoxes which exhibited itself by the inability to open PDF documents from within the browser. Inside the browser (mozilla/firefox) the `acroread' script is being used as a helper application to open the PDF file. The error I was seeing indicated that acroread (the Linux binary) was trying to open /usr/local/lib/libartsdsp.so.0! After some digging I found the following: The /usr/local/bin/mozilla script tries to find a /dev/dsp handler; under KDE it finds and uses artsdsp which sets LD_PRELOAD to something like /usr/local/lib/libartsdsp.so.0:/usr/local/lib/libartsc.so.0. This of course doesn't work since a Linux binary (acroread) cannot use FreeBSD DSO's. The fix is to use a helper script which unsets LD_PRELOAD before starting acroread: % cat /usr/local/bin/acroread.sh #!/bin/sh unset LD_PRELOAD exec acroread "$@" % Hope somebody finds this useful. -- Jos Backus jos at catnook.com