Attaching a patch...
Created attachment 86053 [details, diff] torcs-1.2.4-gcc41.patch
Fix is in portage, thanks for report and patch