Build error in SQLite 3.18 if SQLITE_UNTESTABLE is defined

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

Build error in SQLite 3.18 if SQLITE_UNTESTABLE is defined

Priebe, Sebastian
Hello,

shell.c fails to build with:
shell.c: In function 'do_meta_command':
shell.c:6442:50: error: 'sql_trace_callback' undeclared (first use in this function)
       sqlite3_trace_v2(p->db, SQLITE_TRACE_STMT, sql_trace_callback,p->traceOut);
                                                  ^
shell.c:6442:50: note: each undeclared identifier is reported only once for each function it appears in
make: *** [sqlite3-shell.o] Error 1

Looking at the source code: the function sql_trace_callback is only available if SQLITE_UNTESTABLE is not defined, but at the place it is used there is no such restiction.

Greetings
Sebastian




------------------------------------------------------------------
     +++ CADCON ist Mitglied der SII Group +++
Mehr auf unserer neuen Homepage > www.cadcon.de
-------------------------------------------------------------------

CADCON
Ingenieurgesellschaft mbH & Co. KG
Geschaeftsfuehrer: Robert Bauer
Sitz der Gesellschaft: 86368 Gersthofen
Registergericht: Amtsgericht Augsburg HRA 14521

_______________________________________________
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 error in SQLite 3.18 if SQLITE_UNTESTABLE is defined

Richard Hipp-3
I'm curious:  Why do you want to make SQLite untestable?

On 4/24/17, Priebe, Sebastian <[hidden email]> wrote:

> Hello,
>
> shell.c fails to build with:
> shell.c: In function 'do_meta_command':
> shell.c:6442:50: error: 'sql_trace_callback' undeclared (first use in this
> function)
>        sqlite3_trace_v2(p->db, SQLITE_TRACE_STMT,
> sql_trace_callback,p->traceOut);
>                                                   ^
> shell.c:6442:50: note: each undeclared identifier is reported only once for
> each function it appears in
> make: *** [sqlite3-shell.o] Error 1
>
> Looking at the source code: the function sql_trace_callback is only
> available if SQLITE_UNTESTABLE is not defined, but at the place it is used
> there is no such restiction.
>
> Greetings
> Sebastian
>
>
>
>
> ------------------------------------------------------------------
>      +++ CADCON ist Mitglied der SII Group +++
> Mehr auf unserer neuen Homepage > www.cadcon.de
> -------------------------------------------------------------------
>
> CADCON
> Ingenieurgesellschaft mbH & Co. KG
> Geschaeftsfuehrer: Robert Bauer
> Sitz der Gesellschaft: 86368 Gersthofen
> Registergericht: Amtsgericht Augsburg HRA 14521
>
> _______________________________________________
> 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