1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139 | user@pc:~$ export LIBEVENT_ROOT=/usr/lib/x86_64-linux-gnu/
user@pc:~$ pip install python-libevent
Downloading/unpacking python-libevent
Downloading python-libevent-0.9.2.tar.gz
Running setup.py (path:/tmp/pip_build_user/python-libevent/setup.py) egg_info for package python-libevent
Installing collected packages: python-libevent
Running setup.py install for python-libevent
building '_libevent' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/_libevent.c -o build/temp.linux-x86_64-2.7/src/_libevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybase.c -o build/temp.linux-x86_64-2.7/src/pybase.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybuffer.c -o build/temp.linux-x86_64-2.7/src/pybuffer.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybufferevent.c -o build/temp.linux-x86_64-2.7/src/pybufferevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyevent.c -o build/temp.linux-x86_64-2.7/src/pyevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyhttp.c -o build/temp.linux-x86_64-2.7/src/pyhttp.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pylistener.c -o build/temp.linux-x86_64-2.7/src/pylistener.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/_libevent.o build/temp.linux-x86_64-2.7/src/pybase.o build/temp.linux-x86_64-2.7/src/pybuffer.o build/temp.linux-x86_64-2.7/src/pybufferevent.o build/temp.linux-x86_64-2.7/src/pyevent.o build/temp.linux-x86_64-2.7/src/pyhttp.o build/temp.linux-x86_64-2.7/src/pylistener.o -lrt -lpthread -o build/lib.linux-x86_64-2.7/_libevent.so /usr/lib/x86_64-linux-gnu/.libs/libevent.a /usr/lib/x86_64-linux-gnu/.libs/libevent_pthreads.a
x86_64-linux-gnu-gcc: error: /usr/lib/x86_64-linux-gnu/.libs/libevent.a: No such file or directory
x86_64-linux-gnu-gcc: error: /usr/lib/x86_64-linux-gnu/.libs/libevent_pthreads.a: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_user/python-libevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-UU88OL-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying libevent.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_libevent' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/_libevent.c -o build/temp.linux-x86_64-2.7/src/_libevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybase.c -o build/temp.linux-x86_64-2.7/src/pybase.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybuffer.c -o build/temp.linux-x86_64-2.7/src/pybuffer.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybufferevent.c -o build/temp.linux-x86_64-2.7/src/pybufferevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyevent.c -o build/temp.linux-x86_64-2.7/src/pyevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyhttp.c -o build/temp.linux-x86_64-2.7/src/pyhttp.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pylistener.c -o build/temp.linux-x86_64-2.7/src/pylistener.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/_libevent.o build/temp.linux-x86_64-2.7/src/pybase.o build/temp.linux-x86_64-2.7/src/pybuffer.o build/temp.linux-x86_64-2.7/src/pybufferevent.o build/temp.linux-x86_64-2.7/src/pyevent.o build/temp.linux-x86_64-2.7/src/pyhttp.o build/temp.linux-x86_64-2.7/src/pylistener.o -lrt -lpthread -o build/lib.linux-x86_64-2.7/_libevent.so /usr/lib/x86_64-linux-gnu/.libs/libevent.a /usr/lib/x86_64-linux-gnu/.libs/libevent_pthreads.a
x86_64-linux-gnu-gcc: error: /usr/lib/x86_64-linux-gnu/.libs/libevent.a: No such file or directory
x86_64-linux-gnu-gcc: error: /usr/lib/x86_64-linux-gnu/.libs/libevent_pthreads.a: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_user/python-libevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-UU88OL-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_user/python-libevent
Storing debug log for failure in /home/user/.pip/pip.log
user@pc:~$ ls /usr/lib/x86_64-linux-gnu/libevent*.a
/usr/lib/x86_64-linux-gnu/libevent.a /usr/lib/x86_64-linux-gnu/libevent_extra.a /usr/lib/x86_64-linux-gnu/libevent_pthreads.a
/usr/lib/x86_64-linux-gnu/libevent_core.a /usr/lib/x86_64-linux-gnu/libevent_openssl.a
user@pc:~$ sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/.libs
user@pc:~$ pip install python-libevent
Downloading/unpacking python-libevent
Downloading python-libevent-0.9.2.tar.gz
Running setup.py (path:/tmp/pip_build_user/python-libevent/setup.py) egg_info for package python-libevent
Installing collected packages: python-libevent
Running setup.py install for python-libevent
building '_libevent' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/_libevent.c -o build/temp.linux-x86_64-2.7/src/_libevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybase.c -o build/temp.linux-x86_64-2.7/src/pybase.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybuffer.c -o build/temp.linux-x86_64-2.7/src/pybuffer.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybufferevent.c -o build/temp.linux-x86_64-2.7/src/pybufferevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyevent.c -o build/temp.linux-x86_64-2.7/src/pyevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyhttp.c -o build/temp.linux-x86_64-2.7/src/pyhttp.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pylistener.c -o build/temp.linux-x86_64-2.7/src/pylistener.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/_libevent.o build/temp.linux-x86_64-2.7/src/pybase.o build/temp.linux-x86_64-2.7/src/pybuffer.o build/temp.linux-x86_64-2.7/src/pybufferevent.o build/temp.linux-x86_64-2.7/src/pyevent.o build/temp.linux-x86_64-2.7/src/pyhttp.o build/temp.linux-x86_64-2.7/src/pylistener.o -lrt -lpthread -o build/lib.linux-x86_64-2.7/_libevent.so /usr/lib/x86_64-linux-gnu/.libs/libevent.a /usr/lib/x86_64-linux-gnu/.libs/libevent_pthreads.a
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/.libs/libevent.a(event.o): relocation R_X86_64_PC32 against symbol `event_global_current_base_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_user/python-libevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-_YVTfQ-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying libevent.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_libevent' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/_libevent.c -o build/temp.linux-x86_64-2.7/src/_libevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybase.c -o build/temp.linux-x86_64-2.7/src/pybase.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybuffer.c -o build/temp.linux-x86_64-2.7/src/pybuffer.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pybufferevent.c -o build/temp.linux-x86_64-2.7/src/pybufferevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyevent.c -o build/temp.linux-x86_64-2.7/src/pyevent.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pyhttp.c -o build/temp.linux-x86_64-2.7/src/pyhttp.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/x86_64-linux-gnu/include -I/usr/include/python2.7 -c src/pylistener.c -o build/temp.linux-x86_64-2.7/src/pylistener.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/_libevent.o build/temp.linux-x86_64-2.7/src/pybase.o build/temp.linux-x86_64-2.7/src/pybuffer.o build/temp.linux-x86_64-2.7/src/pybufferevent.o build/temp.linux-x86_64-2.7/src/pyevent.o build/temp.linux-x86_64-2.7/src/pyhttp.o build/temp.linux-x86_64-2.7/src/pylistener.o -lrt -lpthread -o build/lib.linux-x86_64-2.7/_libevent.so /usr/lib/x86_64-linux-gnu/.libs/libevent.a /usr/lib/x86_64-linux-gnu/.libs/libevent_pthreads.a
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/.libs/libevent.a(event.o): relocation R_X86_64_PC32 against symbol `event_global_current_base_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
|