Subject: pkg/34810: kdegraphics3 build unable to find poppler-link-qt3.h
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <oster@cs.usask.ca>
List: pkgsrc-bugs
Date: 10/13/2006 16:30:01
>Number:         34810
>Category:       pkg
>Synopsis:       kdegraphics3 build unable to find poppler-link-qt3.h
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 13 16:30:00 +0000 2006
>Originator:     oster@cs.usask.ca
>Release:        NetBSD 4.0_BETA
>Organization:
Sometimes.
>Environment:
NetBSD gonzo 4.0_BETA NetBSD 4.0_BETA (GONZO) #0: Sat Aug 19 14:54:39 CST 2006  oster@gonzo:/u1/builds/build114/src/sys/arch/i386/compile/GONZO i386
Architecture: i386
Machine: i386
>Description:

While building kdegraphics3 in a chrooted environment:

...
Making all in pdf
gmake[3]: Entering directory `/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/kdegraphics-3.5.5/kfile-plugins/pdf'
/usr/pkg/qt3/bin/moc ./kfile_pdf.h -o kfile_pdf.moc
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/pkg/include -I/usr/pkg/qt3/include -I/usr/pkg/xorg/include  -I/usr/pkg/include -I/usr/pkg/xorg/include -I/usr/pkg/include/poppler    -DQT_THREAD_SUPPORT -I/usr/pkg/include -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/include/krb5 -I/usr/pkg/include/freetype2  -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -I/usr/pkg/include -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/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  -MT kfile_pdf.lo -MD -MP -MF ".deps/kfile_pdf.Tpo" -c -o kfile_pdf.lo kfile_pdf.cpp; \
        then mv -f ".deps/kfile_pdf.Tpo" ".deps/kfile_pdf.Plo"; else rm -f ".deps/kfile_pdf.Tpo"; exit 1; fi
In file included from kfile_pdf.h:25,
                 from kfile_pdf.cpp:21:
/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/.buildlink/include/poppler/poppler-qt.h:28:30: error: poppler-link-qt3.h: No such file or directory
/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/.buildlink/include/poppler/poppler-qt.h:192: error: 'Link' was not declared in this scope
/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/.buildlink/include/poppler/poppler-qt.h:192: error: template argument 1 is invalid
/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/.buildlink/include/poppler/poppler-qt.h:281: error: ISO C++ forbids declaration of 'LinkDestination' with no type
/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/.buildlink/include/poppler/poppler-qt.h:281: error: expected ';' before '*' token
gmake[3]: *** [kfile_pdf.lo] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/kdegraphics-3.5.5/kfile-plugins/pdf'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/kdegraphics-3.5.5/kfile-plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work.gonzo/kdegraphics-3.5.5'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/graphics/kdegraphics3
*** Error code 1
...


Poppler version in question is:

oster@gonzo-83> pkg_info -a | grep poppler
poppler-0.5.4       PDF rendering library
poppler-qt-0.5.4    PDF rendering library (QT wrapper)
oster@gonzo-84> 


>How-To-Repeat:
	update to -current pkgsrc
	run 'pkg_chk -u' to update packages (where kde is one of the
		packages to be updated)
	watch it die on kdegraphics3 with the errors mentioned above.

>Fix:
	Please.