| Summary: | dev-lang/python-3.1.3-r1: _socket module build fails on ARM | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Yixun Lan <dlan> |
| Component: | [OLD] Core system | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | arm |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
full build log
config log build log while emerge successfully |
||
|
Description
Yixun Lan
2011-04-19 04:42:50 UTC
Created attachment 270467 [details]
full build log
post the config.log from the build dir the relevant error from the build log: building '_socket' extension armv7a-hardfloat-linux-gnueabi-gcc -pthread -fPIC -O2 -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -fomit-frame-pointer -ftree-vectorize -I/usr/include/ -I/include/ -fwrapv -DNDEBUG -I. -I./Include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.3-r1/work/Python-3.1.3 -c /var/tmp/portage/dev-lang/python-3.1.3-r1/work/Python-3.1.3/Modules/socketmodule.c -o build/temp.linux-armv7l-3.1/var/tmp/portage/dev-lang/python-3.1.3-r1/work/Python-3.1.3/Modules/socketmodule.o In file included from /var/tmp/portage/dev-lang/python-3.1.3-r1/work/Python-3.1.3/Modules/socketmodule.c:304:0: /var/tmp/portage/dev-lang/python-3.1.3-r1/work/Python-3.1.3/Modules/addrinfo.h:127:8: error: redefinition of 'struct addrinfo' /usr/include/netdb.h:569:8: note: originally defined here Created attachment 270489 [details]
config log
Hi, Vapier
I merge more a few packages, then rebuild python-3.1.3-r1, and it passed successfully
attached file is config.log when build successfully
#define HAVE_ADDRINFO 1
previous error seems that file from detect HACE_ADDRINFO not been defined, then redefine the struct addrinfo
/var/tmp/portage/dev-lang/python-3.1.3-r1/work/Python-3.1.3/Modules/addrinfo.h:127:8:
Created attachment 270491 [details]
build log while emerge successfully
sed -e s':^#ifndef HAVE_ADDRINFO:#ifndef HAVE_ADDRINFO\n#define HAVE_ADDRINFO 1:' \ -i Modules/addrinfo.h || die should be fixed in python-2.7, 3.2, and 3.3 |