Re: [WORKAROUND] www/seamonkey2 on CURRENT

From: Alexander Kabaev <kabaev_at_gmail.com>
Date: Sat, 29 Jan 2011 19:08:39 -0500
On Sat, 29 Jan 2011 21:20:12 +0100
Alexey Shuvaev <shuvaev_at_physik.uni-wuerzburg.de> wrote:

> On Fri, Jan 28, 2011 at 05:37:51PM -0800, Garrett Cooper wrote:
> > On Fri, Jan 28, 2011 at 3:58 PM, Alexey Shuvaev
> > <shuvaev_at_physik.uni-wuerzburg.de> wrote:
> > > Hello!
> > >
> > > It seems www/seamonkey2 is broken on CURRENT for at least 1 month
> > > now [1]. Examining build log and reproducing it locally, the
> > > problem is in the usage of libiconv in nsNativeCharsetUtils.cpp.
> > > The linker fails to produce libxpcom_core.so although
> > > -L/usr/local/lib and -liconv are specified [2]. Examining this
> > > further I found that ..o produced with [3]
> > > fails to link with libiconv alone too [4] (note still unresolved
> > > libiconv references). I'm not a compiler/linker guru and do not
> > > understand what is happening here. As a workaroud I use the
> > > attached patch which disables the usage of libiconv in
> > > nsNativeCharsetUtils.cpp.
> > 
> > ls /usr/local/lib/libiconv*so* ?
> >
> ~> ll /usr/local/lib/libiconv*so*
> lrwxr-xr-x  1 root  wheel       13 Jan 27
> 13:14 /usr/local/lib/libiconv.so -> libiconv.so.3 -r--r--r--  1 root
> wheel  1078567 Jan 27 13:14 /usr/local/lib/libiconv.so.3
> 
> I'm not so lame :)
> 
> On Sat, Jan 29, 2011 at 01:39:15PM -0500, Alexander Kabaev wrote:
> > On Sat, 29 Jan 2011 13:21:44 -0500
> > Alexander Kabaev <kabaev_at_gmail.com> wrote:
> > 
> > > On Sat, 29 Jan 2011 13:02:24 -0500 (EST)
> > > Daniel Eischen <deischen_at_freebsd.org> wrote:
> > > 
> > > > On Sat, 29 Jan 2011, Alexey Shuvaev wrote:
> > > > 
> > > > > Hello!
> > > > >
> > > > > It seems www/seamonkey2 is broken on CURRENT for at least 1
> > > > > month now [1]. Examining build log and reproducing it
> > > > > locally, the problem is in the usage of libiconv in
> > > > > nsNativeCharsetUtils.cpp. The linker fails to produce
> > > > > libxpcom_core.so although -L/usr/local/lib and -liconv are
> > > > > specified [2]. Examining this further I found that
> > > > > nsNativeCharsetUtils.o produced with [3] fails to link with
> > > > > libiconv alone too [4] (note still unresolved libiconv
> > > > > references). I'm not a compiler/linker guru and do not
> > > > > understand what is happening here. As a workaroud I use the
> > > > > attached patch which disables the usage of libiconv in
> > > > > nsNativeCharsetUtils.cpp.
> > > > 
> > > > Yes, I had this problem also on -current.  Does seamonkey build
> > > > on recent 8.x?
> > > > 
> > > > libxpcomio_s.a is a static library that has unresolved
> > > > references to libiconv.  I guess I'd expect those references to
> > > > be resolved with a later -L/usr/local/lib -liconv when building
> > > > the shared library (libxpcom_core.so), but they are not.
> > > > 
> > > 
> > > My wild guess: seamonkey tries to hide symbols that are coming
> > > from different .o file (this time one from libiconv.a) and that
> > > fails with our toolchain.
> > > 
> > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218
> > > -- 
> > > Alexander Kabaev
> > 
> > Follow-up to myself: Nope, the fix to said bug appears in our
> > compiler. Can you make amd64 version of nsNativeCharsetUtils.
> > -- 
> > Alexander Kabaev
> >
> ??? (It is already on amd64)
Email was sent while not finished.

Can you make amd64 version of nsNativeCharsetUtils.o available from
somewhere along with corresponding .ii file? To get .ii file you can
add -save-temps to GCC invocation used to compile
nsNativeCharsetUtils.cpp.

-- 
Alexander Kabaev

Received on Sat Jan 29 2011 - 23:08:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC