Created attachment 454096 [details, diff] Patch fixing the problem When using "release"-version CFLAGS containing "-D NDEBUG", sys-apps/sandbox checks for NDEBUG but handles it incorrectly. There are 2 problems: 1. It replaces a function call by a no-op macro, but the macro has a different number of arguments than the function call. 2. It also uses the macro to expand the function name when compiling the function definition, resulting in a missing function name. The patch fixes those problems.
hmm, guess i forgot to close this. it was (partially) merged shortly after this was filed: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=87d6537245b6f7cbf028e4c0e187cda7484729f0