Subject: Re: kdebase3 fails to build
To: None <tech-pkg@NetBSD.org>
From: Sverre Froyen <sverre@viewmark.com>
List: tech-pkg
Date: 03/13/2004 11:06:47
Looks like the cuplrit is somewhere in rhe NetBSD X11 build system or
xsrc. The bogus like originates in /usr/X11R6/bin/fontconfig-config as
/usr/X11R6/bin/fontconfig-config --libs
@hardcode_libdir_flag_spec@ -L/usr/X11R6/lib -lfontconfig
On Saturday 13 March 2004 10:30, Sverre Froyen wrote:
> Hi,
>
> I'm having problems building kde3 on i386 (pkgsrc current as of this
> morning, src and xsrc from 9 March).
>
> The build fails with the error:
>
> /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 -D_GNU_SOURCE
> -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 kfontinst -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
> -R/usr/X11R6/lib -R/usr/pkg/lib Main.o @hardcode_libdir_flag_spec@
> -L/usr/X11R6/lib -lfontconfig -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
> -lfreetype -lz -lkdecore ../lib/libkfontinst.la -Wl,-E -lintl
> g++: @hardcode_libdir_flag_spec@: No such file or directory
> gmake[4]: *** [kfontinst] Error 1
> gmake[4]: Leaving directory
> `/usr/pkgsrc/x11/kdebase3/work.i386/kdebase-3.2.1/kcontrol/kfontinst/
>kfontinst'
>
> which is not surprising
> since /usr/pkgsrc/x11/kdebase3/work.i386/kdebase-3.2.1/Makefile
> contains the line
>
> LIBFONTCONFIG_LIBS = @hardcode_libdir_flag_spec@ -L/usr/X11R6/lib
> -lfontconfig
>
> which is doubly strange since my /etc/mk.conf contains
>
> PREFER_PKGSRC+=fontconfig
>
> config.log indicated that configure was invoked as
>
> $ ./configure --with-ssl-dir=/usr --with-ldap=/usr/pkg --without-pam
> --without-cdparanoia --without-lame --without-vorbis --without-java
> --without-motif --datadir=/usr/pkg/share/kde
> --with-qt-dir=/usr/pkg/qt3
> --with-extra-includes=/usr/pkg/include:/usr/X11R6/include:/usr/pkg/in
>clude/freetype2 --disable-rpath --disable-debug --with-xinerama
> --with-libintl-prefix=/usr --host=i386--netbsdelf --prefix=/usr/pkg
> --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
>
> I'll keep looking but would greatly appreciate any pointers.
>
> Thanks,
> Sverre