module/sysprof-module.c:init_module() directly modifies a member of a read-only structure that gcc catches and errors out: trace_proc_file->proc_fops->poll = procfile_poll; this is actually a bug (as are most other instances probably, the change to mark fops pointers read-only is an attempt to catch those early) because this fops structure is actually shared across all proc entries, therefore modifying a member in it affects all... anyway, the attached patch fixes it hopefully properly (it creates a copy of the fops structure and modifies the poll member in there). the ebuild will need a new section to apply the patch: src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-fops-fix.patch }
Created attachment 87643 [details, diff] fix for trying to modify the read-only fops
1.0.3 now in portage