Hi,
I don't use Ubuntu myself, but from what I got told in the last days I got the impression that what happens is just an "enforcement" of what should have been done ever since. -> put libraries after objects after sources when using gcc. I tried the attached patch in a ubuntu 11.10 amd64 VM and got executables. No more testing was done though.
Kind regards, -Alexander Huemer