Skip site navigation (1)Skip section navigation (2)
Date:      28 Apr 2003 17:08:27 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        ports@freebsd.org
Subject:   Re: mozilla port borked?
Message-ID:  <1051564106.362.69.camel@gyros>
In-Reply-To: <Pine.BSF.4.21.0304281327260.45358-100000@InterJet.elischer.org>
References:  <Pine.BSF.4.21.0304281327260.45358-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-xaj+DHO0xJBgos5CVNyB
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2003-04-28 at 16:42, Julian Elischer wrote:
> On 28 Apr 2003, Joe Marcus Clarke wrote:
>=20
> > On Mon, 2003-04-28 at 15:32, Julian Elischer wrote:
> > > I ran portipdate on Friday and since then mozilla
> > > doesn't run..
> > >=20
> > > > mozilla
> > > /usr/libexec/ld-elf.so.1: Shared object "libmozjs.so" not found
> > > /usr/libexec/ld-elf.so.1: Shared object "libmozjs.so" not found
> > > >=20
> > > there IS such a file in the mozilla work dir..
> >=20
> > Are you launching Mozilla out of the port working dir, or from
> > /usr/X11R6/bin?  If the latter, then the libmozjs.so file should be in
> > /usr/X11R6/lib/mozilla directory.  In this case, the mozilla script set=
s
> > LD_LIBRARY_PATH such that this object can be found.
> >=20
> > If you're running it from the port working dir, and there is no
> > /usr/X11R6/lib/mozilla/libmozjs.so, then the it will most likely fail.
>=20
> Ahh
> I'm launching from /usr/X11R6/bin/mozilla
>=20
> but the script doesn't seem to be changing anything..
> --------------------------------
> #!/bin/sh
>=20
> MOZILLA_DIR=3D"/usr/X11R6/lib/mozilla"
> MOZILLA_EXEC=3D"mozilla"
> LOCATION=3D'new-tab'
>=20
> cd $MOZILLA_DIR                                     || exit 1
>=20
> case $1 in
>     -mail)
>         REMOTE_COMMAND=3D"xfeDoCommand (openInbox)"
>         ;;
>     -*)
>         exec ./$MOZILLA_EXEC "$@"
>         ;;
>     *)
>         REMOTE_COMMAND=3D"openURL($@, $LOCATION)"
>         ;;
> esac
>=20
> # process found
> ./$MOZILLA_EXEC -remote "ping()"                    &&
> ./$MOZILLA_EXEC -remote "$REMOTE_COMMAND"           && exit 0
>=20
> # no existing process
> exec ./$MOZILLA_EXEC "$@"
> -------------------------------
>=20
> /usr/X11R6/lib/mozilla/mozilla=20
> doesn't seem to be doing it either.

Right.  /usr/X11R6/lib/mozilla/run-mozilla.sh does all the magic (around
line 358).

>=20
> However doing ldconfig -m /usr/X11R6/bin/mozilla
                                       ^^^
Really!?  That doesn't make any sense at all.  /usr/X11R6/lib/mozilla
might make sense, but it shouldn't be required.  If you run mozilla -g
from the command line, it should print out all the variables.  I have
the GTK+-2 version, but yours should be similar to:

MOZILLA_FIVE_HOME=3D.
=20
LD_LIBRARY_PATH=3D.:./plugins:/usr/X11R6/lib/browser_plugins:/usr/X11R6/lib=
/mre/mre-1.3
DISPLAY=3D:0.0
FONTCONFIG_PATH=3D/usr/X11R6/etc/fonts:./res/Xft
DYLD_LIBRARY_PATH=3D.:/usr/X11R6/lib/mre/mre-1.3
     LIBRARY_PATH=3D.:./components:/usr/X11R6/lib/mre/mre-1.3
       SHLIB_PATH=3D.:/usr/X11R6/lib/mre/mre-1.3
          LIBPATH=3D.:/usr/X11R6/lib/mre/mre-1.3
       ADDON_PATH=3D.
      MOZ_PROGRAM=3D./mozilla-bin
      MOZ_TOOLKIT=3D
        moz_debug=3D1
     moz_debugger=3D


> seems to fix it..

> I see that there are some of these libraries in
> other directories
> (see below)=20
>=20
> I think that the port should clear out old copies in these places
> because I think I'm getting a mix of old and new versions of these=20
> libs.
>=20
> >=20
> > Joe
> > > julian# ldd /usr/X11R6/lib/mozilla/mozilla-bin=20
> > > /usr/X11R6/lib/mozilla/mozilla-bin:
> > >         libmozjs.so =3D> /usr/local/lib/libmozjs.so (0x2809b000)
> > >         libplds4.so =3D> /usr/local/lib/libplds4.so (0x2810c000)
> > >         libplc4.so =3D> /usr/local/lib/libplc4.so (0x28132000)
> > >         libnspr4.so =3D> /usr/local/lib/libnspr4.so (0x2815a000)
> > >         libgtk12.so.2 =3D> /usr/X11R6/lib/libgtk12.so.2 (0x28189000)
> > >         libgdk12.so.2 =3D> /usr/X11R6/lib/libgdk12.so.2 (0x282b1000)
> > >         libgmodule12.so.3 =3D> /usr/local/lib/libgmodule12.so.3
> > > (0x282e5000)
> > >         libglib12.so.3 =3D> /usr/local/lib/libglib12.so.3 (0x282e8000=
)
> > >         libintl.so.4 =3D> /usr/local/lib/libintl.so.4 (0x2830a000)
> > >         libXi.so.6 =3D> /usr/X11R6/lib/libXi.so.6 (0x28312000)
> > >         libXext.so.6 =3D> /usr/X11R6/lib/libXext.so.6 (0x2831a000)
> > >         libX11.so.6 =3D> /usr/X11R6/lib/libX11.so.6 (0x28328000)
> > >         libm.so.2 =3D> /usr/lib/libm.so.2 (0x283e4000)
> > >         libstdc++.so.3 =3D> /usr/lib/libstdc++.so.3 (0x283ff000)
> > >         libc_r.so.4 =3D> /usr/lib/libc_r.so.4 (0x28444000)
> > >         libiconv.so.3 =3D> /usr/local/lib/libiconv.so.3 (0x284f9000)
> > >         libXThrStub.so.6 =3D> /usr/X11R6/lib/libXThrStub.so.6 (0x285d=
4000)
> > > julian#
>=20
> for example, libnspr4 is in /usr/local/lib and /usr/X11R6/lib/mozilla.
> It's getting ht eold one in the link.

This is seriously weird.  While having /usr/local/lib/libplds4.so,
/usr/local/lib/libplc4.so, and /usr/local/lib/libnspr4.so are acceptable
(devel/nspr may installed them), having /usr/local/lib/libmozjs.so is
not.  Do a pkg_info -W /usr/local/lib/libmozjs.so, and find out which
port/package installed it.

As for the rest of the libs, they look okay compared to my -STABLE
machine.

Joe

>=20
--=20
PGP Key : http://www.marcuscom.com/pgp.asc



--=-xaj+DHO0xJBgos5CVNyB
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA+rZhKb2iPiv4Uz4cRAumIAKCtfjzb7T+rUX5gv3+S7FKWVOefHgCfYhGS
/yfqXbDV4Jy43VwdrnbiZr4=
=eLns
-----END PGP SIGNATURE-----

--=-xaj+DHO0xJBgos5CVNyB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1051564106.362.69.camel>