Source: myodbc
Version: 5.1.10-3
Severity: serious
Tags: stretch sid
User: [email protected]
Usertags: qa-ftbfs-20161021 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
> -I../driver -I..  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include  -O3 
> -DDBUG_OFF -I/usr/include/mysql 
> -fdebug-prefix-map=/build/mysql-5.7-ClWLeg/mysql-5.7-5.7.15=. -fabi-version=2 
> -fno-omit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -c -o stringutil.lo 
> stringutil.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../driver -I.. -Wdate-time 
> -D_FORTIFY_SOURCE=2 -I/usr/include -O3 -DDBUG_OFF -I/usr/include/mysql 
> -fdebug-prefix-map=/build/mysql-5.7-ClWLeg/mysql-5.7-5.7.15=. -fabi-version=2 
> -fno-omit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -c stringutil.c  
> -fPIC -DPIC -o .libs/stringutil.o
> stringutil.c: In function 'sqlchar_as_sqlwchar':
> stringutil.c:71:29: error: too few arguments to function 'my_malloc'
>      SQLCHAR *u8= (SQLCHAR *)my_malloc(u8_max, MYF(0));
>                              ^~~~~~~~~
> In file included from /usr/include/mysql/my_sys.h:24:0,
>                  from ../MYODBC_MYSQL.h:30,
>                  from stringutil.h:37,
>                  from stringutil.c:32:
> /usr/include/mysql/mysql/service_mysql_alloc.h:66:15: note: declared here
>  extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
>                ^~~~~~~~~
> stringutil.c:90:20: error: too few arguments to function 'my_malloc'
>    out= (SQLWCHAR *)my_malloc(out_bytes, MYF(0));
>                     ^~~~~~~~~
> In file included from /usr/include/mysql/my_sys.h:24:0,
>                  from ../MYODBC_MYSQL.h:30,
>                  from stringutil.h:37,
>                  from stringutil.c:32:
> /usr/include/mysql/mysql/service_mysql_alloc.h:66:15: note: declared here
>  extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
>                ^~~~~~~~~
> stringutil.c: In function 'sqlwchar_as_sqlchar':
> stringutil.c:167:19: error: too few arguments to function 'my_malloc'
>    out= (SQLCHAR *)my_malloc(out_bytes, MYF(0));
>                    ^~~~~~~~~
> In file included from /usr/include/mysql/my_sys.h:24:0,
>                  from ../MYODBC_MYSQL.h:30,
>                  from stringutil.h:37,
>                  from stringutil.c:32:
> /usr/include/mysql/mysql/service_mysql_alloc.h:66:15: note: declared here
>  extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
>                ^~~~~~~~~
> stringutil.c: In function 'sqlwchar_as_utf8':
> stringutil.c:229:15: error: too few arguments to function 'my_malloc'
>    u8= (UTF8 *)my_malloc(sizeof(UTF8) * MAX_BYTES_PER_UTF8_CP * *len + 1,
>                ^~~~~~~~~
> In file included from /usr/include/mysql/my_sys.h:24:0,
>                  from ../MYODBC_MYSQL.h:30,
>                  from stringutil.h:37,
>                  from stringutil.c:32:
> /usr/include/mysql/mysql/service_mysql_alloc.h:66:15: note: declared here
>  extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
>                ^~~~~~~~~
> stringutil.c: In function 'sqlchar_as_sqlchar':
> stringutil.c:328:20: error: too few arguments to function 'my_malloc'
>    conv= (SQLCHAR *)my_malloc(bytes + 1, MYF(0));
>                     ^~~~~~~~~
> In file included from /usr/include/mysql/my_sys.h:24:0,
>                  from ../MYODBC_MYSQL.h:30,
>                  from stringutil.h:37,
>                  from stringutil.c:32:
> /usr/include/mysql/mysql/service_mysql_alloc.h:66:15: note: declared here
>  extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
>                ^~~~~~~~~
> stringutil.c: In function 'copy_and_convert':
> stringutil.c:439:32: warning: initialization from incompatible pointer type 
> [-Wincompatible-pointer-types]
>                 const uchar *)= from_cs->cset->mb_wc;
>                                 ^~~~~~~
> stringutil.c:441:5: warning: initialization from incompatible pointer type 
> [-Wincompatible-pointer-types]
>      to_cs->cset->wc_mb;
>      ^~~~~
> stringutil.c: In function 'sqlwchardup':
> stringutil.c:566:30: error: too few arguments to function 'my_malloc'
>    SQLWCHAR *res= (SQLWCHAR *)my_malloc((chars + 1) * sizeof(SQLWCHAR), 
> MYF(0));
>                               ^~~~~~~~~
> In file included from /usr/include/mysql/my_sys.h:24:0,
>                  from ../MYODBC_MYSQL.h:30,
>                  from stringutil.h:37,
>                  from stringutil.c:32:
> /usr/include/mysql/mysql/service_mysql_alloc.h:66:15: note: declared here
>  extern void * my_malloc(PSI_memory_key key, size_t size, myf_t flags);
>                ^~~~~~~~~
> stringutil.c: In function 'myodbc_strlwr':
> stringutil.c:666:11: warning: implicit declaration of function 'tolower' 
> [-Wimplicit-function-declaration]
>      *c++= tolower(*c);
>            ^~~~~~~
> Makefile:422: recipe for target 'stringutil.lo' failed
> make[2]: *** [stringutil.lo] Error 1

If the failure looks somehow time/timezone related:
Note that this rebuild was performed without the 'tzdata' package
installed in the chroot. tzdata used be (transitively) part of
build-essential, but it no longer is. If this package requires it to
build, it should be added to build-depends. For the release team's
opinion on this, see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836940#185

If the failure looks LSB-related:
similarly to tzdata, lsb-base is not installed in the build chroot.

The full build log is available from:
   http://aws-logs.debian.net/2016/10/21/myodbc_5.1.10-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Reply via email to