Subject: Problems building two packages from pkgsrc
To: None <tech-pkg@netbsd.org>
From: maximum entropy <entropy@tappedin.com>
List: tech-pkg
Date: 01/13/2003 12:52:42
I'm unable to build finance/gnucash or graphics/kdegraphics3.

gnucash fails during configure because it is unable to find
libgtkhtml.  Manually installing www/libgtkhtml didn't help.  I also
tried to modify the Makefile to pull in the necessary buildlink2.mk
file (but I'm not sure I did it right and that didn't help either).
Here is an excerpt:

#Unknown library `gtkhtml'
#Unknown library `gtkhtml'
#checking for main in -lgal... yes
#checking for gtk_html_new in -lgtkhtml... no
#configure: error: Cannot find gtkhtml. See the README and config.log
#for more info.
#*** Error code 1

kdegraphics3 failed during compilation of libkscan with a syntax
error.  The complete error spew is quite long, here is a small
excerpt:

#source='kscandevice.cpp' object='kscandevice.lo' libtool=yes \
#depfile='.deps/kscandevice.Plo' tmpdepfile='.deps/kscandevice.TPlo' \
#depmode=gcc /bin/sh ../admin/depcomp \
#/bin/sh ../libtool --mode=compile --tag=CXX c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkg/include -I/usr/X11R6/qt3/include -I/usr/X11R6/include  -I/usr/pkg/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT   -I/usr/pkg/include -I/usr/X11R6/include  -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -I/usr/pkg/include -I/usr/X11R6/include -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST  -c -o kscandevice.lo `test -f kscandevice.cpp || echo './'`kscandevice.cpp
#c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/include -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink-x11/qt3/include -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink-x11/include -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/include -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink-x11/include -DQT_THREAD_SUPPORT -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/include -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink-x11/include -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/include -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink-x11/include -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -c kscandevice.cpp -Wp,-MD,.deps/kscandevice.TPlo  -fPIC -DPIC -o .libs/kscandevice.o
#In file included from kscandevice.cpp:50:
#kgammatable.h:8: sane/sane.h: No such file or directory
#In file included from kscandevice.h:41,
#                 from kscandevice.cpp:51:
#kscanoption.h:32: sane/sane.h: No such file or directory
#kscanoption.h:33: sane/saneopts.h: No such file or directory
#In file included from kscandevice.cpp:51:
#kscandevice.h:48: sane/sane.h: No such file or directory
#kscandevice.h:49: sane/saneopts.h: No such file or directory
#In file included from kscandevice.cpp:50:
#kgammatable.h:23: `SANE_Word' was not declared in this scope
#kgammatable.h:23: template argument 1 is invalid
#kgammatable.h:23: ANSI C++ forbids declaration `getArrayPtr' with no type
#kgammatable.h:37: syntax error before `*'
#kgammatable.h:46: `SANE_Word' was not declared in this scope
#kgammatable.h:46: template argument 1 is invalid
#kgammatable.h:46: ANSI C++ forbids declaration `gt' with no type
#kgammatable.h: In method `int KGammaTable::tableSize()':
#kgammatable.h:36: request for member `size' in `KGammaTable::gt', which is of non-aggregate type `int'

Is anyone else having problems with these or is it just me?

The system is very up to date, I've updated all my sources and rebuilt
everything recently in the hope that these problems would sort
themselves out.

4[503]entropy@zippy:~ $ uname -a
NetBSD zippy.local 1.6L NetBSD 1.6L (ZIPPY) #0: Sun Jan 12 15:04:44 EST 2003     entropy@zippy.local:/usr/src/sys/arch/i386/compile/ZIPPY i386
4[504]entropy@zippy:~ $ pkg_chk -i
4[505]entropy@zippy:~ $ 

Please CC: me on replies, as I am not subscribed to this list.

Thanks,
entropy

--
entropy -- it's not just a good idea, it's the second law.