Subject: Re: I found my 'missing' .la files
To: walt <wa1ter@myrealbox.com>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-pkg
Date: 02/21/2004 08:10:19
On February 19, 2004 10:30 am, walt wrote:
> Anyway, to find the source of your 'missing' .la file just grep thru
> all the other .la files in /usr/pkg/ for the name of your missing
> file. When you figure out which are the offending ones just re-
> compile those packages which will regenerate the correct .la files
> for you.
I have been having a different but related problem. I am rebuilding KDE and
every package stops until I manually intervene. Here is an example:
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG
-DNO_DEBUG -O2 -O2 -DGLX_GLXEXT_LEGACY -I/usr/pkg/include
-I/usr/X11R6/include -fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -L/usr/pkg/qt3/lib -Wl,-R/usr/pkg/qt3/lib
-Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib -o libkdegames.la -rpath /usr/pkg/lib -L/usr/X11R6/lib
-L/usr/pkg/qt3/lib -L/usr/pkg/lib -L/usr/pkg/qt3/lib -Wl,-R/usr/pkg/qt3/lib
-Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib -no-undefined -version-info 3:0:2 kcarddialog.lo
kstdgameaction.lo kgamemisc.lo kchatbase.lo kchat.lo kchatdialog.lo
kgameprogress.lo kcanvasrootpixmap.lo kgamelcd.lo highscore/libkhighscore.la
kgame/libkgame.la kgame/dialogs/libkgamedialogs.la -lkio -lintl
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libkdeui.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libkdesu.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libkdecore.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libDCOP.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libart_lgpl_2.la' seems to
be moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libkdefx.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libGL.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libXft.la' seems to be
moved
shlibtool: link: warning:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libfreetype.la' seems to
be moved
grep: /usr/obj/games/kdegames3/work.i386/.buildlink/lib/libfontconfig.la: No
such file or directory
sed: /usr/obj/games/kdegames3/work.i386/.buildlink/lib/libfontconfig.la: No
such file or directory
shlibtool: link:
`/usr/obj/games/kdegames3/work.i386/.buildlink/lib/libfontconfig.la' is not a
valid libtool archive
gmake[3]: *** [libkdegames.la] Error 1
The fix is to symlink /usr/pkg/lib/libfontconfig.la
to /usr/obj/games/kdegames3/work.i386/.buildlink/lib/libfontconfig.la
(substitute your own directories where things are kept) and continue the
build. I checked the buildlink2.mk file in .../fonts/fontconfig/ and it has
this line:
BUILDLINK_FILES.fontconfig+= lib/libfontconfig.*
Seems like it should work assuming that wildcards work in this context. I
can't figure out why this doesn't work.
--
D'Arcy J.M. Cain <darcy@netbsd.org>
http://www.NetBSD.org/