From owner-freebsd-ports Mon Feb 18 9:19:10 2002 Delivered-To: freebsd-ports@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id F3AA537B400 for ; Mon, 18 Feb 2002 09:19:03 -0800 (PST) Received: from shumai.marcuscom.com (marcus@shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g1IHIQ838126; Mon, 18 Feb 2002 12:18:26 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: nautilus fails to view html From: Joe Clarke To: Stijn Hoop Cc: Mathias.Picker@virtual-earth.de, ports@freebsd.org In-Reply-To: <20020218175541.G30622@pcwin002.win.tue.nl> References: <20020218141257.A58CD37B400@hub.freebsd.org> <1014050750.84830.2.camel@shumai.marcuscom.com> <20020218175541.G30622@pcwin002.win.tue.nl> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 18 Feb 2002 12:19:12 -0500 Message-Id: <1014052752.84830.9.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 2002-02-18 at 11:55, Stijn Hoop wrote: > On Mon, Feb 18, 2002 at 11:45:50AM -0500, Joe Clarke wrote: > > On Mon, 2002-02-18 at 09:12, Mathias.Picker@virtual-earth.de wrote: > > > on a freshly installed -stable machine. > > > > > > It says "A view failed..." > > > > > > starting nautilus-mozilla-content-view by hand gives: > > > > Gives what? Nothing? Did you compile with Mozilla support? This was > > only recently readded, and requires nautilus-1.0.6_2 with > > mozilla-embedded-0.9.8,1. > > I get the same, and the error message is: > > [stijn@pcwin002] <~> nautilus-mozilla-content-view http://slashdot.org > /usr/libexec/ld-elf.so.1: Shared object "libxpcom.so" not found > > Which can be right, since I suspect /usr/X11R6/lib/mozilla is not > in $LD_LIBRARY_PATH at that moment. > > Note that I ran 'nautilus' from the command prompt, not in a GNOME desktop > environment. Normally, nautilus is built against mozilla-embedded, and thus depends on libs in /usr/X11R6/lib/mozilla-embedded. Since /usr/X11R6/lib/mozilla-embedded isn't in the default ld search patch, gnome-session was patched to automatically add it at login. If you built nautilus against full mozilla, then you need to apply the following patch to /usr/ports/x11/gnomecore/files/patch-gsm::ice.c, and rebuild gnomecore. --- patch-gsm::ice.c.orig Thu Feb 14 01:59:54 2002 +++ patch-gsm::ice.c Thu Feb 14 02:51:46 2002 @@ -1,21 +1,27 @@ - -$FreeBSD: ports/x11/gnomecore/files/patch-gsm::ice.c,v 1.2 2002/01/23 15:22:51 sobomax Exp $ - ---- gsm/ice.c.orig Fri Oct 26 12:13:22 2001 -+++ gsm/ice.c Tue Jan 22 16:28:18 2002 -@@ -343,6 +343,15 @@ +--- gsm/ice.c.orig Fri Oct 26 05:13:22 2001 ++++ gsm/ice.c Thu Feb 14 02:51:27 2002 +@@ -343,6 +343,24 @@ p = g_strconcat (ENVNAME "=", ids, NULL); putenv (p); + -+ /* XXX: hack for embedded Mozilla */ ++ /* XXX: hack for Mozilla */ + p = getenv ("LD_LIBRARY_PATH"); + if (p == NULL) + p = ""; + else + p = g_strconcat (p, ":", NULL); + p = g_strconcat (p, X11BASE "/lib/mozilla-embedded", NULL); ++ p = g_strconcat (p, ":", NULL); ++ p = g_strconcat (p, X11BASE "/lib/mozilla", NULL); + setenv ("LD_LIBRARY_PATH", p, 1); ++ p = getenv ("MOZILLA_FIVE_HOME"); ++ if (p == NULL) { ++ p = ""; ++ p = g_strconcat (p, X11BASE "/lib/mozilla", NULL); ++ } ++ setenv("MOZILLA_FIVE_HOME", p, 1); ++ ice_depth = 0; /* We are live */ } Alternatively, you can set LD_LIBRARY_PATH to /usr/X11R6/lib/mozilla, and run nautilus from the command line (the same goes for /usr/X11R6/lib/mozilla-embedded if you're not running gnome-session). Joe > > HTH, > > --Stijn > > -- > The rain it raineth on the just > And also on the unjust fella, > But chiefly on the just, because > The unjust steals the just's umbrella. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message