From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert Chin To: gcc@gcc.gnu.org Subject: Re: Building LyX 1.2.0 on HP-UX 11.11 with G++ 3.2 Date: Thu, 22 Aug 2002 09:48:00 -0000 Message-id: <20020822114834.B9686@oolong.il.thewrittenword.com> References: <20020822073107.A5468@oolong.il.thewrittenword.com> <20020822112947.A9686@oolong.il.thewrittenword.com> <20020822163438.GA34759@compsoc.man.ac.uk> X-SW-Source: 2002-08/msg01324.html On Thu, Aug 22, 2002 at 05:34:38PM +0100, John Levon wrote: > On Thu, Aug 22, 2002 at 11:29:47AM -0500, Albert Chin wrote: > > > > $ nm -C libfrontends.a | grep updateSlot | grep InsetGraphicsParams > > > U ControlInset::updateSlot(bool) > > > 00000000 t ControlInset::updateSlot(bool) > > > > The 'W' WEAK reference matches what I get on Solaris. So, why does my > > GCC build return 't', not 'W'? > > I can only assume this is a toolchain bug. There's no reason this should > be a local symbol only ('t') > > If I had diskspace I'd download 3.2 and have a go myself What's odd is that the 3.2-prerelease provided by HP works fine. I don't necessarily think binutils is the problem. I replaced the 'as' I built with the one provided in their package and have the same problem. So, GCC must be emitting the 't'. (HP 3.2-prerelease) $ g++ -v Reading specs from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.2/specs Configured with: ../gcc/configure --enable-languages=c,c++ --host=hppa1.1-hp-hpux11.00 --target=hppa1.1-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as --enable-libstdcxx-v3 --disable-checking Thread model: single gcc version 3.2 20020708 (experimental) (My 3.2 release) Reading specs from /opt/TWWfsw/gcc32/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.2/specs Configured with: ../configure --with-gnu-as --with-as=/opt/TWWfsw/gcc32/hppa2.0w-hp-hpux11.11/bin/as --with-included-gettext --enable-shared --prefix=/opt/TWWfsw/gcc32 --with-local-prefix=/opt/TWWfsw/gcc32 Thread model: single gcc version 3.2 (TWW) I rebuild the offending source with -s and compared the .s files from both compilers. I get lots of: - .weak _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_ - .EXPORT _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_,ENTRY,PRIV_LEV=3,ARGW0=GR,ARGW1=GR,RTNVAL=GR + .PARAM _ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_,PRIV_LEV=3,ARGW0=GR,ARGW1=GR,RTNVAL=GR -- albert chin (china@thewrittenword.com)