Ubuntu Natty Xen 4.1 building

Install dependencies

apt-get install mercurial
apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex
apt-get install ocaml-findlib
hg clone http://xenbits.xen.org/hg/xen-4.1-testing.hg/
cd xen-4.1-testing.hg/

Start building:

make \-j 8 world

Lets build xenstat too for the new old monitoring

cd tools
cd xenstat
make all-bindings

This fail with the following errors...:
Ignore the backslashes.

root@localhost:/xen/xen-4.1-testing.hg/tools/xenstat/libxenstat# gcc -O2 \-fomit-frame-pointer \-m32 \-march=i686 \-fno-strict-aliasing \-std=gnu99 \-Wall \-Wstrict-prototypes \-Wno-unused-value \-Wdeclaration-after-statement  \-D\_-_-XEN_TOOLS-_-_ \-MMD \-MF ._xenstat.so.d \-D_LARGEFILE_SOURCE \-D_FILE_OFFSET_BITS=64 \-D_LARGEFILE_SOURCE \-D_LARGEFILE64_SOURCE \-mno-tls-direct-seg-refs \-Isrc \-I/usr/include/python2.7  \-I../../../tools/libxc \-I../../../tools/xenstore \-I../../../tools/include    \-Wl,-\-no-as-needed \-Lsrc \-L../../../tools/xenstore/ \-L../../../tools/libxc/ \-I/usr/include/python2.3 \-lpython2.3 \-shared \-lxenstat \-o bindings/swig/python/_xenstat.so bindings/swig/python/_xenstat.c
/usr/bin/ld: cannot find \-lpython2.3
collect2: ld returned 1 exit status

Manually link to Python2.7 - not good since replacing one hardcoded thing with the other.

gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF ._xenstat.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Isrc -I/usr/include/python2.7  -I../../../tools/libxc -I../../../tools/xenstore -I../../../tools/include    -Wl,--no-as-needed -Lsrc -L../../../tools/xenstore/ -L../../../tools/libxc/ -I/usr/include/python2.7 -lpython2.7 -shared -lxenstat -o bindings/swig/python/_xenstat.so bindings/swig/python/_xenstat.c