public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
To: d92-foh@nada.kth.se
Cc: gcc@gcc.gnu.org
Subject: Re: Troubles with -fno-vtable-thunks recompilation.... Was: Strange C++ behaviour
Date: Thu, 30 Sep 1999 18:02:00 -0000	[thread overview]
Message-ID: <199909142102.XAA00709@mira.isdn.cs.tu-berlin.de> (raw)
Message-ID: <19990930180200.ojL9ACFOMCIhERuEfmpsoLKgrEj_NqRBoVmFguJ-EO8@z> (raw)
In-Reply-To: <Pine.GSO.3.95.990914144308.14497A-100000@mumrik.nada.kth.se>

> /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/libstdc++.a(stdstrbufs.o)(.data+0xb4):
> undefined reference to `filebuf virtual table'
> 
[...]
> I assume that I in some way must tell gcc to use the new glibc
> library when compiling new stuff but I am completely lost here.....
> 
> Am I on the right track? Any help would be greatly appreciated!

If vtable thunks are not used, mangling of the vtable changes: It
either starts with '__vt.' or '__vt_'. It appears that libstdc++
requires a different symbol than you have available.

This, in turn, could result from an incorrect contents of _G_config.h,
which explains the C++ vtable mechanism to C applications. You'll
probably have numerous copies of a file with that name. Make sure you
are using the right one consistently. The one that comes with glibc is
probably wrong if you are not using vtable thunks and needs to be
replaced.

Regards,
Martin

  reply	other threads:[~1999-09-30 18:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199909022230.AAA00668@mira.isdn.cs.tu-berlin.de>
1999-09-14  6:36 ` Fredrik Öhrström
1999-09-14 14:08   ` Martin v. Loewis [this message]
1999-09-15  9:06     ` Almost got glibc working with no-vtable-thunks, but Fredrik Öhrström
1999-09-15 15:05       ` Martin v. Loewis
1999-09-16  3:50         ` Fredrik Öhrström
1999-09-16 10:37           ` Martin v. Loewis
1999-09-30 18:02             ` Martin v. Loewis
1999-09-30 18:02           ` Fredrik Öhrström
1999-09-30 18:02         ` Martin v. Loewis
1999-09-30 18:02       ` Fredrik Öhrström
1999-09-30 18:02     ` Troubles with -fno-vtable-thunks recompilation.... Was: Strange C++ behaviour Martin v. Loewis
1999-09-30 18:02   ` Fredrik Öhrström

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909142102.XAA00709@mira.isdn.cs.tu-berlin.de \
    --to=martin@mira.isdn.cs.tu-berlin.de \
    --cc=d92-foh@nada.kth.se \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).