That's correct. The /usr/include/time.h holds this code, hence the clockid_t should be defined.
Can the files in the /usr/inlcude directory be overshadowed by some other include files? The Makefile has grown quite complex: KSRC := /lib/modules/$(shell uname -r)/source XENO_DESTDIR:=/ XENO_CONFIG:=$(XENO_DESTDIR)/usr/xenomai/bin/xeno-config XENO_POSIX_CFLAGS:=$(shell DESTDIR=$(XENO_DESTDIR) $(XENO_CONFIG) --skin=posix --cflags) XENO_POSIX_LIBS:=$(shell DESTDIR=$(XENO_DESTDIR) $(XENO_CONFIG) --skin=posix --ldflags) # define any compile-time flags CFLAGS = -Wall -g $(XENO_POSIX_CFLAGS) INCLUDES = -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/posix -I$(KSRC)/arch/arm/mach-omap2 # define library paths in addition to /usr/lib # if I wanted to include libraries not in /usr/lib I'd specify # their path using -Lpath, something like: #LFLAGS = -L/home/newhall/lib -L../lib # define any libraries to link into executable: # if I want to link in libraries (libx.so or libx.a) I use the -llibname # option, something like (this will link in libmylib.so and libm.so: LIBS = -l$(XENO_POSIX_LIBS) -----Original Message----- From: Gilles Chanteperdrix [mailto:[email protected]] Sent: 3. november 2014 17:25 To: Terje Frøysa Cc: [email protected] Subject: Re: [Xenomai] Xenoma 2.6.4 missing posix/xeno_config.h ? On Mon, Nov 03, 2014 at 04:21:53PM +0000, Terje Frøysa wrote: > Thanks again for your quick replies :-) > > Yes, I have the files in question in the /usr/include directory. > > debian@beaglebone:/usr/include$ ls -l st* > : > -rw-r--r-- 1 root root 8536 Oct 17 02:40 stdint.h > -rw-r--r-- 1 root root 31525 Oct 17 02:41 stdio.h > -rw-r--r-- 1 root root 2873 Oct 17 02:40 stdio_ext.h > -rw-r--r-- 1 root root 34254 Oct 17 02:40 stdlib.h > -rw-r--r-- 1 root root 22612 Oct 17 02:41 string.h > : > > The time.h refers the clockid_t, but no file in the /usr/include (and > subdirectories) holds a definition. > > The types.h file defines the __clockid_t, but I can't find the 'clockid_t' > defined anywhere: > > /* Clock ID used in clock and timer functions. */ __STD_TYPE > __CLOCKID_T_TYPE __clockid_t; This is normally defined in /usr/include/time.h #if !defined __clockid_t_defined && \ ((defined _TIME_H && defined __USE_POSIX199309) || defined __need_clockid_t) # define __clockid_t_defined 1 # include <bits/types.h> /* Clock ID used in clock and timer functions. */ typedef __clockid_t clockid_t; #endif /* clockid_t not defined and <time.h> or need clockid_t. */ #undef __clockid_time_t And xenomai's time.h does #include_next <time.h> which should include that file and get the definition. -- Gilles. _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
