Summary: | dev-lang/python-{2.7.8,2.7.9-r1} with sys-libs/musl - In file included from .../work/Python-2.7.9/Modules/python.c:11:0: /usr/include/sys/prctl.h:88:8: error: redefinition of ‘struct prctl_mm_map’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Taylor <james> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702 | ||
Attachments: |
python-2.7.9-r1 build.log
musl sys/prctl.h |
Created attachment 395772 [details]
musl sys/prctl.h
The offending code is from 61_all_process_data.patch in python-gentoo-patches-2.7.9-0. I would suggest just removing the <linux/prctl.h> include since prctl() is not declared there. +*python-2.7.9-r2 (07 Feb 2015) + + 07 Feb 2015; Mike Gilbert <floppym@gentoo.org> +python-2.7.9-r2.ebuild: + Drop 61_all_process_data.patch, fixes musl build, bug 539210. The exact same issue exists in python 3.3.5. If i add this patch to EPATCH_EXCLUDE then python 3.3.5 compiles with musl again. Any chance we can have this fix applied to 3.3.5? |
Created attachment 395770 [details] python-2.7.9-r1 build.log Python-2.7 fails to build under musl-libc 1.1.6 due to a duplicate include in Modules/python.c, as follows: #ifdef __linux__ #include <linux/prctl.h> #include <sys/prctl.h> #ifndef PR_SET_NAME #define PR_SET_NAME 15 #endif #endif This causes a compilation error since musl exports structs in sys/prctl.h which conflict with the ones from the linux headers. Steps to Reproduce: Set up a system using the musl stage3 according to the wiki, then attempt to rebuild python-2.7 Expected result: Python-2.7 would build and be installed with no errors Actual result: Build fails (log attached) Reproducible: Always