If you're trying to apply patches from trunk kill, then you need to kill the previous build completely first. Otherwise you get problems in this particular case with readline, since cmake caches results of system checks, which were not correct for readline.
so my recommendation on building would be this
1. branch from bzr, or download the tarball and apply patches
2. in the directory where you extracted the tarball and applied patches
mkdir bld
cd bld
cmake ..
make package
This will give you the tarball
How to build with Xcode
If you're only interested in building rather than IDE functionality, I'd recommend the above "Unix Makefiles" build
I'm not very familiar with xcodebuild options, so I'll describe how to build Xcode using generic cmake commands .
From the directory where you extracted tarball or bzr branched
The above works for me on Lion with slightly different Xcode version (4.3.2) and (cmake 2.8.8-rc2)
I do not know what exactly went wrong in your configuration, but I noticed that you seemed to build RelWithDebInfo, and the failing output is definitely from Debug, so there is some kind of mix here
As you see from the above, I'm a fan of out-of-source builds (build directly != ource directory) Of course you can also build in-source, but recovering from failing build here is not as simple as rm -rf build_dir
Anyway, I hope this helps. If so, let me know, I'll add a KB article about it. If it does not help, let me know as well, perhaps there is something I'm missing.
I can build without problems from trunk.
If you're trying to apply patches from trunk kill, then you need to kill the previous build completely first. Otherwise you get problems in this particular case with readline, since cmake caches results of system checks, which were not correct for readline.
so my recommendation on building would be this
1. branch from bzr, or download the tarball and apply patches
2. in the directory where you extracted the tarball and applied patches
mkdir bld
cd bld
cmake ..
make package
This will give you the tarball
How to build with Xcode
If you're only interested in building rather than IDE functionality, I'd recommend the above "Unix Makefiles" build
I'm not very familiar with xcodebuild options, so I'll describe how to build Xcode using generic cmake commands .
From the directory where you extracted tarball or bzr branched
mkdir bld_xcode
cd bld_xcode
cmake .. -G Xcode
cmake . --build --config RelWithDebInfo --target package
The above works for me on Lion with slightly different Xcode version (4.3.2) and (cmake 2.8.8-rc2)
I do not know what exactly went wrong in your configuration, but I noticed that you seemed to build RelWithDebInfo, and the failing output is definitely from Debug, so there is some kind of mix here
As you see from the above, I'm a fan of out-of-source builds (build directly != ource directory) Of course you can also build in-source, but recovering from failing build here is not as simple as rm -rf build_dir
Anyway, I hope this helps. If so, let me know, I'll add a KB article about it. If it does not help, let me know as well, perhaps there is something I'm missing.