File: libprotobuf.ver

package info (click to toggle)
mysql-8.0 8.0.43-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,904 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,184; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,196; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (45 lines) | stat: -rw-r--r-- 1,776 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
  Hide all symbols from the standard library.

  This is a workaround for libstdc++ problems on redhat 6, which are caused
  by our INSTALL_DEBUG_TARGET cmake macro: we *link* with one .so library,
  but *run* with a different version.

  The installed mysqld-debug will not start because of:
  bin/mysqld-debug: symbol lookup error: undefined symbol: _ZNSs4backEv
  Running c++filt on that symbol, we get
  std::basic_string<char, std::char_traits<char>, std::allocator<char> >::back()

  Parts of the std C++ library are not found in /usr/lib64/libstdc++.so.6
  but must be linked from -lstdc++_nonshared.

  Try on RedHat 6:
  readelf -Ws /usr/lib64/libstdc++.so.6 | grep _ZNSs4backEv

  That symbol has a weak implementation in libprotobuf-lite-debug.so
  but is undefined in mysqld-debug, which means mysqld-debug will not
  run with libprotobuf-lite.so (the non-debug version).

  The solution is to add this version-script which explicitly makes
  all symbols from the standard library hidden. It is really only needed
  on RedHat 6/7, but we might as well use it on all Linuxes.

  https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling

   <substitution> ::= St # ::std::
   <substitution> ::= Sa # ::std::allocator
   <substitution> ::= Sb # ::std::basic_string
   <substitution> ::= Ss # ::std::basic_string < char,
						 ::std::char_traits<char>,
						 ::std::allocator<char> >
   <substitution> ::= Si # ::std::basic_istream<char,  std::char_traits<char> >
   <substitution> ::= So # ::std::basic_ostream<char,  std::char_traits<char> >
   <substitution> ::= Sd # ::std::basic_iostream<char, std::char_traits<char> >
 */

MYSQL_HIDE_STD {
        local:
                _ZS[tabsiod]*;
                _ZNS[tabsiod]*;
                _ZNKS[tabsiod]*;
};