Skip to contentSkip to conversation

ioemu won't compile under Solaris any more

DISCUSSION John Levon 2 participants 3 messages Dec 15, 2006 – Dec 20, 2006

lore
Share & tools
lore

John Levon

author
#0 lore raw

13022:7fdf6e0f12db Fix deadlock when accessing IO memory. did:

- static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+ static pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;

Which doesn't exist on Solaris; you'll have to create it dynamically. Obviously this is making any testing of the current code impossible, so could this get fixed before release?

thanks
john

PS the huge flood of changes still going into xen-unstable is making watching for stuff like this pretty difficult!

#1 lore raw
Quoted 10 lines

13022:7fdf6e0f12db Fix deadlock when accessing IO memory. did:

(quoted diff) +1 -1
-    static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+    static pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;

Which doesn't exist on Solaris; you'll have to create it dynamically. Obviously this is making any testing of the current code impossible, so could this get fixed before release?

Should be fixed by -unstable cset 13063:4a347a6ed5dc ; please check it works for you.

Just out of curiosity, why are you building on Solaris anyhow?

Quoted 2 lines

PS the huge flood of changes still going into xen-unstable is making watching for stuff like this pretty difficult!

Flood should be more of a trickle now I hope; -rc2 was tagged earlier, and hopefully will get a release out next week.

cheers,

S.

author
#2 lore raw
Quoted 2 lines · Steven Hand

Should be fixed by -unstable cset 13063:4a347a6ed5dc ; please check it works for you.

Nope; it's still missing the pthread.h include.

regards
john