public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Building LyX 1.2.0 on HP-UX 11.11 with G++ 3.2
@ 2002-08-22 15:08 John David Anglin
  2002-08-22 15:14 ` Jeff Law
  0 siblings, 1 reply; 16+ messages in thread
From: John David Anglin @ 2002-08-22 15:08 UTC (permalink / raw)
  To: gcc; +Cc: law

> The underlying *object file format* can't handle weak symbols.  Any attempt
> to use them will ultimately fail.

I wasn't absolutely convinced of that.

> Looks like they (HP) are using aborted code -- we tried to make SOM
> secondary definitions masquerade as weak symbols, but in the end it won't
> work due to limitations of secondary definitions.  Trust me, if they're
> emitting .weak for SOM, it's going to break -- it's just a matter of time.

I thought the major issue was we weren't providing a primary symbol
definition for the secondary.  The primary symbol has to have the same
name as the secondary with '_' prefixed.  Maybe gas just needed a fix
to do this?

I recall we also had some trouble with long symbols using HP nm but
I thought that was fixable with the correct options.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Building LyX 1.2.0 on HP-UX 11.11 with G++ 3.2
@ 2002-08-22  5:31 Albert Chin
  2002-08-22  9:29 ` Albert Chin
  0 siblings, 1 reply; 16+ messages in thread
From: Albert Chin @ 2002-08-22  5:31 UTC (permalink / raw)
  To: gcc

I configured and built GCC 3.2 on hppa2.0w-hp-hpux11.11:
  $ CC="cc -Ae +DAportable" ../configure --with-gnu-as \
  --with-included-gettext --enable-shared

I then tried to build LyX 1.2.0, a C++ application and received errors
about unresolved symbols in the final link stage:
  g++ -O2 -march=1.1 [.o files] mathed/.libs/libmathed.a
  insets/.libs/libinsets.a frontends/.libs/libfrontends.a -lforms -lXpm
  graphics/.libs/libgraphics.a support/.libs/libsupport.a
  ../sigc++/.libs/libsigc.a ../intl/libintl.a -lSM -lICE -lc -lm
  -L/usr/lib/X11R6 -lX11
  /usr/ccs/bin/ld: Unsatisfied symbols:
     typeinfo name for MathStackrelInset(first referenced in
mathed/.libs/libmathed.a(formulabase.o)) (data)
     ControlInset<InsetGraphics, InsetGraphicsParams>::updateSlot(bool)
(first referenced in frontends/.libs/libfrontends.a(Alert.o)) (code)
     typeinfo name for InsetError(first referenced in
insets/.libs/libinsets.a(inset.o)) (data)
     typeinfo name for InsetParent(first referenced in
insets/.libs/libinsets.a(inset.o)) (data)
  ...

$ cd /opt/build/lyx-1.2.0/src
$ nm -C libmathed.a | grep MathStackrelInset
         U MathStackrelInset::MathStackrelInset()
...
00000000 T MathStackrelInset::MathStackrelInset()
00000000 T MathStackrelInset::MathStackrelInset()
00000000 t MathStackrelInset::~MathStackrelInset()
00000000 t MathStackrelInset::~MathStackrelInset()
00000000 T MathStackrelInset::draw(Painter&, int, int) const
00000000 T MathStackrelInset::clone() const
00000000 T MathStackrelInset::write(WriteStream&) const
00000000 T MathStackrelInset::metrics(MathMetricsInfo const&) const
00000000 T MathStackrelInset::normalize(NormalStream&) const
4000018c D typeinfo for MathStackrelInset
         U typeinfo name for MathStackrelInset
40000040 D vtable for MathStackrelInset
$ nm -C libfrontends.a | grep updateSlot | grep InsetGraphicsParams
         U ControlInset<InsetGraphics, InsetGraphicsParams>::updateSlot(bool)
00000000 t ControlInset<InsetGraphics, InsetGraphicsParams>::updateSlot(bool)

The 'nm' above is from GNU binutils. The HP 'nm' doesn't demangle the
C++ symbol names correctly as its -C option works only with ELF
objects.

Did I build GCC wrong? I have similar problems building another C++
application, Octave.

-- 
albert chin (china@thewrittenword.com)

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-08-23 10:08 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-22 15:08 Building LyX 1.2.0 on HP-UX 11.11 with G++ 3.2 John David Anglin
2002-08-22 15:14 ` Jeff Law
2002-08-22 15:45   ` John David Anglin
2002-08-22 16:34     ` Jeff Law
2002-08-22 17:11       ` John David Anglin
2002-08-23  5:32       ` Albert Chin
2002-08-23 10:08         ` Jeff Law
  -- strict thread matches above, loose matches on Subject: below --
2002-08-22  5:31 Albert Chin
2002-08-22  9:29 ` Albert Chin
2002-08-22  9:34   ` John Levon
2002-08-22  9:48     ` Albert Chin
2002-08-22 12:12       ` Jeff Law
2002-08-22 12:15         ` Albert Chin
2002-08-22  9:40   ` Jeff Law
2002-08-22 11:02     ` Albert Chin
2002-08-22 12:02       ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).