This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building LyX 1.2.0 on HP-UX 11.11 with G++ 3.2


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]