> -----Original Message-----
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-
> boun...@sqlite.org] On Behalf Of Jan Nijtmans
> Sent: 07 July 2014 20:14


> 2014-07-07 14:44 GMT+02:00 Andy Ling <andy.l...@quantel.com>:
> > Removing the SQLITE_ENABLE_LOCKING_STYLE I get........
> ...
> > sqlite3.c: In function 'fileHasMoved':
> > sqlite3.c:25236: error: 'struct unixFileId' has no member named 'ino'
> > sqlite3.c: In function 'semCheckReservedLock':
> ...
> > sqlite3.c:26372: warning: unused variable 'statBuf'
> > sqlite3.c: In function 'semLock':
> ...
> > sqlite3.c:26425: warning: unused variable 'fd'
> 
> Below my suggested patch (derived from todays trunk)
> which should solve the above 2 warnings and the
> error. All other warnings/errors seems
> to derive from the missing <semaphore.h> and maybe
> other header files (<sys/mount.h> ???)
> 

OK, I've made those changes and with

-DHAVE_UTIME -DSQLITE_OMIT_LOAD_EXTENSION

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 'semCheckReservedLock':
sqlite3.c:26377: error: 'sem_t' undeclared (first use in this function)
sqlite3.c:26377: error: (Each undeclared identifier is reported only once
sqlite3.c:26377: error: for each function it appears in.)
sqlite3.c:26377: error: 'pSem' undeclared (first use in this function)
sqlite3.c:26377: error: 'unixInodeInfo' has no member named 'pSem'
sqlite3.c:26379: warning: implicit declaration of function 'sem_trywait'
sqlite3.c:26390: warning: implicit declaration of function 'sem_post'
sqlite3.c: In function 'semLock':
sqlite3.c:26430: error: 'sem_t' undeclared (first use in this function)
sqlite3.c:26430: error: 'pSem' undeclared (first use in this function)
sqlite3.c:26430: error: 'unixInodeInfo' has no member named 'pSem'
sqlite3.c: In function 'semUnlock':
sqlite3.c:26463: error: 'sem_t' undeclared (first use in this function)
sqlite3.c:26463: error: 'pSem' undeclared (first use in this function)
sqlite3.c:26463: error: 'unixInodeInfo' has no member named 'pSem'
sqlite3.c: In function 'fillInUnixFile':
sqlite3.c:29263: error: 'unixInodeInfo' has no member named 'pSem'
sqlite3.c:29264: error: 'unixInodeInfo' has no member named 'aSemName'
sqlite3.c:29270: error: 'unixInodeInfo' has no member named 'pSem'
sqlite3.c:29270: warning: implicit declaration of function 'sem_open'
sqlite3.c:29271: error: 'unixInodeInfo' has no member named 'pSem'
sqlite3.c:29271: error: 'SEM_FAILED' undeclared (first use in this function)
sqlite3.c:29273: error: 'unixInodeInfo' has no member named 'aSemName'

If I add -DSQLITE_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:24306: error: 'pread' undeclared here (not in a function)
sqlite3.c:24323: error: 'pwrite' undeclared here (not in a function)
sqlite3.c: In function 'unixOpen':
sqlite3.c:29561: error: storage size of 'fsInfo' isn't known
sqlite3.c:29721: warning: implicit declaration of function 'fstatfs'
sqlite3.c:29726: error: request for member 'f_fstypename' in something not a 
structure or union
sqlite3.c:29726: warning: passing argument 2 of 'strncmp' from incompatible 
pointer type
sqlite3.c:29751: warning: implicit declaration of function 'statfs'
sqlite3.c:29764: error: request for member 'f_flags' in something not a 
structure or union
sqlite3.c:29764: error: 'MNT_LOCAL' undeclared (first use in this function)
sqlite3.c:29764: error: (Each undeclared identifier is reported only once
sqlite3.c:29764: error: for each function it appears in.)
sqlite3.c:29764: error: invalid operands to binary & (have 'struct unix_syscall 
*' and 'struct unix_syscall *')
sqlite3.c:29769: warning: implicit declaration of function 
'proxyTransformUnixFile'
sqlite3.c:29561: warning: unused variable 'fsInfo'

This is only the compile. Once this is sorted there is linking to fix.

> I don't have VxWorks, just tested this on Linux using
> -DOS_VXWORKS=1, as suggested here:
>     <www.sqlite.org/src/info/30a0132a83>
> 

I'm happy to try any patches. I obviously do have vxWorks.

As a slight aside. Some of the compile options seem necessary to get a basic 
build. I wonder if these should be set by default for vxWorks.

Regards

Andy Ling

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to