This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ssl build fails due to undefined NETLINK_ stuff
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: arekm, loewis, tim.peters
Priority: normal Keywords: patch

Created on 2006-03-31 13:05 by arekm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-netlink.patch arekm, 2006-03-31 13:05 Fix ssl build by fixing netlink defines
Messages (3)
msg49882 - (view) Author: Arkadiusz Miśkiewicz (arekm) Date: 2006-03-31 13:05
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O
3 -Wall -Wstrict-prototypes -I. -I/home/users/arekm/
test/python/./Include -I/home/users/arekm/test/python-
test/include -I/usr/include/ncurses -I./Include -I. -I/
usr/local/include -I/home/users/arekm/test/python/
Include -I/home/users/arekm/test/python -c /home/users/
arekm/test/python/Modules/socketmodule.c -o build/temp.
linux-i686-2.5/socketmodule.o
/home/users/arekm/test/python/Modules/socketmodule.c: 
In function ‘init_socket’:
/home/users/arekm/test/python/Modules/socketmodule.c:
4050: error: ‘NETLINK_ARPD’ undeclared (first use in 
this function)
/home/users/arekm/test/python/Modules/socketmodule.c:
4050: error: (Each undeclared identifier is reported 
only once
/home/users/arekm/test/python/Modules/socketmodule.c:
4050: error: for each function it appears in.)
/home/users/arekm/test/python/Modules/socketmodule.c:
4051: error: ‘NETLINK_ROUTE6’ undeclared (first use in 
this function)
/home/users/arekm/test/python/Modules/socketmodule.c:
4054: error: ‘NETLINK_TAPBASE’ undeclared (first use 
in this function)


I'm using sanitized version of linux headers - linux-
libc-headers.

Attached patch fixes these by ifdefing them + adds 
NETLINK_W1 which replaced NETLINK_SKIP in latest linux 
kernels.
msg49883 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-03-31 18:44
Logged In: YES 
user_id=31435

Assigned to Martin.
msg49884 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-04-06 22:30
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as 43715
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43118
2006-03-31 13:05:51arekmcreate