You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Scott Sanders <sc...@jssjr.com> on 2008/01/30 17:20:19 UTC

Problems building apr_dbd_mysql.so

I am having problems building apr_dbd_mysql.so on a Fedora Core 5 machine.

I downloaded apr-1.2..12, unpacked and ran:
./configure && make && sudo make install

Then I downloaded apr-util-1.2.12, unpacked and ran:
./configure --with-mysql --with-apr=../apr-1.2.12/ --without-pgsql
--without-sqlite2 --without-sqlite3
make && sudo make install

Everything builds properly, but when I run "nm dbd/apr_dbd_mysql.o" I do not
get any output. It appears mysql was located fine during configure, so I am
stumped. Any insight would be greatly appreciated.

-Scott

-- Configure output --

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.2.12
checking for chosen layout... apr-util
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... yes
  setting CPP to "gcc -E"
  adding "-pthread" to CFLAGS
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE"
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking for default DBM... sdbm (default)
checking for mysql_config... /usr/bin/mysql_config
  adding "-I/usr/include/mysql" to CPPFLAGS
  setting LDFLAGS to "-L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt
-lnsl -lm -lpthread"
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking for mysql_init in -lmysqlclient_r... no
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for mysql_init in -lmysqlclient_r... (cached) no
checking Expat 1.95.x... yes
  setting APRUTIL_EXPORT_LIBS to "-lexpat"
  setting APRUTIL_LIBS to "-lexpat"
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for type of inbuf parameter to iconv... char **
checking for iconv.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for CODESET in langinfo.h... yes
checking for library containing crypt... -lcrypt
checking if system crypt() function is threadsafe... no
checking for crypt_r... yes
checking style of crypt_r... struct_crypt_data
  adding "/data/BUILD/apr-1.2.12/libapr-1.la" to APRUTIL_LIBS
  adding "-luuid" to APRUTIL_LIBS
  adding "-lrt" to APRUTIL_LIBS
  adding "-lcrypt" to APRUTIL_LIBS
  adding "-lpthread" to APRUTIL_LIBS
  adding "-ldl" to APRUTIL_LIBS
configure: creating ./config.status
config.status: creating Makefile
config.status: creating export_vars.sh
config.status: creating build/pkg/pkginfo
config.status: creating apr-util.pc
config.status: creating apu-1-config
config.status: creating include/private/apu_select_dbm.h
config.status: creating include/apr_ldap.h
config.status: creating include/apu.h
config.status: creating include/apu_want.h
config.status: creating test/Makefile
config.status: creating include/private/apu_config.h
config.status: include/private/apu_config.h is unchanged
config.status: executing default commands

Re: Problems building apr_dbd_mysql.so

Posted by Scott Sanders <li...@jssjr.com>.
Yes, that was it. MySQL community packages for el3 were installed on this
machines (a FC5 box). Updating to el4 packages fixed it.

Thanks,
-Scott

On 1/30/08, Bojan Smojver <bo...@rexursive.com> wrote:
>
> On Wed, 2008-01-30 at 11:20 -0500, Scott Sanders wrote:
>
> > checking mysql.h usability... yes
> > checking mysql.h presence... yes
> > checking for mysql.h... yes
> > checking for mysql_init in -lmysqlclient_r... no
>
>                              ^^^^^^^^^^^^^^^^^^^^^
> > checking mysql/mysql.h usability... yes
> > checking mysql/mysql.h presence... yes
> > checking for mysql/mysql.h... yes
> > checking for mysql_init in -lmysqlclient_r... (cached) no
>
>                              ^^^^^^^^^^^^^^^^^^^^^
>
> Looks like MySQL libraries aren't being found.
>
> --
> Bojan
>
>

Re: Problems building apr_dbd_mysql.so

Posted by Bojan Smojver <bo...@rexursive.com>.
On Wed, 2008-01-30 at 11:20 -0500, Scott Sanders wrote:

> checking mysql.h usability... yes
> checking mysql.h presence... yes
> checking for mysql.h... yes
> checking for mysql_init in -lmysqlclient_r... no

                             ^^^^^^^^^^^^^^^^^^^^^
> checking mysql/mysql.h usability... yes
> checking mysql/mysql.h presence... yes
> checking for mysql/mysql.h... yes
> checking for mysql_init in -lmysqlclient_r... (cached) no

                             ^^^^^^^^^^^^^^^^^^^^^

Looks like MySQL libraries aren't being found.

-- 
Bojan