被libc弄得晕头转向……

编译 kports,结果 configure 检查QT的时候报错,查看config.log:libqt-mt.so: undefined … __res_state
我一看,又是这个…… 从前见过,但从前加了 -pthread 就好了,现在怎么不行呢?然后,去网上找,什么都没有;去 /usr/lib和/lib和/usr/local/lib grep,都没有…… 汗……
于是去 /usr/src/lib/libpthread 里面找,一点都没有发现……
偶尔灵机一动,想到可能在别的库里面。于是到 /usr/src/lib 里面找,结果在 /usr/src/lib/libc/resolv/res_state.c 里面找到了。既然这样,为什么 /lib/libc.so.6 里面会grep不到??
尝试一下,重新编译安装libc,再试,好了!!
估计是上次没有 make buildword 的结果…… 以后一定make buildworld…

Old Blog Link: http://computer.mblogger.cn/henryhu/posts/61348.aspx

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.