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
(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.
*** Bug 700014 has been marked as a duplicate of this bug. ***
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.