SQLite Android Bindings
Artifact Content
Not logged in

Artifact 0afc464dd11fa2298d46cbd1116954187a50ed75:

Ticket change [0afc464dd1] - New ticket [28d442a2c39bd546|28d442a2c3] <i>Build error when SQLITE_ENABLE_BATCH_ATOMIC_WRITE is set because of ambiguous cast</i>. by anonymous 2018-09-05 12:50:23.
D 2018-09-05T12:50:23.841
J foundin latest
J icomment Before\sAndroid\sNDK\sr17,\sthere\swas\sonly\sone\sioctl()\sfunction\sdefined.\r\n\s\s\s\sint\sioctl(int\s__fd,\sint\s__request,\s...);\r\n\r\nHowever,\ssince\sAndroid\sNDK\sr17,\sanother\sone\shas\sbeen\sadded:\r\n\s\s\s\sint\sioctl(int\s__fd,\sunsigned\s__request,\s...)\r\n\r\n\r\nWhen\scompiling\sSQLite\swith\sSQLITE_ENABLE_BATCH_ATOMIC_WRITE\sthis\swill\sproduce\sa\sbuild\serror\ssince\sclang\sdoes\snot\sknow\swhich\sioctl()\sfunction\sto\scast,\ssince\ssqlite2_syscall_ptr\sis\sdefined\sas:\r\n\s\s\s\stypedef\svoid\s(*sqlite3_syscall_ptr)(void);\r\n\r\n\r\n====\r\n[x86_64]\sCompile\s\s\s\s\s\s\s\s:\ssqliteX\s<=\ssqlite3.c\r\n\s\s/home/mathieu/Documents/Sources/Temp/SQlite/sqlite/sqlite3/src/main/jni/sqlite/sqlite3.c:32184:43:\serror:\saddress\sof\soverloaded\sfunction\s'ioctl'\sis\sambiguous\r\n\s\s\s\s{\s"ioctl",\s\s\s\s\s\s\s\s\s(sqlite3_syscall_ptr)ioctl,\s\s\s\s\s\s\s\s\s\s0\s},\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~\r\n\s\s/home/mathieu/Android/NDK/android-ndk-r17b/sysroot/usr/include/bits/ioctl.h:57:5:\snote:\scandidate\sfunction\shas\sdifferent\snumber\sof\sparameters\s(expected\s0\sbut\shas\s2)\r\n\s\sint\sioctl(int\s__fd,\sunsigned\s__request,\s...)\s__overloadable\s__enable_if(1,\s"")\s__RENAME(ioctl);\r\n\s\s\s\s\s\s^\r\n\s\s/home/mathieu/Android/NDK/android-ndk-r17b/sysroot/usr/include/bits/ioctl.h:36:5:\snote:\scandidate\sfunction\shas\sdifferent\snumber\sof\sparameters\s(expected\s0\sbut\shas\s2)\r\n\s\sint\sioctl(int\s__fd,\sint\s__request,\s...);\r\n\s\s\s\s\s\s^\r\n\s\s/home/mathieu/Documents/Sources/Temp/SQlite/sqlite/sqlite3/src/main/jni/sqlite/sqlite3.c:32184:22:\serror:\sinitializer\selement\sis\snot\sa\scompile-time\sconstant\r\n\s\s\s\s{\s"ioctl",\s\s\s\s\s\s\s\s\s(sqlite3_syscall_ptr)ioctl,\s\s\s\s\s\s\s\s\s\s0\s},\r\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s^~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\s\s2\serrors\sgenerated.\r\n\s\smake:\s***\s[/home/mathieu/Documents/Sources/Temp/SQlite/sqlite/sqlite3/build/intermediates/ndkBuild/release/obj/local/x86_64/objs/sqliteX/sqlite3.o]\sError\s1\r\n====
J login anonymous
J mimetype text/x-fossil-plain
J private_contact 6ae8e4e99f463d5364ed5168b893c32b24d7ca5f
J severity Severe
J status Open
J title Build\serror\swhen\sSQLITE_ENABLE_BATCH_ATOMIC_WRITE\sis\sset\sbecause\sof\sambiguous\scast
J type Code_Defect
K 28d442a2c39bd54683a6ff74467336939e305a7e
U anonymous
Z 6b38f9e8e4b124ee26e8047079b9ef3d