Aubit4GL on Raspberry Pi - Error compiling
Ramiro Ortiz <[email protected]> Wed, 29 Nov 2023 14:37:34 +0100
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============2997955118208537662==
Content-Type: multipart/alternative;
boundary="------------mTidgBAnsr6Pb0AXy5lwMlkf"
Content-Language: de-AT
This is a multi-part message in MIME format.
--------------mTidgBAnsr6Pb0AXy5lwMlkf
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
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
--------------mTidgBAnsr6Pb0AXy5lwMlkf
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 _d-id="753305"><span _d-id="763319"
class="--l --r sentence_highlight">Hello all,</span></p>
<p _d-id="753306"><span _d-id="763321"
class="--l --r sentence_highlight">I'm working on a project
where we want to compile Aubit4GL with Sqlite on a Raspberry Pi.
</span><span _d-id="763324" class="--l --r sentence_highlight">I
have already compiled Aubit4GL-1.6.1 correctly with Sqlite3 and
Unixodbc in a virtual machine on Fedora. </span><span
_d-id="763327" class="--l --r sentence_highlight">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 _d-id="753306"><span _d-id="763327"
class="--l --r sentence_highlight"><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 _d-id="753306"><span _d-id="763327"
class="--l --r sentence_highlight"></span><br>
</p>
<p _d-id="816092"><span _d-id="818049"
class="--l --r sentence_highlight"><span _d-id="818052"
class="--l --r hover:bg-[#B4DAE8]">What</span> <span
_d-id="818056" class="--l --r hover:bg-[#B4DAE8]">could</span>
<span _d-id="818060" class="--l --r hover:bg-[#B4DAE8]">be</span>
<span _d-id="818064" class="--l --r hover:bg-[#B4DAE8]">the</span>
<span _d-id="818068" class="--l --r hover:bg-[#B4DAE8]">cause</span>
<span _d-id="818072" class="--l --r hover:bg-[#B4DAE8]">of</span>
<span _d-id="818076" class="--l --r hover:bg-[#B4DAE8]">this</span>
<span _d-id="818080" class="--l --r hover:bg-[#B4DAE8]">error</span><span
_d-id="818083" class="--l --r hover:bg-[#B4DAE8]">?</span> </span><span
_d-id="818086" class="--l --r sentence_highlight"><span
_d-id="818088" class="--l --r hover:bg-[#B4DAE8]">Has</span> <span
_d-id="818092" class="--l --r hover:bg-[#B4DAE8]">anyone</span>
<span _d-id="818096" class="--l --r hover:bg-[#B4DAE8]">already</span>
<span _d-id="818100" class="--l --r hover:bg-[#B4DAE8]">tried</span>
<span _d-id="818104" class="--l --r hover:bg-[#B4DAE8]">to</span>
<span _d-id="818108" class="--l --r hover:bg-[#B4DAE8]">install</span>
<span _d-id="818112" class="--l --r hover:bg-[#B4DAE8]">Aubit4GL</span>
<span _d-id="818116" class="--l --r hover:bg-[#B4DAE8]">on</span>
<span _d-id="818120" class="--l --r hover:bg-[#B4DAE8]">a</span>
<span _d-id="818124" class="--l --r hover:bg-[#B4DAE8]">Raspberry</span>
<span _d-id="818128" class="--l --r hover:bg-[#B4DAE8]">PI</span><span
_d-id="818131" class="--l --r hover:bg-[#B4DAE8]">?</span></span></p>
<p _d-id="816093"><span _d-id="818133"
class="--l --r sentence_highlight"><span _d-id="818135"
class="--l --r hover:bg-[#B4DAE8]">Thank</span> <span
_d-id="818139" class="--l --r hover:bg-[#B4DAE8]">you</span> <span
_d-id="818143" class="--l --r hover:bg-[#B4DAE8]">very</span>
<span _d-id="818147" class="--l --r hover:bg-[#B4DAE8]">much</span></span></p>
<p _d-id="816094"><span _d-id="818149"
class="--l --r sentence_highlight">Best regards</span></p>
<p _d-id="816095"><span _d-id="818151"
class="--l --r sentence_highlight">Ramiro Ortiz</span></p>
<p></p>
<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>
--------------mTidgBAnsr6Pb0AXy5lwMlkf--
--===============2997955118208537662==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============2997955118208537662==
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
--===============2997955118208537662==--