当前位置: 代码迷 >> 综合 >> Glibc Error: `_obstack@GLIBC_2.2.5‘ can‘t be versioned to common symbol ‘_obstack_compat‘
  详细解决方案

Glibc Error: `_obstack@GLIBC_2.2.5‘ can‘t be versioned to common symbol ‘_obstack_compat‘

热度:86   发布时间:2023-12-22 11:15:49.0

Error: `_obstack@GLIBC_2.2.5’ can’t be versioned to common symbol '_obstack_compat’
原因:https://www.lordaro.co.uk/posts/2018-08-26-compiling-glibc.html
This was another issue relating to the newer binutils install. Turns out that all was needed was to initialise the _obstack_compat pointer to 0, or NULL. This variable also comes with the comment “A looong time ago (before 1994, anyway; we’re not sure) this global variable was used by non-GNU-C macros to avoid multiple evaluation. The GNU C library still exports it because somebody might use it.” Lovely legacy code. Mmm.

编译内核发现缺少glic-dev , 但是apt-get 又安装不上,于是手动安装,下载的是:2.17版本
make 的时候发现报了上面的错误,很疑惑,Google查了一下。
发现是历史遗留原因,所以换了个glibc的版本。

  相关解决方案