Created attachment 267335 [details, diff] prosody-0.7.0.ebuild.diff Compiling prosody-0.7.0 on a hardened x86 system fails with: hashes.o: In function `toHex': hashes.c:(.text+0xa2): undefined reference to `__stack_chk_fail_local' hashes.o: In function `Lsha1': hashes.c:(.text+0x183): undefined reference to `__stack_chk_fail_local' hashes.o: In function `Lsha256': hashes.c:(.text+0x267): undefined reference to `__stack_chk_fail_local' hashes.o: In function `Lmd5': hashes.c:(.text+0x34b): undefined reference to `__stack_chk_fail_local' hashes.o: In function `luaopen_util_hashes': hashes.c:(.text+0x3f6): undefined reference to `__stack_chk_fail_local' i686-pc-linux-gnu-ld: hashes.so: hidden symbol `__stack_chk_fail_local' isn't defined i686-pc-linux-gnu-ld: final link failed: Nonrepresentable section on output This failure is similar to bug #325849 and the problem details itself are described in bug #326285. From the latter I get, that not "ld" but "gcc" should be used for linking. This is also the default in prosody. Unfortunately, this is overwritten in the ebuild by explicitly specifiying a linker with tc-getLD, which (as the name states) sets ld as linker. This should be changed to tc-getCC. Patch attached.
Looks good. Note that you should also document (in the ebuild) why ./configure is used instead of econf.
I added a comment in the diff at bug #336985 ...
This has been fixed in prosody-0.8.0.