clang+VNET -> netstat: no namelist

看板FB_current作者時間13年前 (2012/06/03 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
Hi, I'm running a kernel+world compiled with clang (everything fresh from two days ago). Kernel and world are in sync. When I run netstat -rn I get a 'no namelist'. I tried to track that down and it looks like this is an issue with the symbol dumptid defined in kern_shutdown. libkvm tries to look up this symbol when it figures out whether it needs to do a second run on a symbol list with all the symbols that have not been found prefixed by vnet_. the kldsym system call fails to lookup this symbol when the kernel is compiled with clang and hence libkvm fails to recognize the VNET kernel. I 'fixed' this by making dumptid non-static, but I wonder how a static symbol can be returned by kldsym in the gcc case. To me this looks not entirely useful. Maybe someone with more knowledge of the kernel symbol stuff has an idea of a real fix. harti _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FopqjV7 (FB_current)
文章代碼(AID): #1FopqjV7 (FB_current)