Skip to contentSkip to conversation

Error compiling posix skin

Xenomai-help Nicola Pace 2 participants 2 messages May 24, 2006

lore
Share & tools
lore
#0 lore raw

I am trying to compile xenomai.2.2-rc1, but compiling the posix skin I get the error :

/usr/src/xenomai-2.2-rc1/include/posix/time.h:103: parse error before 'clock_id'

Some Suggestions ?

Regards
Nicola

Signature · 14 lines
*Ing. Nicola Pace *
Technical Department
*

TDEMACNO Spa (VICENZA)

* <http://www.tdemacno.it> tel: 0444 343555
fax: 0444 343509
mail: [email protected]
Skype:
*
Riservatezza / Confidentiality*/
In ottemperanza al D.L. n. 196 del 30/6/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio e' vietata. Nel caso in cui aveste ricevuto questa mail/fax per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio.
Accordingly to italian law D.L. 196/2003 concerning privacy, if you are not the adressee (or responsible for delivery of the message to such person) you are hereby notified that any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this message in error, you should destroy it and please notify us by email. /
#1 lore raw
Quoted 7 lines · Nicola Pace

I am trying to compile xenomai.2.2-rc1, but compiling the posix skin I get the error :

/usr/src/xenomai-2.2-rc1/include/posix/time.h:103: parse error before 'clock_id'

Some Suggestions ?

Your libc is likely a bit old and does not define clockid_t, what version of glibc are you using ? Could you try the attached patch ? Maybe other definitions than clockid_t are missing, timer_t for example.

Signature · 1 line
					    Gilles Chanteperdrix.
posix/time.h +5 -0
Index: include/posix/time.h
===================================================================
@@ -48,6 +48,11 @@
 #define CLOCK_MONOTONIC 1
 #endif /* CLOCK_MONOTONIC */
 
+#ifndef __clockid_t_defined
+#define __clockid_t_defined 1
+typedef int clockid_t;
+#endif /* !__clockid_t_defined */
+
 #if defined(__KERNEL__) || defined(__XENO_SIM__)
 
 struct sigevent;