[debian-mysql] Bug#844275: mysql_config injects build flags which breaks the build for other packages

Michael Biebl biebl at debian.org
Sun Nov 13 23:39:50 UTC 2016


Package: libmysqlclient-dev
Version: 5.7.16-1
Severity: serious
File: /usr/bin/mysql_config

Hi,

I just tried to build the rsyslog package, which resulted in a build
failure:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../runtime
-I../.. -I../../grammar -I/usr/include/libfastjson -W -Wall
-Wformat-security -Wshadow -Wcast-align -Wpointer-arith
-Wmissing-format-attribute -Werror=implicit-function-declaration -g
-I/usr/include/mysql
-fdebug-prefix-map=/build/mysql-5.7-lG4h93/mysql-5.7-5.7.16=. .specs
-fabi-version=2 -fno-omit-frame-pointer -pthread -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/rsyslog-8.22.0=.
-fstack-protector-strong -Wformat -Werror=format-security -W -Wall
-Wformat-security -Wshadow -Wcast-align -Wpointer-arith
-Wmissing-format-attribute -g -c ommysql.c  -fPIC -DPIC -o
.libs/ommysql_la-ommysql.o
gcc: error: .specs: No such file or directory


Looking a bit closer, this is a bug in mysql_config, which injects bogus
build flags.

# mysql_config --cflags
# mysql_config --cflags
-I/usr/include/mysql -fdebug-prefix-map=/build/mysql-5.7-Q0jPG6/mysql-5.7-5.7.16=. .specs -fabi-version=2 -fno-omit-frame-pointer -fno-expensive-optimizations

Marking as RC, as this breaks the build for other packages.



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libmysqlclient-dev depends on:
ii  libmysqlclient20  5.7.16-1
ii  zlib1g-dev        1:1.2.8.dfsg-2+b3

libmysqlclient-dev recommends no packages.

libmysqlclient-dev suggests no packages.

-- no debconf information



More information about the pkg-mysql-maint mailing list