Subject: kdebase not finding db4
To: None <>
From: Loren M. Lang <>
List: netbsd-users
Date: 02/23/2005 22:47:17
I am reinstalling kde3 after it mysteriously disappeared a few days ago.
I'm using pkgsrc-2004Q4 to install it with.  While kdebase3 was
building, it failed to finish linking some of it's executables with an
error message saying it couldn't find the db4 library.  The latest
version of db4 is installing in /usr/pkg/lib and seems to be installed
correctly.  One of the commands that failed was:

/bin/sh ../../libtool --silent --mode=3Dlink --tag=3DCXX c++   -Wnon-virtua=
l-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DND=
EBUG -DNO_DEBUG -O2 -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/qt3/in=
clude -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -I/usr/include/krb5 =
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASC=
sr/pkg/qt3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib =
-Wl,-R/usr/pkg/qt3/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o kcm_fonts.l=
a -rpath /usr/pkg/lib/kde3  -R/usr/pkg/lib -module -avoid-version -L/usr/X1=
1R6/lib -L/usr/pkg/qt3/lib -L/usr/pkg/lib  -L/usr/pkg/qt3/lib -L/usr/pkg/li=
b -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/qt3/lib -L/us=
r/X11R6/lib -Wl,-R/usr/X11R6/lib -no-undefined  fonts.lo .=
./../kcontrol/krdb/ -lkdeui -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lf=
ontconfig -L/usr/pkg/lib/samba -Wl,-R/usr/pkg/lib/samba -Wl,-E -lintl

The line includes -L/usr/pkg/lib and -Wl,-R/usr/pkg/lib so I don't know
why it can't find which is sitting in that directory.  Looking
at ../../libtool, it looks like a simple wrapper that calls
/usr/pkgsrc/x11/kdebase3/work.nbsd/.wrapper/bin/shlibtool.  So I edited
that file to print out the command it executes just before it runs it.
The command was:

/usr/pkg/bin/shlibtool --silent --mode=3Dlink --tag=3DCXX c++ -Wnon-virtual=
-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDE=
BUG -DNO_DEBUG -O2 -O2 -I/usr/pkgsrc/x11/kdebase3/work.nbsd/.buildlink/incl=
ude -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkgsrc/x11/kdebase3/w=
ork.nbsd/.buildlink/include/freetype2 -I/usr/include/krb5 -fno-exceptions -=
fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_S=
sr/pkgsrc/x11/kdebase3/work.nbsd/.buildlink/lib -Wl,-R/usr/pkg/lib -Wl,-R/u=
sr/pkg/qt3/lib -L/usr/pkgsrc/x11/kdebase3/work.nbsd/.x11-buildlink/lib -Wl,=
-R/usr/X11R6/lib -o -rpath /usr/pkg/lib/kde3 -R/usr/pkg/lib -m=
odule -avoid-version -no-undefined fonts.lo ../../kcontrol=
/krdb/ -lkdeui -lfontconfig -L/usr/pkgsrc/x11/kdebase3/work.nbsd/=
.buildlink/lib/samba -Wl,-R/usr/pkg/lib/samba -Wl,-E -lintl

This line has the option -Wl,-R/usr/pkg/lib, but is missing -L/usr/pkg/lib
and I can't figure out where it's disappearing.  If I run this command
by hand and add that option, it succeeds and I can continue the build,
but this is a slow progress since there are so many programs in kdebase3
using db4 and each one fails identically.

I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key:
Fingerprint: B3B9 D669 69C9 09EC 1BCD  835A FAF3 7A46 E4A3 280C