diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2025-04-29 12:52:24 +0200 |
---|---|---|
committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-09-14 16:50:04 +0200 |
commit | eabddce219d0b1f837c5ea446e2710775f7d4d0e (patch) | |
tree | 9741bea7e4025cf78388018a5293a1bc87877947 | |
parent | c8f58ece4988e90274d53fcc37f6e533cf4f9be6 (diff) | |
download | meta-openembedded-eabddce219d0b1f837c5ea446e2710775f7d4d0e.tar.gz |
libiodbc: use gnu17 and ignore incompatible-pointer-types to allow building with gcc-15
A fix was sent in:
https://lists.openembedded.org/g/openembedded-devel/message/116537
but it causes issues with clang as well as older gcc as reported on
ML and also in upstream PR:
https://github.com/openlink/iODBC/pull/111
Use gnu17 until this is properly resolved to avoid:
http://errors.yoctoproject.org/Errors/Details/852861/
In file included from ../../libiodbc-3.52.16/iodbc/execute.c:94:
../../libiodbc-3.52.16/iodbc/execute.c: In function '_ReBindParam':
../../libiodbc-3.52.16/iodbc/execute.c:643:49: error: too many arguments to function 'hproc3'; expected 0, have 8
643 | CALL_DRIVER (pstmt->hdbc, pstmt, retcode, hproc3,
| ^~~~~~
http://errors.yoctoproject.org/Errors/Details/853276/
../../libiodbc-3.52.16/iodbcinst/unicode.c: In function 'dm_AtoUW':
../../libiodbc-3.52.16/iodbcinst/unicode.c:1565:16: error: initialization of 'ucs4_t *' {aka 'unsigned int *'} from incompatible pointer type 'wchar_t *' {aka 'long int *'} [-Wincompatible-pointer-types]
1565 | ucs4_t *us = dest;
| ^~~~
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/libiodbc/libiodbc_3.52.16.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libiodbc/libiodbc_3.52.16.bb b/meta-oe/recipes-support/libiodbc/libiodbc_3.52.16.bb index 644c3ba07b..0478ef3403 100644 --- a/meta-oe/recipes-support/libiodbc/libiodbc_3.52.16.bb +++ b/meta-oe/recipes-support/libiodbc/libiodbc_3.52.16.bb | |||
@@ -31,3 +31,9 @@ EXTRA_OECONF += " --prefix=/usr/local \ | |||
31 | 31 | ||
32 | inherit multilib_script | 32 | inherit multilib_script |
33 | MULTILIB_SCRIPTS = "${PN}:${bindir}/iodbc-config" | 33 | MULTILIB_SCRIPTS = "${PN}:${bindir}/iodbc-config" |
34 | |||
35 | # avoid http://errors.yoctoproject.org/Errors/Details/852861/ | ||
36 | CFLAGS += "-std=gnu17" | ||
37 | # http://errors.yoctoproject.org/Errors/Details/853276/ | ||
38 | # libiodbc-3.52.16/iodbcinst/unicode.c:1565:16: error: initialization of 'ucs4_t *' {aka 'unsigned int *'} from incompatible pointer type 'wchar_t *' {aka 'long int *'} [-Wincompatible-pointer-types] | ||
39 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||