> -----Original Message----- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users- > boun...@sqlite.org] On Behalf Of Jan Nijtmans > Sent: 07 July 2014 12:24 > To: General Discussion of SQLite Database > Subject: Re: [sqlite] Building for vxWorks > > 2014-07-04 11:52 GMT+02:00 Andy Ling <andy.l...@quantel.com>: > > I now have sqlite running under vxWorks. As nobody offered any > suggestions, I thought I would share my experience in the hope it will help > others and maybe feed some changes back into the main code. > .... > > semaphone.h is included if SQLITE_ENABLE_LOCKING_STYLE is defined, but > I > > couldn't get it to build with that set. > > The first logical question is: Why you couldn't get it to build with > that set? What exact error-message did you get? I think that's > the first thing that should be fixed before trying other > refinements. >
Building the original file with the flags......... -DHAVE_UTIME -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_ENABLE_LOCKING_STYLE I get the following errors..... sqlite3.c: In function 'posixFchown': sqlite3.c:24249: warning: implicit declaration of function 'geteuid' sqlite3.c:24249: warning: implicit declaration of function 'fchown' sqlite3.c: At top level: sqlite3.c:24306: error: 'pread' undeclared here (not in a function) sqlite3.c:24323: error: 'pwrite' undeclared here (not in a function) sqlite3.c: In function 'fileHasMoved': sqlite3.c:25236: error: 'struct unixFileId' has no member named 'ino' sqlite3.c:25236: warning: comparison between pointer and integer sqlite3.c: In function 'semCheckReservedLock': sqlite3.c:26372: warning: unused variable 'statBuf' sqlite3.c: In function 'semLock': sqlite3.c:26425: warning: unused variable 'fd' sqlite3.c: In function 'unixOpen': sqlite3.c:29557: error: storage size of 'fsInfo' isn't known sqlite3.c:29717: warning: implicit declaration of function 'fstatfs' sqlite3.c:29722: error: request for member 'f_fstypename' in something not a structure or union sqlite3.c:29722: warning: passing argument 2 of 'strncmp' from incompatible pointer type sqlite3.c:29747: warning: implicit declaration of function 'statfs' sqlite3.c:29760: error: request for member 'f_flags' in something not a structure or union sqlite3.c:29760: error: 'MNT_LOCAL' undeclared (first use in this function) sqlite3.c:29760: error: (Each undeclared identifier is reported only once sqlite3.c:29760: error: for each function it appears in.) sqlite3.c:29760: error: invalid operands to binary & (have 'struct unix_syscall *' and 'struct unix_syscall *') sqlite3.c:29765: warning: implicit declaration of function 'proxyTransformUnixFile' sqlite3.c:29557: warning: unused variable 'fsInfo' Removing the SQLITE_ENABLE_LOCKING_STYLE I get........ sqlite3.c: In function 'posixFchown': sqlite3.c:24249: warning: implicit declaration of function 'geteuid' sqlite3.c:24249: warning: implicit declaration of function 'fchown' sqlite3.c: At top level: sqlite3.c:24996: error: expected specifier-qualifier-list before 'sem_t' sqlite3.c: In function 'fileHasMoved': sqlite3.c:25236: error: 'struct unixFileId' has no member named 'ino' sqlite3.c: In function 'semCheckReservedLock': sqlite3.c:26371: error: 'sem_t' undeclared (first use in this function) sqlite3.c:26371: error: (Each undeclared identifier is reported only once sqlite3.c:26371: error: for each function it appears in.) sqlite3.c:26371: error: 'pSem' undeclared (first use in this function) sqlite3.c:26371: error: 'unixInodeInfo' has no member named 'pSem' sqlite3.c:26374: warning: implicit declaration of function 'sem_trywait' sqlite3.c:26385: warning: implicit declaration of function 'sem_post' sqlite3.c:26372: warning: unused variable 'statBuf' sqlite3.c: In function 'semLock': sqlite3.c:26426: error: 'sem_t' undeclared (first use in this function) sqlite3.c:26426: error: 'pSem' undeclared (first use in this function) sqlite3.c:26426: error: 'unixInodeInfo' has no member named 'pSem' sqlite3.c:26425: warning: unused variable 'fd' sqlite3.c: In function 'semUnlock': sqlite3.c:26459: error: 'sem_t' undeclared (first use in this function) sqlite3.c:26459: error: 'pSem' undeclared (first use in this function) sqlite3.c:26459: error: 'unixInodeInfo' has no member named 'pSem' sqlite3.c: In function 'fillInUnixFile': sqlite3.c:29259: error: 'unixInodeInfo' has no member named 'pSem' sqlite3.c:29260: error: 'unixInodeInfo' has no member named 'aSemName' sqlite3.c:29266: error: 'unixInodeInfo' has no member named 'pSem' sqlite3.c:29266: warning: implicit declaration of function 'sem_open' sqlite3.c:29267: error: 'unixInodeInfo' has no member named 'pSem' sqlite3.c:29267: error: 'SEM_FAILED' undeclared (first use in this function) sqlite3.c:29269: error: 'unixInodeInfo' has no member named 'aSemName' Regards Andy Ling _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users