Open YoYoAdorkable opened 6 years ago
which distribution? which compiler?
Ran into the same problem, went crazy trying to figure it out, this link ended up having the answer: I had to remove the files /usr/include/linux/uuid.h and /usr/include/uuid.h from my system (moved them from their location). I'm not sure which file was the issue, but this allowed the compile/install to proceed successfully.
Installing collected packages: uwsgi Running setup.py install for uwsgi ... error Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-TUNDmR/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-pOIEje-record/install-record.txt --single-version-externally-managed --compile: /usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'descriptions' warnings.warn(msg) running install using profile: buildconf/default.ini detected include path: ['/usr/include', '/usr/local/include'] Patching "bin_name" to properly install_scripts dir detected CPU cores: 8 configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-format -Wno-format-security -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_UUID -DUWSGI_VERSION="\"2.0.17.1\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="17" -DUWSGI_VERSION_REVISION="1" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);" uWSGI compiling server core [thread 1][gcc -pthread] core/utils.o [thread 2][gcc -pthread] core/protocol.o [thread 3][gcc -pthread] core/socket.o [thread 4][gcc -pthread] core/logging.o [thread 5][gcc -pthread] core/master.o [thread 6][gcc -pthread] core/master_utils.o [thread 7][gcc -pthread] core/emperor.o [thread 0][gcc -pthread] core/notify.o core/utils.c: 在函数‘uwsgi_uuid’中: core/utils.c:4037:9: 错误:‘uuid_value’的存储大小未知 uuid_t uuid_value; ^ core/utils.c:4038:2: 警告:隐式声明函数‘uuid_generate’ [-Wimplicit-function-declaration] uuid_generate(uuid_value); ^ core/utils.c:4039:2: 警告:隐式声明函数‘uuid_unparse’ [-Wimplicit-function-declaration] uuid_unparse(uuid_value, buf); ^ core/utils.c:4037:9: 警告:未使用的变量‘uuid_value’ [-Wunused-variable] uuid_t uuid_value; ^ [thread 0][gcc -pthread] core/mule.o uwsgi.log