Hi Roberto,
I've been successful in compiling uWSGI 0.9.7.2 on OpenWRT 8.09 (it's
2-year old stable version, I'm tied to it and can't update to trunk
now). I've compiled it for mipsel architecture with uClibc 0.9.30.3.
But uWSGI exits soon after start with message 'unable to share mutex'.
As I understand, this is not bug, but expected error, as ordinary
uClibc doesn't support PTHREAD_PROCESS_SHARED flag in
pthread_mutexattr_setpshared function. So I should investigate for
possibility to recompile uClibc with NPTL support.
But I want to know, how strong is requirement of
PTHREAD_PROCESS_SHARED? Can uWSGI be somehow trivially changed to
compile without using of PTHREAD_PROCESS_SHARED or removing of this flag
will introduce massive rewriting of codebase?
BTW, some patching was required to compile uWSGI on uClibc 0.9.30.3.
If you are interested, look at attached patch.
--- uwsgi-0.9.7.2.orig/uwsgi.c 2011-04-06 10:50:01.000000000 +0300
+++ uwsgi-0.9.7.2/uwsgi.c 2011-04-14 12:47:03.000000000 +0300
@@ -2063,6 +2063,7 @@
if (uwsgi.cpu_affinity) {
#ifdef __linux__
+#ifndef __UCLIBC__
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
int ncpu = sysconf(_SC_NPROCESSORS_ONLN);
@@ -2082,6 +2083,7 @@
}
uwsgi_log("\n");
#endif
+#endif
}
if (uwsgi.worker_exec) {
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi