Giammarco Zacheo wrote: > Hi, > > while cross-compiling rtnet, i got the following error: > > [EMAIL PROTECTED]:~/xenomai-ppc/rtnet/trunk/rtnet/examples/xenomai/posix> > make > powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../config -s > -I/opt/eldk/ppc_6xx/usr/xenomai/include > -I/opt/eldk/ppc_6xx/usr/xenomai/include/posix -D_GNU_SOURCE -D_REENTRANT > -D__XENO__ -Wall -pipe -O2 -fstrict-aliasing -I../../../stack/include -s -MT > rtt-sender.o -MD -MP -MF .deps/rtt-sender.Tpo -c -o rtt-sender.o > rtt-sender.c > rtt-sender.c: In function 'lookup_stats': > rtt-sender.c:95: error: 'LONG_MAX' undeclared (first use in this function) > rtt-sender.c:95: error: (Each undeclared identifier is reported only once > rtt-sender.c:95: error: for each function it appears in.) > rtt-sender.c:96: error: 'LONG_MIN' undeclared (first use in this function) > rtt-sender.c: In function 'main': > rtt-sender.c:288: error: 'PTHREAD_STACK_MIN' undeclared (first use in this > function) > make: *** [rtt-sender.o] Error 1 > > everything but rtt-sender and rtt-responder is built without errors. > Actually, PTHREAD_STACK_MIN is invisible to user space in xenomai's > pthread.h...don't know about LONG_MAX and LONG_MIN, should be limits.h > included somewhere? > > I am using linux-2.6.25.6 from denx (build machine x86_64, host powerpc), > xenomai 2.4.5 and rtnet-svn r1188.
Including limit.h should fix this. Maybe some more examples need healing, too. Please check and ideally provide a patch. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users