Subject: pkg/33386: pkgsrc-package misc/koffice doesn't build on DragonFlyBSD
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <schlesinger@netcologne.de>
List: pkgsrc-bugs
Date: 04/28/2006 16:05:00
>Number:         33386
>Category:       pkg
>Synopsis:       pkgsrc-package misc/koffice doesn't build on DragonFlyBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 28 16:05:00 +0000 2006
>Originator:     Thomas Schlesinger
>Release:        DragonFly 1.5.3-DEVELOPMENT
>Organization:
>Environment:
DragonFly SchlesisNB. 1.5.3-DEVELOPMENT DragonFly 1.5.3-DEVELOPMENT #6: Mon Apr 17 13:41:51 CEST 2006     thomas@SchlesisNB.:/usr/obj/usr/src/sys/ASUS-V6800  i386

>Description:
koffice-build stops with this error:

[..]
gmake[4]: Entering directory `/usr/pkgsrc/misc/koffice/work/koffice-1.5.0/filters/kword/msword'
if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I. -I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore -I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store -I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/kopalette -I../../../lib/kopalette -I/usr/pkg/include -I/usr/pkg/include/libgsf-1 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2 -L/usr/pkg/lib -liconv -I/usr/pkg/include -I/usr/pkg/qt3/include -I/usr/pkg/xorg/include  -I/usr/pkg/include -I/usr/pkg/xorg/include  -DQT_THREAD_SUPPORT -I/usr/pkg/include -I/usr/pkg/include/python2.3 -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/xorg/include -I/usr/pkg/include/krb5 -I/usr/pkg/include/freetype2  -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -I/usr/pkg/include -I/usr/pkg/include/python2.3 -DLDAP_DEPRECATED -I/usr/inclu
 de -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/xorg/include -I/usr/pkg/include/krb5 -I/usr/pkg/include/freetype2 -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DHAVE_KNEWSTUFF  -MT mswordimport.lo -MD -MP -MF ".deps/mswordimport.Tpo" -c -o mswordimport.lo mswordimport.cpp; \
        then mv -f ".deps/mswordimport.Tpo" ".deps/mswordimport.Plo"; else rm -f ".deps/mswordimport.Tpo"; exit 1; fi
In file included from ./document.h:23,
                 from mswordimport.cpp:31:
./tablehandler.h:94: error: expected unqualified-id before '&' token
./tablehandler.h:94: error: expected `,' or `...' before '&' token
./tablehandler.h:94: error: ISO C++ forbids declaration of `parameter' with no type
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/sharedptr.h: In constructor `wvWare::SharedPtr<T>::SharedPtr(T*) [with T = const wvWare::Word97::TAP]':
./tablehandler.h:47:   instantiated from here
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/sharedptr.h:102: error: invalid use of undefined type `const struct wvWare::Word97::TAP'
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/functordata.h:65: error: forward declaration of `const struct wvWare::Word97::TAP'
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/sharedptr.h: In destructor `wvWare::SharedPtr<T>::~SharedPtr() [with T = const wvWare::Word97::TAP]':
./tablehandler.h:47:   instantiated from here
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/sharedptr.h:106: error: invalid use of undefined type `const struct wvWare::Word97::TAP'
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/functordata.h:65: error: forward declaration of `const struct wvWare::Word97::TAP'
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/sharedptr.h: In copy constructor `wvWare::SharedPtr<T>::SharedPtr(const wvWare::SharedPtr<T>&) [with T = const wvWare::Word97::TAP]':
./tablehandler.h:48:   instantiated from here
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/sharedptr.h:104: error: invalid use of undefined type `const struct wvWare::Word97::TAP'
/usr/pkgsrc/misc/koffice/work/.buildlink/include/wv2/functordata.h:65: error: forward declaration of `const struct wvWare::Word97::TAP'
gmake[4]: *** [mswordimport.lo] Error 1
gmake[4]: Leaving directory `/usr/pkgsrc/misc/koffice/work/koffice-1.5.0/filters/kword/msword'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/misc/koffice/work/koffice-1.5.0/filters/kword'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/misc/koffice/work/koffice-1.5.0/filters'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/misc/koffice/work/koffice-1.5.0'
gmake: *** [all] Error 2
*** Error code 2


>How-To-Repeat:
#cd misc/koffice
#bmake install clean
>Fix: