Hi. I'm attempting the same but for VxWorks 6.3 (so far no-one has got back to me). My problems are somewhat different but whilst playing around and attempting I did resolve the the fstat.
In the 3.7.13 (line 25484) fstat is defined as #ifdef __DJGPP__ { "fstat", 0, 0 }, #define osFstat(a,b,c) 0 However. osFstat is used with 2 parmamters in the code. So it needs to change to #ifdef __DJGPP__ { "fstat", 0, 0 }, #define osFstat(a,b) 0 #else If you are using __DJGPP__ this change doesn't make any difference, since it just returns zero wherever it is called. It is here in case the fstat command isn't supported. In 6.x it is supported so this oversight wasn't seen. ________________________________ From: 张鹤 <zhanghem...@gmail.com> To: "sqlite-users@sqlite.org" <sqlite-users@sqlite.org> Sent: Thursday, August 23, 2012 3:26 AM Subject: [sqlite] How to use tornado2.2 build SQLite on VxWorks5.5 *I use tornado2.2 to build SQLite3.7.13 on **VxWorks5.5**.* There is a message as follows: I ported sqlite to Vxworks. It was a straight forward port. File locking is not \ possible in VxWorks. So I do not use it. So I define the macro __DJGPP__ which takes \ care of fcntl call used for file locking. Did not include the files shell.c and tclsqlite.c in my project. I used the following macros -DOS_UNIX -DSQLITE_OMIT_AUTHORIZATION \ -DSQLITE_OMIT_VACUUM -D__DJGPP__ -DSQLITE_TRACE_DEBUG *This is my setting:-g -mpentium -ansi -fno-builtin -fno-defer-pop -I. -IC:/Tornado2.2/target/h/ -DCPU=SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -DOS_UNIX -DSQLITE_OMIT_AUTHORIZATION \ -DSQLITE_OMIT_VACUUM -D__DJGPP__ -DSQLITE_TRACE_DEBUG* Will have to modify TIMER_START and TIMER_END macros in os.c for VxWorks. *How to modify TIMER_START and TIMER_END macros, please tell me the details,thank you!* *In my project i did nothing.* Replaced malloc and free with memory pools. realloc requires special attention when \ repcaling with memory pools. Will need to spend some time in tuning memory pool \ sizes. Modified util.c for memory pools. *How to modified util.c, change whele in file util.c.* *In my project i did nothing* Most of the time use sqlite_exec and sqlite_query_table API calls. Use temporary \ tables too. *What's the meaning of use temporary tables.* *In my project i did nothing* *There are some errors:* ccsimpc -g -mpentium -ansi -fno-builtin -fno-defer-pop -I. -IC:\Tornado2.2\target\h\ -DCPU =SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -DOS_UNIX -DSQLITE_OMIT_AUTHORIZATION \ -DSQLITE_OMIT_VACUUM -D__DJGPP__ -DSQLITE_TRACE_DEBUG -c ..\sqlite3.c ..\sqlite3.c:25040: sys\time.h: No such file or directory ..\sqlite3.c:26331: macro `osFstat' used with only 2 args ..\sqlite3.c:28599: macro `osFstat' used with only 2 args ..\sqlite3.c:28638: macro `osFstat' used with only 2 args ..\sqlite3.c:29035: macro `osFstat' used with only 2 args ..\sqlite3.c:29190: macro `osFstat' used with only 2 args make: *** [sqlite3.o] Error 0x1 Change /*#include <time.h>*/ to #include <time.h> #include <sys/time.h> /*#include <sys/time.h>*/ the errors were: ccsimpc -g -mpentium -ansi -fno-builtin -fno-defer-pop -I. -IC:\Tornado2.2\target\h\ -DCPU =SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -DOS_UNIX -DSQLITE_OMIT_AUTHORIZATION \ -DSQLITE_OMIT_VACUUM -D__DJGPP__ -DSQLITE_TRACE_DEBUG -c ..\sqlite3.c ..\sqlite3.c:26331: macro `osFstat' used with only 2 args ..\sqlite3.c:28599: macro `osFstat' used with only 2 args ..\sqlite3.c:28638: macro `osFstat' used with only 2 args ..\sqlite3.c:29035: macro `osFstat' used with only 2 args ..\sqlite3.c:29190: macro `osFstat' used with only 2 args make: *** [sqlite3.o] Error 0x1 Could you tell me how to solve this problems ,thank you very much! -- Best Regards He Zhang ------------------------------------------------------------------------------ _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users