{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/packages/issues/756","labels_url":"https://api.github.com/repos/openwrt/packages/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/packages/issues/756/comments","events_url":"https://api.github.com/repos/openwrt/packages/issues/756/events","html_url":"https://github.com/openwrt/packages/issues/756","id":53782400,"number":756,"title":"Python: failed to build _ssl + _socket module on x86_64","user":{"login":"enigmagroup","id":5172230,"avatar_url":"https://avatars.githubusercontent.com/u/5172230?v=3","gravatar_id":"","url":"https://api.github.com/users/enigmagroup","html_url":"https://github.com/enigmagroup","followers_url":"https://api.github.com/users/enigmagroup/followers","following_url":"https://api.github.com/users/enigmagroup/following{/other_user}","gists_url":"https://api.github.com/users/enigmagroup/gists{/gist_id}","starred_url":"https://api.github.com/users/enigmagroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enigmagroup/subscriptions","organizations_url":"https://api.github.com/users/enigmagroup/orgs","repos_url":"https://api.github.com/users/enigmagroup/repos","events_url":"https://api.github.com/users/enigmagroup/events{/privacy}","received_events_url":"https://api.github.com/users/enigmagroup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-08T18:17:17Z","updated_at":"2015-01-12T19:41:41Z","closed_at":"2015-01-12T19:41:41Z","body":"Somewere during the build of Python, I encounter the following errors:\r\n\r\n```\r\nbuilding '_ssl' extension\r\nccache_cc -fPIC -fno-strict-aliasing -Os -pipe -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -DNDEBUG -fno-inline -DNDEBUG -Os -pipe -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -I. -IInclude \r\n-I./Include -I/home/x/openwrt-64.mostrecent/staging_dir/target-x86_64_uClibc-0.9.33.2/include -I/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/x/op\r\nenwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include -I/usr/include/x86_64-linux-gnu -I/home/x/openwrt-64.mostrecent/staging_dir/target-x86_64_uClibc-0.9.33.2/usr/include -I/home/x/ope\r\nnwrt-64.mostrecent/staging_dir/host/bin/Include -I/home/x/openwrt-64.mostrecent/staging_dir/host/bin -c /home/x/openwrt-64.mostrecent/build_dir/target-x86_64_uClibc-0.9.33.2/Python-2.7.9/Modules/_ssl.c -o build/temp.lin\r\nux2-x86_64-2.7/home/x/openwrt-64.mostrecent/build_dir/target-x86_64_uClibc-0.9.33.2/Python-2.7.9/Modules/_ssl.o\r\ncc1: note: someone does not honour COPTS correctly, passed 2 times\r\nIn file included from /home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/kernel.h:4:0,\r\n\t\t\t\t from /home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/netlink.h:4,\r\n\t\t\t\t from /home/x/openwrt-64.mostrecent/build_dir/target-x86_64_uClibc-0.9.33.2/Python-2.7.9/Modules/socketmodule.h:45,\r\n\t\t\t\t from /home/x/openwrt-64.mostrecent/build_dir/target-x86_64_uClibc-0.9.33.2/Python-2.7.9/Modules/_ssl.c:47:\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t'\r\n  __kernel_long_t uptime;  /* Seconds since boot */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:9:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t loads[3]; /* 1, 5, and 15 minute load averages */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:10:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t totalram; /* Total usable main memory size */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:11:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t freeram; /* Available memory size */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:12:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t sharedram; /* Amount of shared memory */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:13:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t bufferram; /* Memory used by buffers */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:14:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t totalswap; /* Total swap space size */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:15:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t freeswap; /* swap space still available */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:18:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t totalhigh; /* Total high memory size */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:19:2: error: unknown type name '__kernel_ulong_t'\r\n  __kernel_ulong_t freehigh; /* Available high memory size */\r\n  ^\r\n/home/x/openwrt-64.mostrecent/staging_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/include/linux/sysinfo.h:21:22: error: '__kernel_ulong_t' undeclared here (not in a function)\r\n  char _f[20-2*sizeof(kernel_ulong_t)-sizeof(u32)]; /* Padding: libc5 uses this.. */\r\n\t\t\t\t\t  ^\r\n```\r\n\r\n[...]\r\n\r\n```\r\nPython build finished, but the necessary bits to build these modules were not found:\r\n_tkinter           bsddb185           dl\r\nimageop            linuxaudiodev      nis\r\nossaudiodev        sunaudiodev\r\nTo find the necessary bits, look in setup.py in detect_modules() for the module's name.\r\n\r\n\r\nFailed to build these modules:\r\n_bsddb             _socket            _ssl\r\ndbm\r\n```\r\n\r\nThe packaging of Python itself continues.\r\nI discovered this error on the running target system, when ```import urllib``` threw an error about the missing socket module."},"comment":{"url":"https://api.github.com/repos/openwrt/packages/issues/comments/69631892","html_url":"https://github.com/openwrt/packages/issues/756#issuecomment-69631892","issue_url":"https://api.github.com/repos/openwrt/packages/issues/756","id":69631892,"user":{"login":"enigmagroup","id":5172230,"avatar_url":"https://avatars.githubusercontent.com/u/5172230?v=3","gravatar_id":"","url":"https://api.github.com/users/enigmagroup","html_url":"https://github.com/enigmagroup","followers_url":"https://api.github.com/users/enigmagroup/followers","following_url":"https://api.github.com/users/enigmagroup/following{/other_user}","gists_url":"https://api.github.com/users/enigmagroup/gists{/gist_id}","starred_url":"https://api.github.com/users/enigmagroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enigmagroup/subscriptions","organizations_url":"https://api.github.com/users/enigmagroup/orgs","repos_url":"https://api.github.com/users/enigmagroup/repos","events_url":"https://api.github.com/users/enigmagroup/events{/privacy}","received_events_url":"https://api.github.com/users/enigmagroup/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T19:41:41Z","updated_at":"2015-01-12T19:41:41Z","body":"Ok, no errors on my second workstation (debian jessie). Still the same error after fresh checkout on debian wheezy.\r\n\r\nI have to investigate. Very strange error...\r\nI think I close this issue and reopen it if there would be something to do on your side.\r\n\r\nThanks for your support so far!"}}