Something I notice:
==========================================
YOURS:
Rebuilding build system......
Using autoreconf to rebuild build system
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
==========================================
MINE:
Rebuilding build system......
Using autoreconf to rebuild build system
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:9: run info '(automake)Extending aclocal'
/usr/share/aclocal/imlib.m4:9: or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:9: run info '(automake)Extending aclocal'
/usr/share/aclocal/imlib.m4:9: or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
checking build system type... configure: WARNING: dot not found - will not generate
graphics for doxygen documentation
i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
==========================================
I see those imlib.m4 messages in all the Trinity build scripts I run. I don't think
that is the problem, but probably should be fixed.
I notice in your log you run autogen.sh, ./configure, then make.
I was running autogen.sh and then make. I'm doing that in the libcaldav build script
and the package builds without errors. Regardless, I modifed my libcarddav build script:
./autogen.sh
./configure \
--prefix=${PREFIX} \
--mandir=/usr/share/man
make || exit 1
Still FTBFS.
==========================================
YOURS:
Making all in src
make[3]: Entering directory `/build/buildd/libcarddav-0.6.2/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I.. -g -O3 -O2 -Wall
-D_REENTRANT -MT carddav.lo -MD -MP -MF .deps/carddav.Tpo -c -o carddav.lo carddav.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I.. -I.. -g -O3 -O2 -Wall -D_REENTRANT -MT carddav.lo -MD -MP
-MF .deps/carddav.Tpo -c carddav.c -fPIC -DPIC -o .libs/carddav.o
get-carddav-report.h:34: warning: 'carddav_dirlist' declared 'static' but
never defined
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I.. -I.. -g -O3 -O2 -Wall -D_REENTRANT -MT carddav.lo -MD -MP
-MF .deps/carddav.Tpo -c carddav.c -o carddav.o >/dev/null 2>&1
mv -f .deps/carddav.Tpo .deps/carddav.Plo
...
==========================================
MINE:
Making all in src
make[2]: Entering directory `/dev/shm/libcarddav-0.6.2/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I.. -O2 -Wall -D_REENTRANT
-MT carddav.lo -MD -MP -MF .deps/carddav.Tpo -c -o carddav.lo carddav.c
../libtool: line 827: X--tag=CC: command not found
../libtool: line 860: libtool: ignoring unknown tag : command not found
../libtool: line 827: X--mode=compile: command not found
../libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command
not found
../libtool: line 995: *** Future versions of Libtool will require --mode=MODE be
specified.: command not found
../libtool: line 1138: Xgcc: command not found
../libtool: line 1138: X-DHAVE_CONFIG_H: command not found
../libtool: line 1138: X-I.: command not found
../libtool: line 1138: X-I..: command not found
../libtool: line 1138: X-pthread: command not found
../libtool: line 1138: X-I/usr/include/glib-2.0: No such file or directory
../libtool: line 1138: X-I/usr/lib/glib-2.0/include: No such file or directory
../libtool: line 1138: X-I..: command not found
../libtool: line 1138: X-I..: command not found
../libtool: line 1138: X-O2: command not found
../libtool: line 1138: X-Wall: command not found
../libtool: line 1138: X-D_REENTRANT: command not found
../libtool: line 1138: X-MT: command not found
../libtool: line 1138: Xcarddav.lo: command not found
../libtool: line 1138: X-MD: command not found
../libtool: line 1138: X-MP: command not found
../libtool: line 1138: X-MF: command not found
../libtool: line 1138: X.deps/carddav.Tpo: No such file or directory
../libtool: line 1138: X-c: command not found
../libtool: line 1191: Xcarddav.lo: command not found
../libtool: line 1196: libtool: compile: cannot determine name of library object from
`': command not found
make[2]: *** [carddav.lo] Error 1
==========================================
All of those "../libtool...command not found" errors in MINE. A wild guess here:
a path problem?