Subject: [lorenl@alzatex.com: kdebase not finding db4]
To: None <tech-pkg@netbsd.org>
From: Loren M. Lang <lorenl@alzatex.com>
List: tech-pkg
Date: 02/24/2005 23:20:51
This is a message I originally sent to netbsd-users, but I think that
that was probably the wrong list. My problem is that I can't install
kdebase3 from the latest version of pkgsrc-2004Q4 because it can't find
db4 which is installed correctly in /usr/pkg/lib. I know because I can
compile it by hand and it works.
----- Forwarded message from "Loren M. Lang" <lorenl@alzatex.com> -----
Date: Wed, 23 Feb 2005 22:47:17 -0800
From: "Loren M. Lang" <lorenl@alzatex.com>
To: netbsd-users@netbsd.org
Subject: kdebase not finding db4
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=
II_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -L/u=
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 libkxftconfig.la .=
./../kcontrol/krdb/libkrdb.la -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 libdb4.so 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=
TL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -L/usr/pkg/qt3/lib -L/u=
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 kcm_fonts.la -rpath /usr/pkg/lib/kde3 -R/usr/pkg/lib -m=
odule -avoid-version -no-undefined fonts.lo libkxftconfig.la ../../kcontrol=
/krdb/libkrdb.la -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.
--=20
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: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C
=20
----- End forwarded message -----
--=20
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: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C
=20