This is the mail archive of the 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]

egcs-980302 and prerelease-1.0.2: /usr/lib/ undefined reference to filebuf virtual table

Hi all,

  Am I missing something here?  With both egcs-980302 and the prerelease-1.0.2
  versions, when I try to compile any C++ program (even one without #include
  statements).  I get the following message:

/usr/lib/ undefined reference to `filebuf virtual table'

  Doing an 'nm /usr/lib/ | grep "vt.*filebuf"' gives:

00032ca8 D __vt_7filebuf
         U _vt.7filebuf

  Doing a 'g++ -H -v -o bug' gives:

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.25/specs
gcc version egcs-2.90.25 980302 (egcs-1.0.2 prerelease)
 /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.25/cpp -lang-c++ -v -undef -D__GNU
C__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=90 -D__ELF__ -Dunix -Dlinux -D
__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS
 -H -Di386 -Di586 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -D__i586
__ -Asystem(unix) -Acpu(i386) -Amachine(i386) /tmp/cca23108.ii
GNU CPP version egcs-2.90.25 980302 (egcs-1.0.2 prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
 /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.25/cc1plus /tmp/cca23108.ii -quiet
 -dumpbase -version -o /tmp/cca23108.s
GNU C++ version egcs-2.90.25 980302 (egcs-1.0.2 prerelease) (i586-pc-linux-gnu)
compiled by GNU C version egcs-2.90.25 980302 (egcs-1.0.2 prerelease).
 as -V -Qy -o /tmp/cca231081.o /tmp/cca23108.s
GNU assembler version 980224 (i586-linux), using BFD version
 /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.25/ld -m elf_i386 -dynamic-linker
/lib/ -o bug /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i586-
pc-linux-gnu/egcs-2.90.25/crtbegin.o -L/usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2
.90.25 -L/usr/i586-pc-linux-gnu/lib /tmp/cca231081.o -lstdc++ -lm -lgcc -lc -lgc
c /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.25/crtend.o /usr/lib/crtn.o
/usr/lib/ undefined reference to `filebuf virtual table'
collect2: ld returned 1 exit status

  Any help would be greatly appreciated.  Should I just revert to using
  /usr/lib/ for now?  (Will it work with the newer egcs?).

Thank you,

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