pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

courier-imap / couriertcpd libtool failure



Under Ubuntu Linux Karmic x86_64, I'm getting the following problem doing
"make package" under mail/courier-imap:

--------
...
mv -f .deps/tcpremoteinfo.Tpo .deps/tcpremoteinfo.Po
/bin/bash ./libtool --tag=CC   --mode=link gcc  -I./.. -I.. -Wall -Wno-error 
-Wno-format -fno-builtin -I/usr/include -I/u/home/brian/pkg/include/db4 
-I/u/home/brian/pkg/include -static -L/usr/lib64 -Wl,-R/usr/lib64 
-Wl,-R/u/home/brian/pkg/lib -o couriertcpd argparse.o tcpd.o tcpdaccess.o 
tcpremoteinfo.o libspipe.la ../rfc1035/librfc1035.a ../bdbobj/libbdbobj.la 
../liblock/liblock.la ../numlib/libnumlib.la ../waitlib/libwaitlib.a 
../soxwrap/libsoxwrap.a ../md5/libmd5.la ../random128/librandom128.la -Wl,-ldb  
libtool: link: gcc -I./.. -I.. -Wall -Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib -o couriertcpd argparse.o tcpd.o 
tcpdaccess.o tcpremoteinfo.o -Wl,-ldb  ./.libs/libspipe.a 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib 
../rfc1035/librfc1035.a ../bdbobj/.libs/libbdbobj.a ../liblock/.libs/liblock.a 
../numlib/.libs/libnumlib.a ../waitlib/libwaitlib.a ../soxwrap/libsoxwrap.a 
../md5/.libs/libmd5.a ../random128/.libs/librandom128.a
/usr/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
make[1]: *** [couriertcpd] Error 1
make[1]: Leaving directory 
`/v/brian/build/pkgsrc/net/couriertcpd/work/courier-0.58.0/tcpd'
make: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /u/home/brian/build/pkgsrc/net/couriertcpd
*** Error code 1

Stop.
bmake: stopped in /u/home/brian/build/pkgsrc/net/couriertcpd
*** Error code 1

Stop.
bmake: stopped in /u/home/brian/build/pkgsrc/mail/courier-imap
--------

However, db4 has clearly been built, because it's visible in pkg/lib:

$ ls /u/home/brian/pkg/lib/
libdb4-4.7.a          libdb4_cxx.a         libpcreposix.la
libdb4-4.7.la         libdb4_cxx.so        libpcreposix.so
libdb4-4.7.so         libdb4.so            libpcreposix.so.0
libdb4-4.7.so.7       libpcre.a            libpcreposix.so.0.0.0
libdb4-4.7.so.7.0.25  libpcrecpp.a         libpcre.so
libdb4-4.so           libpcrecpp.la        libpcre.so.0
libdb4.a              libpcrecpp.so        libpcre.so.0.0.1
libdb4_cxx-4.7.a      libpcrecpp.so.0      perl5
libdb4_cxx-4.7.la     libpcrecpp.so.0.0.0  pkgconfig
libdb4_cxx-4.7.so     libpcre.la
libdb4_cxx-4.so       libpcreposix.a

and also in my packages directory:

courier-maildir-0.58.0.tgz  f2c-20090411nb4.tgz         pcre-8.01.tgz
db4-4.7.25.3.tgz            libtool-base-2.2.6bnb3.tgz  perl-5.10.1.tgz
digest-20080510.tgz         pax-20080110.tgz            tnftp-20070806.tgz

It looks like couriertcpd is trying to link against -ldb rather than -ldb4.

Looking in net/couriertcpd/work I see .wrapper/tmp/transform.sed which looks
like it should convert -ldb to -ldb4, and I see a lot of evidence of db4
being used:

--------
brian@zino:~/build/pkgsrc/net/couriertcpd$ grep db4 work/.work.log  | wc -l
1549
brian@zino:~/build/pkgsrc/net/couriertcpd$ grep -- -ldb4 work/.work.log  | wc 
-l 
16
brian@zino:~/build/pkgsrc/net/couriertcpd$ grep -- -ldb4 work/.work.log
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/gcc -o conftest 
-Wno-error -Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib conftest.c 
-L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib  -ldb4
<.> /u/home/brian/pkg/bin/libtool --tag=CXX --mode=link g++ -Wno-error 
-Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include -static 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib -o testbdb testbdb.o libbdbobj.la 
-ldb4 -L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib 
[*] /v/brian/build/pkgsrc/net/couriertcpd/work/.wrapper/bin/g++ 
/v/brian/build/pkgsrc/net/couriertcpd/work/.wrapper/bin/g++ -Wno-error 
-Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib -o testbdb testbdb.o 
./.libs/libbdbobj.a -L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib 
-ldb4
==> Reordering libraries:  -ldb4
<.> /v/brian/build/pkgsrc/net/couriertcpd/work/.gcc/bin/g++ -Wno-error 
-Wno-format -fno-builtin 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include/db4 
-I/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/include 
-Wl,-R/usr/lib64 -Wl,-R/u/home/brian/pkg/lib -o testbdb testbdb.o 
./.libs/libbdbobj.a -L/v/brian/build/pkgsrc/net/couriertcpd/work/.buildlink/lib 
-ldb4
brian@zino:~/build/pkgsrc/net/couriertcpd$ 
--------

So it looks like just this one step is broken. Possibly the wrapper isn't
being invoked for libtool? I haven't got my head round how this wrapper stuff
works yet though.

Any suggestions for what to do next gratefully received.

Thanks,

Brian.

P.S. Here is my mk.conf, which I tweaked slightly to USE_DESTDIR=yes as I'm
attempting to build packages as a non-root user.

$ cat ~/pkg/etc/mk.conf
# Example /u/home/brian/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Sat Mar 13 11:25:48 GMT 2010

.ifdef BSD_PKG_MK       # begin pkgsrc settings


UNPRIVILEGED=           yes
PKG_DBDIR=              /u/home/brian/pkg/var/db/pkg
LOCALBASE=              /u/home/brian/pkg
VARBASE=                /u/home/brian/pkg/var
PKG_TOOLS_BIN=          /u/home/brian/pkg/sbin
PKGMANDIR=              man
PACKAGES=               /u/home/brian/build/packages
DISTDIR=                /u/home/brian/build/distfiles
USE_DESTDIR=            yes

TOOLS_PLATFORM.sh?=             /bin/bash

.endif                  # end pkgsrc settings


Home | Main Index | Thread Index | Old Index