httpd 2.2 compile funniness

Noticed a few days ago that Apache httpd 2.2 was released, so I grabbed a copy and went through the usual build/compile process.
Everything was going pretty smoothly for a while, then ground to a screeching halt with:

/usr/local/apache2/apr/build-1/libtool –silent –mode=link gcc -g -O2 -pthread -o htpasswd htpasswd.lo -lm /home/eugenem/Temporary/ServerStuff/Apache/httpd-2.2.0/srclib/pcre/libpcre.la /usr/local/apache2/apr-util/lib/libaprutil-1.la -lgdbm -lmysqlclient_r -lexpat /usr/local/apache2/apr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
/usr/local/apache2/apr-util/lib/libaprutil-1.so: undefined reference to `apr_dbd_mysql_driver’
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1

Not entirely sure why apr_dbd_mysql_driver isn’t found in libaprutil. Think I might have to go back and see what compile options there are for apr-util. Perhaps something didn’t get compiled into it for some reason.


Discover more from Imablog

Subscribe to get the latest posts sent to your email.

2 Replies to “httpd 2.2 compile funniness”

  1. After searching on google, and finding nothing, I came up with my own solution: Look in srclib/apr-util/include/apu.h after running ./configure and set “#define APU_HAVE_MYSQL 1” to “#define APU_HAVE_MYSQL 0”. Run make clean and make again, and everything works fine probably 🙂

  2. Actually, in my case it was forgetting to run buildconf after installing the apr_dbd_mysql.c file. I believe APU_HAVE_MYSQL gets set correctly if you configure with –with-mysql, but even so it won’t compile the driver unless configure knows it is there.

Comments are closed.