*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

Reply via email to