[debian-mysql] Bug#855244: libmariadbclient-dev: hardcoded -lmysqlclient, package not providing it though

Niels Thykier niels at thykier.net
Sat Mar 4 17:27:00 UTC 2017


On Wed, 15 Feb 2017 22:39:04 +0100 Michael Prokop <mika at debian.org> wrote:
> Package: libmariadbclient-dev
> Version: 10.1.21-5
> Severity: serious
> 
> [...]
> 
> % grep Libs /usr/share/pkgconfig/mariadb.pc
> Libs: -L${libdir} -lmysqlclient -lpthread -lz -lm -ldl
> % grep mysqlclient /usr/bin/mysql_config
> libs="-L$pkglibdir  -lmysqlclient -lpthread -lz -lm -ldl"
> 
> The hardcoded -lmysqlclient is wrong in this situation though:
> 
> [...]
> % gcc -o demo demo.c $(pkg-config --cflags mariadb) $(pkg-config --libs mariadb)
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: error: ld returned 1 exit status
> 
> % gcc -o demo demo.c $(mysql_config --cflags) $(mysql_config --libs)
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: error: ld returned 1 exit status
> 
> [...]
> 
> As an alternative/workaround installing the
> default-libmysqlclient-dev + libmariadbclient-dev-compat packages
> also fixes the problem with -lmysqlclient usage.
> 
> This clearly shouldn't reach the stable stretch release as is, IMO.
> 
> regards,
> -mika-
> 
> 

Hi MariaDB maintainers,

Any news on this bug? :)

Thanks,
~Niels



More information about the pkg-mysql-maint mailing list