[debian-mysql] Bug#830707: Bug#830707: mariadb-connector-c: FTBFS on all architectures other than amd64 and i386
Otto Kekäläinen
otto at debian.org
Mon Jul 11 11:07:55 UTC 2016
Hello Daniel!
Thanks for the info. I've CC'd the upstream developer, so he knows you
have engineered a solution to this.
2016-07-10 19:00 GMT+03:00 Daniel Schepler <dschepler at gmail.com>:
> Source: mariadb-connector-c
> Version: 2.3.0-1
> Severity: serious
> Tags: patch
>
> [ 38%] Building C object libmariadb/CMakeFiles/mariadb_obj.dir/my_context.c.o
> cd /«PKGBUILDDIR»/obj-aarch64-linux-gnu/libmariadb && /usr/bin/cc
> -DHAVE_OPENSSL -I/«PKGBUILDDIR»/obj-aarch64-linux-gnu/include
> -I/«PKGBUILDDIR»/include -I/«PKGBUILDDIR»/libmariadb -g -O2
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized -D
> ENABLED_LOCAL_INFILE -D HAVE_COMPRESS -D LIBMARIADB -D THREAD -fPIC -o
> CMakeFiles/mariadb_obj.dir/my_context.c.o -c
> /«PKGBUILDDIR»/libmariadb/my_context.c
> /«PKGBUILDDIR»/libmariadb/my_context.c: In function 'my_context_init':
> /«PKGBUILDDIR»/libmariadb/my_context.c:129:11: error: missing binary
> operator before token "("
> #if sizeof(char *) > SIZEOF_INT*2
> ^
> libmariadb/CMakeFiles/mariadb_obj.dir/build.make:929: recipe for
> target 'libmariadb/CMakeFiles/mariadb_obj.dir/my_context.c.o' failed
> make[3]: *** [libmariadb/CMakeFiles/mariadb_obj.dir/my_context.c.o] Error 1
> make[3]: Leaving directory '/«PKGBUILDDIR»/obj-aarch64-linux-gnu'
> CMakeFiles/Makefile2:340: recipe for target
> 'libmariadb/CMakeFiles/mariadb_obj.dir/all' failed
> make[2]: *** [libmariadb/CMakeFiles/mariadb_obj.dir/all] Error 2
> make[2]: Leaving directory '/«PKGBUILDDIR»/obj-aarch64-linux-gnu'
> Makefile:152: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '/«PKGBUILDDIR»/obj-aarch64-linux-gnu'
> dh_auto_build: make -j1 returned exit code 2
> debian/rules:6: recipe for target 'build-arch' failed
> make: *** [build-arch] Error 2
> dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
>
> I have a simple patch changing sizeof(char *) to SIZEOF_CHARP (already
> exists in cmake/CheckTypes.cmake), which I'll push to git once I get
> the bug number to put into debian/changelog. I've tested that fixes
> the build at least on x32.
> --
> Daniel Schepler
>
> _______________________________________________
> pkg-mysql-maint mailing list
> pkg-mysql-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint
--
Otto Kekäläinen
https://keybase.io/ottok
Seravo Oy and MariaDB Foundation
More information about the pkg-mysql-maint
mailing list