[Modules] Build of mod_dbi_pool fails on Debian Etch (amd64)

Lars Bahner bahner at linpro.no
Fri Dec 14 06:39:29 EST 2007


Having installed the libdbi0, libdbi0-dev, libdbd-mysql packages from
libdbi.sf.net I set about trying to make mod-dbi-pool building files as
shown in the attachment.

Is this because apache2-dev is of version 2.2, and not 2.0 or do I need
to investigate further?

Kind regards,
-- 
Lars Bahner, system consultant
Linpro AS - http://www.linpro.no/
Phone: (+47) 21 54 41 34; GPG: 0xBA16087C
Nihil est sine ratione, cur potius sit quam non sit.
-------------- next part --------------
dh_testdir
# Add here commands to configure the package.
./configure --with-dbi=/usr --with-apxs=/usr/bin/apxs2 --host=x86_64-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info CFLAGS="-Wall -g -O2" LDFLAGS="-Wl,-z,defs"
configure: creating config.nice
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-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 x86_64-linux-gnu-gcc accepts -g... yes
checking for x86_64-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-linux-gnu-gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by x86_64-linux-gnu-gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... x86_64-linux-gnu-gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for x86_64-linux-gnu-g++... x86_64-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-linux-gnu-g++... gcc3
checking how to run the C++ preprocessor... x86_64-linux-gnu-g++ -E
checking for x86_64-linux-gnu-g77... no
checking for x86_64-linux-gnu-f77... no
checking for x86_64-linux-gnu-xlf... no
checking for x86_64-linux-gnu-frt... no
checking for x86_64-linux-gnu-pgf77... no
checking for x86_64-linux-gnu-fort77... no
checking for x86_64-linux-gnu-fl32... no
checking for x86_64-linux-gnu-af77... no
checking for x86_64-linux-gnu-f90... no
checking for x86_64-linux-gnu-xlf90... no
checking for x86_64-linux-gnu-pgf90... no
checking for x86_64-linux-gnu-epcf90... no
checking for x86_64-linux-gnu-f95... no
checking for x86_64-linux-gnu-fort... no
checking for x86_64-linux-gnu-xlf95... no
checking for x86_64-linux-gnu-ifc... no
checking for x86_64-linux-gnu-efc... no
checking for x86_64-linux-gnu-pgf95... no
checking for x86_64-linux-gnu-lf95... no
checking for x86_64-linux-gnu-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse nm output from x86_64-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for x86_64-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-linux-gnu-strip... no
checking for strip... strip
checking if x86_64-linux-gnu-gcc static flag  works... yes
checking if x86_64-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-linux-gnu-gcc option to produce PIC... -fPIC
checking if x86_64-linux-gnu-gcc PIC flag -fPIC works... yes
checking if x86_64-linux-gnu-gcc supports -c -o file.o... yes
checking whether the x86_64-linux-gnu-gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by x86_64-linux-gnu-g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-linux-gnu-g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-linux-gnu-g++ option to produce PIC... -fPIC
checking if x86_64-linux-gnu-g++ PIC flag -fPIC works... yes
checking if x86_64-linux-gnu-g++ supports -c -o file.o... yes
checking whether the x86_64-linux-gnu-g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking for Apache 2.0 version >= 2.0.40... yes
checking for dbi Includes in /usr/include... found it! Use --with-dbi to specify another.
checking for libdbi library in /usr/lib... yes
checking for dbi_version in -ldbi... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/mod_dbi_pool_config.h
config.status: executing depfiles commands
---
Configuration summary for mod_dbi_pool

   * Apache modules directory = /usr/lib/apache2/modules
   * libdbi Includes = -I/usr/include
   * libdbi Libs = -L/usr/lib -ldbi

