[Xenomai-core] [SOLO] [PATCH] Missing symbols in pSOS emulation
Hello list, This patch fixes build errors of Xenomai/SOLO pSOS emulation due to missing symbols. Regards, -jserv diff --git a/psos/pt.c b/psos/pt.c index 4e42a76..69d41dd 100644 --- a/psos/pt.c +++ b/psos/pt.c @@ -44,6 +44,8 @@ pt-bitmap[((n) / (sizeof(u_long) * 8))] #define pt_bitmap_tstbit(pt,n) \ (pt_bitmap_pos(pt,n) pt_block_pos(n)) +struct hash_table psos_pt_table; + static struct psos_pt *get_pt_from_id(u_long ptid, int *err_r) { struct psos_pt *pt = (struct psos_pt *)ptid; diff --git a/psos/rn.c b/psos/rn.c index efe9e27..62529c2 100644 --- a/psos/rn.c +++ b/psos/rn.c @@ -29,6 +29,8 @@ #define rn_magic 0x8181efef +struct hash_table psos_rn_table; + static struct psos_rn *get_rn_from_id(u_long rnid, int *err_r) { struct psos_rn *rn = (struct psos_rn *)rn; ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core
Re: [Xenomai-core] [SOLO] [PATCH] Obtain proper prefix for testsuite build
On Thu, Mar 27, 2008 at 01:03:37AM +0100, Philippe Gerum wrote: This won't work if you build out of the source tree like autoconf/automake recommend, since it won't find the instantiated Makefile in the upper directory. We could use an autoconf template to patch the prefix into testsuite/Makefile.in, but the testsuite/ directory is meant to be movable and compilable anywhere the user sees fit. This is basically why the Makefile has not been autoconfiscated in the first place. hi Philippe, Indeed. It was just my dirty hack. Thanks for pointing out the details. I guess we will have to leave with the set your Xenomai install directory for scripts and binaries in your PATH variable rule. I have removed the absolute SOLO prefix from the Makefile though, it was a left over from my development environment. Good instructions. :-) Regards, -jserv ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core
[Xenomai-core] [SOLO] Build fail due to lack file(s)
Hello list, After git pull, I found that pSOS(*) emulation interface on top of the Xenomai/SOLO framework was checked in. However, it fails to build due to lack file(s) in repository. Here are the compilation results: % make[1]: Entering directory `/tmp/xenomai-solo/psos' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -g -O0 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -fstrict-aliasing -Wno-strict-aliasing -D__SOLO_DEBUG__ -D__XENO__ -D__SOLO__ -Wstrict-prototypes -include xeno_config.h -I../include-MT libpsos_la-init.lo -MD -MP -MF .deps/libpsos_la-init.Tpo -c -o libpsos_la-init.lo `test -f 'init.c' || echo './'`init.c gcc -DHAVE_CONFIG_H -I. -I../include -g -O0 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -fstrict-aliasing -Wno-strict-aliasing -D__SOLO_DEBUG__ -D__XENO__ -D__SOLO__ -Wstrict-prototypes -include xeno_config.h -I../include -MT libpsos_la-init.lo -MD -MP -MF .deps/libpsos_la-init.Tpo -c init.c -o libpsos_la-init.o init.c:30:19: error: queue.h: No such file or directory init.c: In function 'PSOS_INIT': init.c:46: error: 'psos_queue_table' undeclared (first use in this function) init.c:46: error: (Each undeclared identifier is reported only once init.c:46: error: for each function it appears in.) make[1]: *** [libpsos_la-init.lo] Error 1 % Thanks, -jserv ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core
[Xenomai-core] [SOLO] [PATCH] Obtain proper prefix for testsuite build
Hello list, Currently, Xenomai/SOLO comes with testsuite for VxWorks emulation. The path to Xenomai/SOLO installation is fixed. The patch attempts to obtain the proper prefix during build process. Regards, -jserv diff --git a/vxworks/testsuite/Makefile b/vxworks/testsuite/Makefile index 62430ff..13ca9a0 100644 --- a/vxworks/testsuite/Makefile +++ b/vxworks/testsuite/Makefile @@ -1,4 +1,4 @@ -SOLO := /usr/local/solo +SOLO := $(shell sed -n '/^prefix/'p ../Makefile | cut -c 9-) XENO_CONFIG=$(SOLO)/bin/xeno-config prefix := $(shell $(XENO_CONFIG) --prefix) ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core
[Xenomai-core] PATCH: GCC4 build on Xenomai Simulator
Hello list, Recently, I am building Xenomai Simulator on Ubuntu feisty, and encounter the following compilation errors: % make[1]: Entering directory `/home/jserv/realtime/xenomai/build-sim/vm' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../sim/vm -I../include -fno-exceptions -D__XENO_SIM__ -I../../sim/vm/.. -g -MT libmvm_la-thread.lo -MD -MP -MF .deps/libmvm_la-thread.Tpo -c -o libmvm_la-thread.lo `test -f 'thread.cc' || echo '../../sim/vm/'`thread.cc; \ then mv -f .deps/libmvm_la-thread.Tpo .deps/libmvm_la-thread.Plo; else rm -f .deps/libmvm_la-thread.Tpo; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I../../sim/vm -I../include -fno-exceptions -D__XENO_SIM__ -I../../sim/vm/.. -g -MT libmvm_la-thread.lo -MD -MP -MF .deps/libmvm_la-thread.Tpo -c ../../sim/vm/thread.cc -fPIC -DPIC -o .libs/libmvm_la-thread.o ../../sim/vm/thread.cc: In member function 'virtual void XenoThread::resume()': ../../sim/vm/thread.cc:66: error: 'int MvmThread::globalTrace' is private ../../sim/vm/thread.cc:1184: error: within this context ../../sim/vm/thread.cc:66: error: 'int MvmThread::globalTrace' is private ... % $ gcc --version gcc (GCC) 4.1.2 20070106 (prerelease) (Ubuntu 4.1.1-21ubuntu7) The patch to fix the above issue is attached. Please take a look at that. Thanks! Best Regards, Jim Huang (jserv) http://jserv.sayya.org/ Index: sim/vm/thread.cc === --- sim/vm/thread.cc(revision 2087) +++ sim/vm/thread.cc(working copy) @@ -794,10 +794,12 @@ void MvmThread::bumpInto () do_restore(context); } +#ifdef CONFIG_XENO_MVM_DEBUG void MvmThread::setGlobalTrace (int traceLevel) { globalTrace = traceLevel; } +#endif // CONFIG_XENO_MVM_DEBUG extern int _etext, _edata, _end; Index: sim/vm/thread.h === --- sim/vm/thread.h (revision 2087) +++ sim/vm/thread.h (working copy) @@ -120,7 +120,11 @@ private: virtual void body(); +#ifdef CONFIG_XENO_MVM_DEBUG +public: static int globalTrace; +static void setGlobalTrace(int traceLevel); +#endif // CONFIG_XENO_MVM_DEBUG protected: @@ -138,8 +142,6 @@ public : static MvmScheduler runChain; -static void setGlobalTrace(int traceLevel); - MvmThread(const char *name, int pflags =0, unsigned stackSize =32768); ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core