it did compile for me (with 1 warning)

gcc -c exploit.c -o exploit

./exploit

got me an exception error (sigsev)

so the compilation did work, the execution didn't..

well too bad..

tested on slackware 9.0 rc3 (build 14-03-2003)