mozilla port borked?

Julian Elischer julian at elischer.org
Mon Apr 28 13:43:01 PDT 2003



On 28 Apr 2003, Joe Marcus Clarke wrote:

> On Mon, 2003-04-28 at 15:32, Julian Elischer wrote:
> > I ran portipdate on Friday and since then mozilla
> > doesn't run..
> > 
> > > 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
> > > 
> > there IS such a file in the mozilla work dir..
> 
> 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 sets
> LD_LIBRARY_PATH such that this object can be found.
> 
> 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.

Ahh
I'm launching from /usr/X11R6/bin/mozilla

but the script doesn't seem to be changing anything..
--------------------------------
#!/bin/sh

MOZILLA_DIR="/usr/X11R6/lib/mozilla"
MOZILLA_EXEC="mozilla"
LOCATION='new-tab'

cd $MOZILLA_DIR                                     || exit 1

case $1 in
    -mail)
        REMOTE_COMMAND="xfeDoCommand (openInbox)"
        ;;
    -*)
        exec ./$MOZILLA_EXEC "$@"
        ;;
    *)
        REMOTE_COMMAND="openURL($@, $LOCATION)"
        ;;
esac

# process found
./$MOZILLA_EXEC -remote "ping()"                    &&
./$MOZILLA_EXEC -remote "$REMOTE_COMMAND"           && exit 0

# no existing process
exec ./$MOZILLA_EXEC "$@"
-------------------------------

/usr/X11R6/lib/mozilla/mozilla 
doesn't seem to be doing it either.

However doing ldconfig -m /usr/X11R6/bin/mozilla
seems to fix it..
I see that there are some of these libraries in
other directories
(see below) 

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

> 
> Joe
> > julian# ldd /usr/X11R6/lib/mozilla/mozilla-bin 
> > /usr/X11R6/lib/mozilla/mozilla-bin:
> >         libmozjs.so => /usr/local/lib/libmozjs.so (0x2809b000)
> >         libplds4.so => /usr/local/lib/libplds4.so (0x2810c000)
> >         libplc4.so => /usr/local/lib/libplc4.so (0x28132000)
> >         libnspr4.so => /usr/local/lib/libnspr4.so (0x2815a000)
> >         libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x28189000)
> >         libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x282b1000)
> >         libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3
> > (0x282e5000)
> >         libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x282e8000)
> >         libintl.so.4 => /usr/local/lib/libintl.so.4 (0x2830a000)
> >         libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x28312000)
> >         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x2831a000)
> >         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28328000)
> >         libm.so.2 => /usr/lib/libm.so.2 (0x283e4000)
> >         libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x283ff000)
> >         libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28444000)
> >         libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284f9000)
> >         libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 (0x285d4000)
> > julian#

for example, libnspr4 is in /usr/local/lib and /usr/X11R6/lib/mozilla.
It's getting ht eold one in the link.




More information about the freebsd-ports mailing list