[sqlite] problem porting sqlite amalgamation 3.6.23.1 to vxworks 6.5 DKM

2010-04-09 Thread zhenhuan du
I created a downloadable kernel module project .
Sqlite3.c and sqlite3.h were imported into project.
But when I compiled the sqlite3.c  I got the following error output.
  I  wonder whether  this package can be directly put  into use without 
any problem with vxworks 6.5.
Hope someone can help me .Thanks in advance!


-


Build Started in Project 'sqlite3':   2010-04-09 15:31:58
Generation of makefiles started.
Generation of makefiles finished (Elapsed Time: 00:00).
Platform: Wind River VxWorks 6.5
Command: make --no-print-directory BUILD_SPEC=PENTIUMgnu DEBUG_MODE=1 
TRACE=1 PENTIUMgnu_DEBUG/sqlite3.o
Working Directory: 
F:/software_project/mpu_firmware/gmc96_mpu_firmware_vxworks_image_project_v1.3/gmc96_mpu_firmware_vxworks_image_project_v1.3/sqlite3
echo "building PENTIUMgnu_DEBUG/sqlite3.o"; ccpentium -g -mtune=pentium 
-march=pentium -ansi  -Wall  -MD -MP  
-ID:/WindRiver/vxworks-6.5/target/h 
-ID:/WindRiver/vxworks-6.5/target/h/wrn/coreip   -DCPU
=PENTIUM -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL-o 
"PENTIUMgnu_DEBUG/sqlite3.o" -c "sqlite3.c"
building PENTIUMgnu_DEBUG/sqlite3.o
In file included from D:/WindRiver/vxworks-6.5/target/h/vxWorksCommon.h:296,
  from D:/WindRiver/vxworks-6.5/target/h/vxWorks.h:84,
  from 
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:21,
  from D:/WindRiver/vxworks-6.5/target/h/stdio.h:62,
  from sqlite3.c:6522:
D:/WindRiver/vxworks-6.5/target/h/version.h:82: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:83: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:84: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:85: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:87: error: syntax error 
before "const"
D:/WindRiver/vxworks-6.5/target/h/version.h:88: error: syntax error 
before "const"
D:/WindRiver/vxworks-6.5/target/h/version.h:89: error: syntax error 
before "const"
In file included from D:/WindRiver/vxworks-6.5/target/h/stdio.h:62,
  from sqlite3.c:6522:
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:39: error: syntax 
error before "UINT32"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:39: warning: no 
semicolon at end of struct or union
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:40: warning: type 
defaults to `int' in declaration of `attributes'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:40: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:41: error: syntax 
error before "type"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:41: warning: type 
defaults to `int' in declaration of `type'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:41: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:42: error: syntax 
error before "contextType"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:42: warning: type 
defaults to `int' in declaration of `contextType'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:42: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:43: warning: type 
defaults to `int' in declaration of `HANDLE'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:43: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:45: error: syntax 
error before '*' token
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:45: warning: type 
defaults to `int' in declaration of `HANDLE_ID'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:45: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:49: error: syntax 
error before "handleContextGet"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:49: error: syntax 
error before "handleId"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:50: warning: type 
defaults to `int' in declaration of `handleContextGet'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:50: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:51: error: syntax 
error before "handleId"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:53: error: syntax 
error before "handleContextSet"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:53: error: syntax 
error before "handleId"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:54: warning: type 
defaults to `int' in declaration of `handleContextSet'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:54: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:55: error: syntax 
error before "handleInit"
D:/WindRiver/vxworks

[sqlite] problem porting sqlite amalgamation 3.6.23.1 to vxworks 6.5 pentium3 DKM

2010-04-09 Thread zhenhuan du
I created a vxworks 6.5 Pentium3 downloadable kernel module project .
Sqlite3.c and sqlite3.h were imported into project.
But when I compiled the sqlite3.c  I got the following error output.
  I  wonder whether  this package can be directly put  into use without 
any problem with vxworks 6.5.
Hope someone can help me .Thanks in advance!


-
 



Build Started in Project 'sqlite3':   2010-04-09 15:31:58
Generation of makefiles started.
Generation of makefiles finished (Elapsed Time: 00:00).
Platform: Wind River VxWorks 6.5
Command: make --no-print-directory BUILD_SPEC=PENTIUMgnu DEBUG_MODE=1 
TRACE=1 PENTIUMgnu_DEBUG/sqlite3.o
Working Directory: 
F:/software_project/mpu_firmware/gmc96_mpu_firmware_vxworks_image_project_v1.3/gmc96_mpu_firmware_vxworks_image_project_v1.3/sqlite3
 

echo "building PENTIUMgnu_DEBUG/sqlite3.o"; ccpentium -g -mtune=pentium 
-march=pentium -ansi  -Wall  -MD -MP  
-ID:/WindRiver/vxworks-6.5/target/h 
-ID:/WindRiver/vxworks-6.5/target/h/wrn/coreip   -DCPU
=PENTIUM -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL-o 
"PENTIUMgnu_DEBUG/sqlite3.o" -c "sqlite3.c"
building PENTIUMgnu_DEBUG/sqlite3.o
In file included from 
D:/WindRiver/vxworks-6.5/target/h/vxWorksCommon.h:296,
  from D:/WindRiver/vxworks-6.5/target/h/vxWorks.h:84,
  from 
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:21,
  from D:/WindRiver/vxworks-6.5/target/h/stdio.h:62,
  from sqlite3.c:6522:
D:/WindRiver/vxworks-6.5/target/h/version.h:82: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:83: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:84: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:85: error: syntax error 
before "char"
D:/WindRiver/vxworks-6.5/target/h/version.h:87: error: syntax error 
before "const"
D:/WindRiver/vxworks-6.5/target/h/version.h:88: error: syntax error 
before "const"
D:/WindRiver/vxworks-6.5/target/h/version.h:89: error: syntax error 
before "const"
In file included from D:/WindRiver/vxworks-6.5/target/h/stdio.h:62,
  from sqlite3.c:6522:
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:39: error: syntax 
error before "UINT32"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:39: warning: no 
semicolon at end of struct or union
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:40: warning: type 
defaults to `int' in declaration of `attributes'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:40: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:41: error: syntax 
error before "type"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:41: warning: type 
defaults to `int' in declaration of `type'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:41: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:42: error: syntax 
error before "contextType"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:42: warning: type 
defaults to `int' in declaration of `contextType'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:42: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:43: warning: type 
defaults to `int' in declaration of `HANDLE'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:43: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:45: error: syntax 
error before '*' token
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:45: warning: type 
defaults to `int' in declaration of `HANDLE_ID'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:45: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:49: error: syntax 
error before "handleContextGet"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:49: error: syntax 
error before "handleId"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:50: warning: type 
defaults to `int' in declaration of `handleContextGet'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:50: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:51: error: syntax 
error before "handleId"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:53: error: syntax 
error before "handleContextSet"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:53: error: syntax 
error before "handleId"
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:54: warning: type 
defaults to `int' in declaration of `handleContextSet'
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:54: warning: data 
definition has no type or storage class
D:/WindRiver/vxworks-6.5/target/h/private/handleLibP.h:55: error: syntax 
error before "hand