Hi
I think you are making this too difficult for yourself.
What version of Ubuntu did you end up running on your SandyBridge computer? Was it 10.04, hence why you are running the sim package?
Are you trying to build a new sim package with the updated
linuxcncrsh or the rt package?
I assume the former, and this is why neither of the binaries Andy and I compiled ran on your system, because you are running a non rt kernel.
~/linuxcnc-dev$ sudo apt-get build-dep linuxcnc
Presently you are trying to download the linuxcnc package, but you already have downloaded the master source via git.
In the process, you probably never actually downloaded the build-essentials because the apt call failed on linuxcnc.
If you want to be really sure you have everything you need run
sudo apt-get install cvs build-essential fakeroot debhelper libpth-dev libgtk2.0-dev kernel-wedge tcl8.5-dev tk8.5-dev bwidget python-old-doctools python-tk python-dev libglu1-mesa-dev libgtk2.0-dev libgnomeprintui2.2-dev libncurses5-dev libxaw7-dev gettext libreadline5-dev lyx texlive-extra-utils imagemagick texinfo groff qt3-dev-tools
Some are not necessary for just a linuxcnc build but disk space is cheap and you will see one familiar name in there.
Then
sudo apt-get install linux-headers-{uname -r}
Ubuntu installs tcl / tk 8.4 by default but they clash with 8.5
so run
sudo apt-get remove tcl8.4-dev tk8.4-dev
(edit: if you don't have the dev packages already (probably don't), try just tcl8.4 and tk8.4)
You don't need the master, I would suggest you download the 2.5 sim
http://buildbot.linuxcnc.org/dists/lucid/v2.5_branch-sim/source/linuxcnc_2.5.0.100.g7ddb3f0.tar.gz
or rt version depending what you are trying to do and what kernel you have
http://buildbot.linuxcnc.org/dists/lucid/v2.5_branch-rt/source/linuxcnc_2.5.0.100.g7ddb3f0.tar.gz
Unzip into /usr/src and from /usr/src/build/src - run
.
/configure --enable-simulator ( or ./configure --enable-run-in-place)
make
make setuid (if rt build)
Then you can copy Andy's diff file to /usr/src/build/linuxcncrsh.patch
and run from there
patch -p1 < ./linuxcncrsh.patch
to patch the linuxcncrsh.cc file
Then run
make again from ./src and your linuxcncrsh binary in ../bin will have been recompiled with the new code
regards