[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#584572: symbol lookup error: undefined symbol



On Fri, 4 Jun 2010, Matthias Klose wrote:
works for me, can anybody else reproduce this?

On a different machine, also mostly testing/unstable
with libstdc++6 from experimental:

$ cat test.cpp #include <cstdio>

int main() {
	puts("Hello World!\n");

	return 0;
}
$ g++ -o test test.cpp $ ./test ./test: symbol lookup error: /usr/lib/libstdc++.so.6: undefined symbol: _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE, version GLIBCXX_3.4
$

Additionally, with v4.5.0-5

$ readelf -aW /usr/lib/libstdc++.so.6 | fgrep _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4
   144: 000e9734     4 OBJECT  UNIQUE DEFAULT   28 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4
$

but with v4.4.4-1

$ readelf -aW /usr/lib/libstdc++.so.6 | fgrep _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4
   144: 000ef6b4     4 OBJECT  WEAK   DEFAULT   28 _ZNSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE2idE@@GLIBCXX_3.4
$

I don't know whether the WEAK/UNIQUE difference is significant, I just happened to notice it.

--
Edward Allcutt
Network Operations
Gleim Publications



Reply to: