Hello e people,

It is actually not possible to build eina with thread support on some
old systems (like debian4).

Symptom :
When compiling eina_unicode, the following message appears :
http://pastebin.com/Y9iCDqud

The problem is that when building eina_unicode.c we include Eina.h, then
include eina_lock.h, then include eina_inline_lock_posix.x, which
includes pthread.h, with _SYS_TYPES_H already defined, but wasnt include
with __USE_UNIX98 defined, so pthread_rwlock_t isnt known.

Removing the include on Eina.h from eina_unicode.c resolves everything.
I am able to build with thread support on debian4, and can still build
on up2date archlinux.

I have been told that it is not normal to have an include on Eina.h from
eina_unicode.c as each .c must only include stictly what it needs. So i
dont think i broke anything doing that, but please think a little about
it, as eina is “something big” to me.
Index: src/lib/eina_unicode.c
===================================================================
--- src/lib/eina_unicode.c	(révision 67371)
+++ src/lib/eina_unicode.c	(copie de travail)
@@ -18,7 +18,6 @@
 
  */
 
-#include <Eina.h>
 #include "eina_unicode.h"
 
 /* FIXME: check if sizeof(wchar_t) == sizeof(Eina_Unicode) if so,

<<attachment: guillaume_friloux.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to