build issue with 3.21.0 under VxWorks

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

build issue with 3.21.0 under VxWorks

mailantommy
Hi,

when I try to build sqlite 3.21.0 for VxWorks compilation fails with the following error:

sqlite3.o
amalgamation/sqlite3.c:30886:43: error: 'ioctl' undeclared here (not in a function)
{ "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },

adding #include<ioLib.h> in vxworks.h fixes the issue.

--- old\amalgamation\sqlite3.c
+++ new\amalgamation\sqlite3.c
@@ -899,12 +899,13 @@
*/
#if defined(__RTP__) || defined(_WRS_KERNEL)
/* This is VxWorks.  Set up things specially for that OS
*/
#include <vxWorks.h>
#include <pthread.h>  /* amalgamator: dontcache */
+#include <ioLib.h>
#define OS_VXWORKS 1
#define SQLITE_OS_OTHER 0
#define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
#define SQLITE_OMIT_LOAD_EXTENSION 1
#define SQLITE_ENABLE_LOCKING_STYLE 0
#define HAVE_UTIME 1

thanks and best regards,
Thomas
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: build issue with 3.21.0 under VxWorks

Richard Hipp-3
Alternative fix is now on trunk.
https://www.sqlite.org/src/info/adfa7ed2de3e833f

On 10/25/17, [hidden email] <[hidden email]> wrote:

> Hi,
>
> when I try to build sqlite 3.21.0 for VxWorks compilation fails with the
> following error:
>
> sqlite3.o
> amalgamation/sqlite3.c:30886:43: error: 'ioctl' undeclared here (not in a
> function)
> { "ioctl",         (sqlite3_syscall_ptr)ioctl,          0 },
>
> adding #include<ioLib.h> in vxworks.h fixes the issue.
>
> --- old\amalgamation\sqlite3.c
> +++ new\amalgamation\sqlite3.c
> @@ -899,12 +899,13 @@
> */
> #if defined(__RTP__) || defined(_WRS_KERNEL)
> /* This is VxWorks.  Set up things specially for that OS
> */
> #include <vxWorks.h>
> #include <pthread.h>  /* amalgamator: dontcache */
> +#include <ioLib.h>
> #define OS_VXWORKS 1
> #define SQLITE_OS_OTHER 0
> #define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
> #define SQLITE_OMIT_LOAD_EXTENSION 1
> #define SQLITE_ENABLE_LOCKING_STYLE 0
> #define HAVE_UTIME 1
>
> thanks and best regards,
> Thomas
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>


--
D. Richard Hipp
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users