mod_auth_mysql does currently not work with Apache 2.2.x. mod_authn_dbd is its successor. Unfortunately there is no option in current Apache 2.2.x ebuilds (although masked) to compile Apache with support for MySQL. Please, include support for MySQL in dev-libs/apr-util and/or net/www/apache.
Created attachment 83263 [details] apr-util-1.2.6.ebuild APR-Util ebuild with MySQL support. The line with wget is rather an ugly hack.
Created attachment 83264 [details] apr-1.2.6.ebuild To be complete, a copy of apr-1.2.2 named apr-1.2.6.
When I started working on putting apr 1.2 into the tree, I tested this. I couldn't get MySQL to work correctly (IIRC it wouldn't even compile). Does mysql support actually *work* for you? I put the mysql support aside to get apache 2.2 in the tree. I may look into this further at some point, but it may be awhile.
It does compile with the above ebuilds. (Please see http://svn.ossdl.de/all/ossdl/ for recent ones.) Unfortunately, when activating "mysql" or "sqlite3" (I did not test plain "sqlite", yet) as DBDriver Apache throws SEGFAULTs. Someone has already reported this to Apache's mailing lists: http://mail-archives.apache.org/mod_mbox/httpd-users/200602.mbox/%3C1DAD734F-5B5D-4EEB-A476-1386B2E1F4AB@automaticrootbeer.com%3E
BlackBox / # emerge --info Portage 2.1.2_rc2-r2 (default-linux/x86/2006.1/server, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3 i586) ================================================================= System uname: 2.6.18-gentoo-r3 i586 Geode(TM) Integrated Processor by AMD PCS Gentoo Base System version 1.12.6 Last Sync: Mon, 27 Nov 2006 06:50:01 +0000 distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=k6-2 -Os -mmmx -m3dnow -pipe -fomit-frame-pointer -mfpmath=387" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=k6-2 -Os -mmmx -m3dnow -pipe -fomit-frame-pointer -mfpmath=387 -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 / acpi alsa apache2 berkdb bzip2 caps cdinstall clamav crypt cups dedicated elibc_glibc ftp gd gpm iconv imap input_devices_keyboard input_devices_mouse jabber java javascript jpeg jpeg2k kernel_linux ldap linguas_de mbox mmx mp3 mysql mysqli ncurses nls nptl odbc offensive pam pcre php png postgres readline samba sasl session slang snmp spell ssl symlink tcpd threads tiff truetype unicode usb userland_GNU vhosts video_cards_cyrix video_cards_fbdev video_cards_nsc video_cards_v4l video_cards_vesa video_cards_vga vorbis xinetd xml zlib" Unset: CTARGET, INSTALL_MASK
I don't think we're changing apr/apr-util just now to support apr_dbd_mysql. Maybe we'll look at it once apache-2.2 is stable.
mysql support added to apr-util-1.2.8-r1 ...
... therefore resolved fixed