Re: Aubit4GL on Raspberry Pi - Error compiling
Ramiro Ortiz <[email protected]> Wed, 29 Nov 2023 15:17:37 +0100
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0683810345293661947== Content-Type: multipart/alternative; boundary="------------kMZBBlFIhCP6Knz9q9j25w6a" Content-Language: de-AT This is a multi-part message in MIME format. --------------kMZBBlFIhCP6Knz9q9j25w6a Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Mike, Thank you for your response. The database will be Sqlite3. Am 29.11.23 um 15:10 schrieb Mike Aubury: > What database will you end up actually using ? > > On Wed, 29 Nov 2023 at 13:58, Ramiro Ortiz <[email protected]> wrote: > > Hello all, > > I'm working on a project where we want to compile Aubit4GL with > Sqlite on a Raspberry Pi. I have already compiled Aubit4GL-1.6.1 > correctly with Sqlite3 and Unixodbc in a virtual machine on > Fedora. However, with the new Raspberry Pi OS as with Ubuntu on a > Raspberry Pi 400 I get the following problem when running the make > command: > > sqlite3odbc.c:9060:42: error: incompatible type for argument 2 of > ‘sqlite3_vmprintf’ > 9060 | sql = sqlite3_vmprintf(s->query, (char *) params); > | ^~~~~~~~~~~~~~~ > | | > | char * > In file included from sqlite3odbc.h:50, > from sqlite3odbc.c:35: > sqlite3-local.h:372:37: note: expected ‘va_list’ but argument is > of type ‘char *’ > 372 | char *sqlite3_vmprintf(const char*, va_list); > | ^~~~~~~ > sqlite3odbc.c: In function ‘drvexecute’: > sqlite3odbc.c:9253:29: warning: pointer targets in passing > argument 1 of ‘sqlite3_vmprintf’ differ in signedness [-Wpointer-sign] > 9253 | sql = sqlite3_vmprintf(s->query, (char *) params); > | ~^~~~~~~ > | | > | SQLCHAR * {aka unsigned char *} > In file included from sqlite3odbc.h:50, > from sqlite3odbc.c:35: > sqlite3-local.h:372:24: note: expected ‘const char *’ but argument > is of type ‘SQLCHAR *’ {aka ‘unsigned char *’} > 372 | char *sqlite3_vmprintf(const char*, va_list); > | ^~~~~~~~~~~ > sqlite3odbc.c:9253:38: error: incompatible type for argument 2 of > ‘sqlite3_vmprintf’ > 9253 | sql = sqlite3_vmprintf(s->query, (char *) params); > | ^~~~~~~~~~~~~~~ > | | > | char * > > > What could be the cause of this error? Has anyone already tried to > install Aubit4GL on a Raspberry PI? > > Thank you very much > > Best regards > > Ramiro Ortiz > > -- > Ramiro Ortiz > Fon: +43 316 835359 74, E-mail:[email protected] > AIT Forschungsgesellschaft mbH > Klosterwiesgasse 32/II, A-8010 Graz > > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > -- Ramiro Ortiz Fon: +43 316 835359 74, E-mail:[email protected] AIT Forschungsgesellschaft mbH Klosterwiesgasse 32/II, A-8010 Graz --------------kMZBBlFIhCP6Knz9q9j25w6a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>Hi Mike,</p> <p><span _d-id="824175" class=" --l --r bg-[#E1F0F5] text-[#25282D] alignedSentenceHighlight-module--alignedSentenceHighlight--NKBwe sentence_highlight">Thank you for your response. The database will be Sqlite3.<br> </span></p> <div class="moz-cite-prefix">Am 29.11.23 um 15:10 schrieb Mike Aubury:<br> </div> <blockquote type="cite" cite="mid:CAGAq4WFa_NWSv45zk-7G=mfbkrcNhqz8BM=MDCGoRZhHQAgeNQ@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr">What database will you end up actually using ?</div> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr">On Wed, 29 Nov 2023 at 13:58, Ramiro Ortiz <<a href="mailto:[email protected]" moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>> wrote:<br> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div> <p><span>Hello all,</span></p> <p><span>I'm working on a project where we want to compile Aubit4GL with Sqlite on a Raspberry Pi. </span><span>I have already compiled Aubit4GL-1.6.1 correctly with Sqlite3 and Unixodbc in a virtual machine on Fedora. </span><span>However, with the new Raspberry Pi OS as with Ubuntu on a Raspberry Pi 400 I get the following problem when running the <font face="monospace">make</font> command:</span></p> <p><span><font face="monospace">sqlite3odbc.c:9060:42: error: incompatible type for argument 2 of ‘sqlite3_vmprintf’<br> 9060 | sql = sqlite3_vmprintf(s->query, (char *) params);<br> | ^~~~~~~~~~~~~~~<br> | |<br> | char *<br> In file included from sqlite3odbc.h:50,<br> from sqlite3odbc.c:35:<br> sqlite3-local.h:372:37: note: expected ‘va_list’ but argument is of type ‘char *’<br> 372 | char *sqlite3_vmprintf(const char*, va_list);<br> | ^~~~~~~<br> sqlite3odbc.c: In function ‘drvexecute’:<br> sqlite3odbc.c:9253:29: warning: pointer targets in passing argument 1 of ‘sqlite3_vmprintf’ differ in signedness [-Wpointer-sign]<br> 9253 | sql = sqlite3_vmprintf(s->query, (char *) params);<br> | ~^~~~~~~<br> | |<br> | SQLCHAR * {aka unsigned char *}<br> In file included from sqlite3odbc.h:50,<br> from sqlite3odbc.c:35:<br> sqlite3-local.h:372:24: note: expected ‘const char *’ but argument is of type ‘SQLCHAR *’ {aka ‘unsigned char *’}<br> 372 | char *sqlite3_vmprintf(const char*, va_list);<br> | ^~~~~~~~~~~<br> sqlite3odbc.c:9253:38: error: incompatible type for argument 2 of ‘sqlite3_vmprintf’<br> 9253 | sql = sqlite3_vmprintf(s->query, (char *) params);<br> | ^~~~~~~~~~~~~~~<br> | |<br> | char *<br> </font></span></p> <p><span></span><br> </p> <p><span><span>What</span> <span>could</span> <span>be</span> <span>the</span> <span>cause</span> <span>of</span> <span>this</span> <span>error</span><span>?</span> </span><span><span>Has</span> <span>anyone</span> <span>already</span> <span>tried</span> <span>to</span> <span>install</span> <span>Aubit4GL</span> <span>on</span> <span>a</span> <span>Raspberry</span> <span>PI</span><span>?</span></span></p> <p><span><span>Thank</span> <span>you</span> <span>very</span> <span>much</span></span></p> <p><span>Best regards</span></p> <p><span>Ramiro Ortiz</span></p> <pre cols="72">-- Ramiro Ortiz Fon: +43 316 835359 74, E-mail: <a href="mailto:[email protected]" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a> AIT Forschungsgesellschaft mbH Klosterwiesgasse 32/II, A-8010 Graz</pre> </div> _______________________________________________<br> Aubit4gl-discuss mailing list<br> <a href="mailto:[email protected]" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss" rel="noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss</a><br> </blockquote> </div> </blockquote> <pre class="moz-signature" cols="72">-- Ramiro Ortiz Fon: +43 316 835359 74, E-mail: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> AIT Forschungsgesellschaft mbH Klosterwiesgasse 32/II, A-8010 Graz</pre> </body> </html> --------------kMZBBlFIhCP6Knz9q9j25w6a-- --===============0683810345293661947== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0683810345293661947== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss --===============0683810345293661947==--