Thunderbird ebuilds since at least 2.0.0.19 do a bad check on the gcc version in order to disable the stack protection. Where it says # -fstack-protector breaks us if gcc-version ge 4 1; then It should be: # -fstack-protector breaks us if gcc-version ge "4.1"; then Also this check shpuld be enabled in the thunderbird-1.5.0.14 ebuild
I made a mistake, what should be replaced is: # -fstack-protector breaks us if gcc-version ge 4 1; then to: # -fstack-protector breaks us if [[ $(gcc-version | cut -d. -f1) -ge 4 && $(gcc-version | cut -d. -f2) -ge 1 ]]; then The code specified before won't work.
Created attachment 185688 [details, diff] mozilla-thunderbird-2.0.0.21.ebuild.diff Have a look at toolchain-funcs.eclass. There are already functions for that purpose which should make your cut statements unnecessary. See attached patch.
All should be fixed now.