---
dh_testdir
# Add here commands to compile the package.
/usr/bin/make
make[1]: Entering directory `/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0'
Making all in src
make[2]: Entering directory `/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src'
if /bin/sh ../libtool --mode=compile x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include    -Wall -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include -Wall -g -O2 -MT libmod_dbi_pool_la-mod_dbi_pool.lo -MD -MP -MF ".deps/libmod_dbi_pool_la-mod_dbi_pool.Tpo" -c -o libmod_dbi_pool_la-mod_dbi_pool.lo `test -f 'mod_dbi_pool.c' || echo './'`mod_dbi_pool.c; \
	then mv -f ".deps/libmod_dbi_pool_la-mod_dbi_pool.Tpo" ".deps/libmod_dbi_pool_la-mod_dbi_pool.Plo"; else rm -f ".deps/libmod_dbi_pool_la-mod_dbi_pool.Tpo"; exit 1; fi
mkdir .libs
 x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include -Wall -g -O2 -MT libmod_dbi_pool_la-mod_dbi_pool.lo -MD -MP -MF .deps/libmod_dbi_pool_la-mod_dbi_pool.Tpo -c mod_dbi_pool.c  -fPIC -DPIC -o .libs/libmod_dbi_pool_la-mod_dbi_pool.o
mod_dbi_pool.c: In function 'dbipool_open':
mod_dbi_pool.c:350: warning: dereferencing type-punned pointer will break strict-aliasing rules
 x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -Wall -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include -Wall -g -O2 -MT libmod_dbi_pool_la-mod_dbi_pool.lo -MD -MP -MF .deps/libmod_dbi_pool_la-mod_dbi_pool.Tpo -c mod_dbi_pool.c -o libmod_dbi_pool_la-mod_dbi_pool.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link x86_64-linux-gnu-gcc  -Wall -g -O2  -Wl,-z,defs -o libmod_dbi_pool.la -rpath /usr/lib -L/usr/lib -ldbi libmod_dbi_pool_la-mod_dbi_pool.lo  
x86_64-linux-gnu-gcc -shared  .libs/libmod_dbi_pool_la-mod_dbi_pool.o  -L/usr/lib /usr/lib/libdbi.so  -Wl,-z -Wl,defs -Wl,-soname -Wl,libmod_dbi_pool.so.0 -o .libs/libmod_dbi_pool.so.0.0.0
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbi_pool_hooks':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:326: undefined reference to `ap_hook_pre_config'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbi_pool_post_config':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:250: undefined reference to `apr_pool_userdata_get'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:257: undefined reference to `ap_log_perror'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:265: undefined reference to `ap_log_perror'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:252: undefined reference to `apr_pool_cleanup_null'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:252: undefined reference to `apr_pool_userdata_set'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:260: undefined reference to `ap_log_perror'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:273: undefined reference to `apr_hash_first'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:305: undefined reference to `apr_hash_set'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:274: undefined reference to `apr_hash_next'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:275: undefined reference to `apr_hash_this'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:277: undefined reference to `apr_reslist_create'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:284: undefined reference to `ap_log_perror'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:308: undefined reference to `ap_add_version_component'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbipool_construct':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:222: undefined reference to `ap_log_perror'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:203: undefined reference to `ap_log_perror'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbi_pool_pre_config':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:320: undefined reference to `apr_hash_make'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbipool_close':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:362: undefined reference to `apr_hash_get'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbipool_open':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:348: undefined reference to `apr_hash_get'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:350: undefined reference to `apr_reslist_acquire'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `create_new_conf':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:51: undefined reference to `apr_palloc'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:64: undefined reference to `apr_hash_set'
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:65: undefined reference to `ap_log_perror'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `get_or_create_dbi_conf':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:88: undefined reference to `apr_hash_get'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbi_pool_hooks':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:327: undefined reference to `ap_hook_post_config'
.libs/libmod_dbi_pool_la-mod_dbi_pool.o: In function `dbipool_close':
/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src/mod_dbi_pool.c:363: undefined reference to `apr_reslist_release'
collect2: ld returned 1 exit status
make[2]: *** [libmod_dbi_pool.la] Error 1
make[2]: Leaving directory `/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/stat/home0/bahner/src/vhost_dbi/mod_dbi_pool-0.4.0'
make: *** [build-stamp] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.outoforder.cc/pipermail/modules/attachments/20071214/5bb1ead0/attachment.bin 


More information about the Modules mailing list