Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 682020

Summary: www-servers/lighttpd-1.4.53 and dev-db/mariadb-10.2 should depend on dev-db/mariadb-connector-c
Product: Gentoo Linux Reporter: nic <nic>
Component: Current packagesAssignee: Herb Miller Jr. <herb>
Status: RESOLVED FIXED    
Severity: normal CC: maintainer-needed, mysql-bugs, proxy-maint, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description nic 2019-03-29 15:11:10 UTC
www-servers/lighttpd-1.4.53 fails to compile with dev-db/mariadb-10.2.22-r1,


 /bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -O2 -pipe -Wall -W -Wshadow -pedantic -module -export-dynamic -avoid-version -Wl,-O1 -Wl,--as-needed -o mod_vhostdb_mysql.la -rpath /usr/lib64/lighttpd mod_vhostdb_mysql_la-mod_vhostdb_mysql.lo -lmariadb -lpthread -lz -ldl -lm -lssl -lcrypto
 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmariadb
 collect2: error: ld returned 1 exit status
 make[3]: *** [Makefile:1924: mod_mysql_vhost.la] Error 1



Package should depend on dev-db/mariadb-connector-c if mariadb >= 10.2 to provide the required mariadb_config

https://archives.gentoo.org/gentoo-dev-announce/message/3fa80f79b03921ea0f6ad304ff93fe7e


note that lighttpd-1.4.51 complies fine with mariadb-10.2 -- lighttpd made changes with the 1.4.53 release https://redmine.lighttpd.net/issues/2925


Thank you
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-03-29 15:25:19 UTC
(In reply to nic from comment #0)
> www-servers/lighttpd-1.4.53 fails to compile with dev-db/mariadb-10.2.22-r1,
> 
> 
>  /bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -O2
> -pipe -Wall -W -Wshadow -pedantic -module -export-dynamic -avoid-version
> -Wl,-O1 -Wl,--as-needed -o mod_vhostdb_mysql.la -rpath /usr/lib64/lighttpd
> mod_vhostdb_mysql_la-mod_vhostdb_mysql.lo -lmariadb -lpthread -lz -ldl -lm
> -lssl -lcrypto
>  /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: cannot find -lmariadb
>  collect2: error: ld returned 1 exit status
>  make[3]: *** [Makefile:1924: mod_mysql_vhost.la] Error 1
> 
> 
> 
> Package should depend on dev-db/mariadb-connector-c if mariadb >= 10.2 to
> provide the required mariadb_config
> 
> https://archives.gentoo.org/gentoo-dev-announce/message/
> 3fa80f79b03921ea0f6ad304ff93fe7e
> 
> 
> note that lighttpd-1.4.51 complies fine with mariadb-10.2 -- lighttpd made
> changes with the 1.4.53 release https://redmine.lighttpd.net/issues/2925


Here's the problem with depending on mariadb-connector-c and this package.. it provides libmariadb.pc while dev-db/mariadb provides mariadb.pc which is what the package is looking for.

If the dependency change is made, the autotools will need to look for libmariadb.pc instead to be consistent.

The other option is for mariadb to not install a mariadb.pc file but don't know what kind of headaches will come in the future.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-11-15 09:21:48 UTC
*** Bug 700014 has been marked as a duplicate of this bug. ***
Comment 3 Herb Miller Jr. 2021-02-06 14:16:21 UTC
As of lighttpd-1.4.58, via commit https://github.com/gentoo/gentoo/commit/6ce9a250, we now pull in database support via libdbi, which depends on dev-db/mariadb-connector-c, so this bug is addressed by the version bump.