Subject: Re: minimo
To: Masahiko Ito <m-ito@mbox.kyoto-inet.or.jp>
From: Andy Ruhl <acruhl@gmail.com>
List: port-hpcmips
Date: 04/01/2005 18:17:42
On Apr 1, 2005 8:37 AM, Andy Ruhl <acruhl@gmail.com> wrote:
> On Apr 1, 2005 7:08 AM, Masahiko Ito <m-ito@mbox.kyoto-inet.or.jp> wrote:
> > Hello Andy.
> >
> > From: Andy Ruhl <acruhl@gmail.com>
> > Subject: Re: minimo
> > Date: Fri, 1 Apr 2005 04:21:35 -0700
> > Message-ID: <78a2305a050401032134ebc176@mail.gmail.com>
> >
> > acruhl> Ok, I may have made a mistake here. I didn't do this part:
> > acruhl>
> > acruhl> Dummy setlocale
> > acruhl>
> > acruhl>     * cc -fPIC -shared -o dmysetlocale.so dmysetlocale.c
> > acruhl>     * cp dmysetlocale.so /usr/local/lib/
> > acruhl>     * LD_PRELOAD=/usr/local/lib/dmysetlocale.so; export LD_PRELOAD
> > acruhl>     * CHARSET=EUC-JP; export CHARSET
> > acruhl>
> > acruhl> I figured I didn't need to since I'm using the standard locale setup.
> > acruhl> Is this the case?
> >
> > In my case, I had to need `Dummy setlocale' to use japanese input
> > method. If you don't need to use any input method, you don't need
> > `Dummy setlocale' too.
> >
> > acruhl> # /usr/local/firefox/run-mozilla.sh /usr/local/firefox/TestGtkEmbed
> > acruhl> Shared object "libX11.so.6" not found
> > acruhl>
> > acruhl> And I must be going crazy, because last night all I did was add this
> > acruhl> line to /etc/ld.so.conf:
> > acruhl>
> > acruhl> /usr/X11R6/lib/libX11.so.6
> >
> > I think that you should add `/usr/X11R6/lib' to /etc/ld.so.conf.
> > `/libX11.so.6' part should not be needed in the line you added ?
> 
> !)(*&!!%*
> 
> That's what I did. I knew I was forgetting something... :)
> 
> > Could you show me your result of `cat /etc/ld.so.conf' and
> > `ldd /usr/local/firefox/TestGtkEmbed' ?
> 
> I don't have the mobilepro 880 handy right now, but here is what
> happens from the Qube:
> 
> bash-3.00# pwd
> /usr/local/firefox
> bash-3.00# cat /etc/ld.so.conf
> /usr/X11R6/lib
> /usr/local/firefox
> bash-3.00# export DISPLAY=foghorn:1.0
> bash-3.00# ./run-mozilla.sh ./TestGtkEmbed
> [1]   Segmentation fault (core dumped) "${prog}" ${1+"$...
> bash-3.00# ldd ./TestGtkEmbed
> ./TestGtkEmbed:
>          -lnspr4 => /usr/local/firefox/libnspr4.so
>          -lplds4 => /usr/local/firefox/libplds4.so
>          -lplc4 => /usr/local/firefox/libplc4.so
>          -lstdc++.5 => /usr/lib/libstdc++.so.5
>          -lm.0 => /usr/lib/libm.so.0
>          -lgcc_s.1 => /usr/lib/libgcc_s.so.1
>          -lpthread.0 => /usr/lib/libpthread.so.0
>          -lxpcom => /usr/local/firefox/libxpcom.so
>          -lintl.0 => /usr/lib/libintl.so.0
>          -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
>          -lgmodule-2.0.0 => /usr/pkg/lib/libgmodule-2.0.so.0
>          -lgobject-2.0.0 => /usr/pkg/lib/libgobject-2.0.so.0
>          -lgdk_pixbuf-2.0.0 => /usr/pkg/lib/libgdk_pixbuf-2.0.so.0
>          -lX11.6 => /usr/X11R6/lib/libX11.so.6
>          -lXext.6 => /usr/X11R6/lib/libXext.so.6
>          -lXi.6 => /usr/X11R6/lib/libXi.so.6
>          -lz.0 => /usr/lib/libz.so.0
>          -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
>          -lexpat.0 => /usr/pkg/lib/libexpat.so.0
>          -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
>          -lXrender.1 => /usr/pkg/lib/libXrender.so.1
>          -lXft.2 => /usr/pkg/lib/libXft.so.2
>          -lXfixes.0 => /usr/pkg/lib/libXfixes.so.0
>          -lXcursor.1 => /usr/pkg/lib/libXcursor.so.1
>          -lpango-1.0.0 => /usr/pkg/lib/libpango-1.0.so.0
>          -lpangoft2-1.0.0 => /usr/pkg/lib/libpangoft2-1.0.so.0
>          -lpangoxft-1.0.0 => /usr/pkg/lib/libpangoxft-1.0.so.0
>          -lpangox-1.0.0 => /usr/pkg/lib/libpangox-1.0.so.0
>          -lgdk-x11-2.0.0 => /usr/pkg/lib/libgdk-x11-2.0.so.0
>          -latk-1.0.0 => /usr/pkg/lib/libatk-1.0.so.0
>          -lgtk-x11-2.0.0 => /usr/pkg/lib/libgtk-x11-2.0.so.0
>          -lgtkembedmoz => /usr/local/firefox/libgtkembedmoz.so
>          -lmozjs => /usr/local/firefox/libmozjs.so
>          -lc.12 => /usr/lib/libc.so.12
> 
> I don't think I need all that stuff you have in your ld.so.conf, I
> don't even have netpbm installed for instance. I also noticed that
> some stuff wasn't getting resolved when I did ldd, so I added
> /usr/local/firefox to the ld.so.conf but the result is the same.
> 
> Do you want the core? I tried running GDB on it but I get this:
> 
> (gdb) bt
> #0  0x304704b8 in _PR_NativeRunThread () from ./libnspr4.so
> warning: Warning: GDB can't find the start of the function at 0x10005480.
> 
> I'm not super smart about this stuff so I really don't know what's
> going on. Maybe related to threading?

Built 1.0.2, same thing. 

Oh well.

Andy