I am building LFS based on LFS 6.5 book,in my ubuntu 11.10. I got test suite failed message when installing pkg-config in chapter 6.17. The error is in file pkg-config-0.23/check/common line number 20, syntax error near unexpected token ). No such problem is reported before. I am really stuck in this section.
This looks like a problem in a test script. You can try one of the following:
BTW: Why are you using LFS 6.5? The current stable version is LFS 7.2.