Search the forum, before asking, search words:
error: 'ToolsList::Node' has not been declared
The first hit (at least when I search) gives you the answer.
In short don't use
--enable-stl for compiling wxWidgets or you have to patch C::B's source-code, but you will most likely be more or less on your own, if you do so.
About the configure parameters:
If I compile a debug-version wx28 myself, I use (more or less) the same configure line, than the debian-builds from apt.wxwidgets.org do:
../configure --prefix=/home/jens/wx-tmp --cache-file=../config_deb.cache --with-flavour= --with-zlib=sys --disable-reserved_virtual --enable-unicode --with-gtk --enable-mediactrl --enable-sound --with-sdl --enable-display --enable-geometry --enable-graphics_ctx --with-libjpeg=sys --with-libpng=sys --with-libtiff=sys --with-opengl --enable-debug
I only added the
--enable-debug (you don't need it normally) and the prefix is changed.
If you use wx2.9 you also need
--enable-aui, but you will run into trouble with C::B's sources, because they are not "wx2-9-ready" now.