Subject: Re: NetBSD 3.1 - kdegraphics3 problem
To: Tobias Nygren <tnn@NetBSD.org>
From: Greg Evans <gevans@charter.net>
List: port-sparc64
Date: 04/03/2007 14:40:44
Thanks Tobias,

Just tried that and here are the results:

SunUltra10# pkg_delete poppler-qt && cd /usr/pkgsrc/print/poppler-qt/  
&& make clean && make install
pkg_delete: file `/usr/pkg/include/poppler/poppler-link-qt3.h'  
doesn't really exist
pkg_delete: file `/usr/pkg/include/poppler/poppler-page-transition.h'  
doesn't really exist
pkg_delete: file `/usr/pkg/include/poppler/poppler-qt.h' doesn't  
really exist
pkg_delete: couldn't entirely delete package `poppler-qt-0.5.4nb1'
(perhaps the packing list is incorrectly specified?)
pkg_delete: couldn't open dependency file `/var/db/pkg/poppler-0.5.4/ 
+REQUIRED_BY'
===> Cleaning for poppler-qt-0.5.4nb1
=> Required installed package digest>=20010302: digest-20060826 found
=> Fetching poppler-0.5.4.tar.gz
=> Total size: 1062401 bytes
Requesting http://poppler.freedesktop.org/poppler-0.5.4.tar.gz
100% | 
*********************************************************************|   
1037 KB  550.03 KB/s    00:00 ETA
1062401 bytes retrieved in 00:01 (549.83 KB/s)
=> Checksum SHA1 OK for poppler-0.5.4.tar.gz
=> Checksum RMD160 OK for poppler-0.5.4.tar.gz
===> Installing dependencies for poppler-qt-0.5.4nb1
=> Required installed package libtool-base>=1.5.18nb5: libtool- 
base-1.5.22nb4 found
=> Required installed package pkg-config>=0.19: pkg-config-0.21 found
=> Required installed package x11-links>=0.25: x11-links-0.30 found
=> Required installed package renderproto>=0.9.1: renderproto-0.9.2  
found
=> Required installed package randrproto>=1.1.1: randrproto-1.1.2 found
=> Required installed package fixesproto>=3.0.0: fixesproto-4.0 found
=> Required installed package poppler>=0.5.4: poppler-0.5.4 found
=> Required installed package qt3-libs>=3.3.6nb1: qt3-libs-3.3.7 found
===> Overriding tools for poppler-qt-0.5.4nb1
===> Extracting for poppler-qt-0.5.4nb1
===> Patching for poppler-qt-0.5.4nb1
=> Applying pkgsrc patches for poppler-qt-0.5.4nb1
===> Creating toolchain wrappers for poppler-qt-0.5.4nb1
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/usr/pkgsrc/print/ 
poppler-qt/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p / 
usr/pkgsrc/print/poppler-qt/work/.buildlink/lib/pkgconfig;  if test - 
f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for poppler-qt-0.5.4nb1
=> Adding run-time search paths to pkg-config files.
=> Modifying libtool scripts to use pkgsrc libtool
===> Building for poppler-qt-0.5.4nb1
....
----------------------------------------------------------------------
Libraries have been installed in:
    /usr/pkg/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
      during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
      during linking
    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -o root -g wheel -m 444 /usr/pkgsrc/print/poppler- 
qt/work/poppler-0.5.4/qt/poppler-qt.h /usr/pkg/include/poppler
/usr/bin/install -c -o root -g wheel -m 444 /usr/pkgsrc/print/poppler- 
qt/work/poppler-0.5.4/qt/poppler-page-transition.h  /usr/pkg/include/ 
poppler
/usr/bin/install -c -o root -g wheel -m 444 /usr/pkgsrc/print/poppler- 
qt/work/poppler-0.5.4/qt/poppler-link-qt3.h  /usr/pkg/include/poppler
/usr/bin/install -c -o root -g wheel -m 444 /usr/pkgsrc/print/poppler- 
qt/work/poppler-0.5.4/poppler-qt.pc /usr/pkg/lib/pkgconfig
=> Automatic manual page handling
pkg_create: can't stat `/usr/pkg/include/poppler/poppler-link-qt3.h'
pkg_create: can't stat `/usr/pkg/include/poppler/poppler-page- 
transition.h'
pkg_create: can't stat `/usr/pkg/include/poppler/poppler-qt.h'
=> Registering installation for poppler-qt-0.5.4nb1
pkg_admin: poppler-qt-0.5.4nb1: File `/usr/pkg/include/poppler/ 
poppler-link-qt3.h' is in +CONTENTS but not on filesystem!
pkg_admin: poppler-qt-0.5.4nb1: File `/usr/pkg/include/poppler/ 
poppler-page-transition.h' is in +CONTENTS but not on filesystem!
pkg_admin: poppler-qt-0.5.4nb1: File `/usr/pkg/include/poppler/ 
poppler-qt.h' is in +CONTENTS but not on filesystem!
poppler-qt-0.5.4nb1 requires installed package poppler-0.5.4
poppler-qt-0.5.4nb1 requires installed package qt3-libs-3.3.7

Making all in pdf
gmake[3]: Entering directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5/kfile-plugins/pdf'
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/X11R6/include  -I/usr/pkg/include -I/usr/X11R6/include  
-I/usr/pkg/include/poppler    -DQT_THREAD_SUPPORT - 
DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -DLDAP_DEPRECATED -I/usr/ 
include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/ 
freetype2 -I/usr/include/krb5 -I/usr/X11R6/include  -Wno-long-long - 
Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -I/usr/ 
pkg/include -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/qt3/include - 
DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -I/usr/include/krb5 - 
I/usr/X11R6/include -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.cpp:21:
kfile_pdf.h:25:24: poppler-qt.h: No such file or directory
In file included from kfile_pdf.cpp:21:
kfile_pdf.h:38: error: syntax error before `::' token
kfile_pdf.cpp: In member function `virtual bool
    KPdfPlugin::readInfo(KFileMetaInfo&, unsigned int)':
kfile_pdf.cpp:62: error: `m_doc' undeclared (first use this function)
kfile_pdf.cpp:62: error: (Each undeclared identifier is reported only  
once for
    each function it appears in.)
kfile_pdf.cpp:62: error: `Poppler' undeclared (first use this function)
kfile_pdf.cpp:62: error: parse error before `::' token

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/graphics/kdegraphics3/work/.gcc/bin/g++ -DHAVE_CONFIG_H - 
I. -I../.. -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/ 
include -I/usr/pkg/qt3/include -I/usr/pkgsrc/graphics/kdegraphics3/ 
work/.x11-buildlink/include -I/usr/pkgsrc/graphics/kdegraphics3/ 
work/.buildlink/include/poppler -DQT_THREAD_SUPPORT - 
DPNG_NO_ASSEMBLER_CODE -DLDAP_DEPRECATED -DGLX_GLXEXT_LEGACY -I/usr/ 
pkgsrc/graphics/kdegraphics3/work/.buildlink/include/freetype2 -I/usr/ 
include/krb5 -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG  
-DNO_DEBUG -O2 -O2 -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 kfile_pdf.cpp -fPIC -DPIC -o .libs/kfile_pdf.o -L/ 
usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/lib

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/shlibtool --silent --tag=CXX --mode=compile c++ - 
DHAVE_CONFIG_H -I. -I../.. -I/usr/pkgsrc/graphics/kdegraphics3/ 
work/.buildlink/include -I/usr/pkg/qt3/include -I/usr/pkgsrc/graphics/ 
kdegraphics3/work/.x11-buildlink/include -I/usr/pkgsrc/graphics/ 
kdegraphics3/work/.buildlink/include/poppler -DQT_THREAD_SUPPORT - 
DPNG_NO_ASSEMBLER_CODE -DLDAP_DEPRECATED -DGLX_GLXEXT_LEGACY -I/usr/ 
pkgsrc/graphics/kdegraphics3/work/.buildlink/include/freetype2 -I/usr/ 
include/krb5 -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG  
-DNO_DEBUG -O2 -O2 -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
gmake[3]: *** [kfile_pdf.lo] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5/kfile-plugins/pdf'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5/kfile-plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5'
gmake: *** [all] Error 2
*** Error code 2

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

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

Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/kde3


Well that didn't work trying to start where it left off, so tried this:


SunUltra10# cd /usr/pkgsrc/graphics/kdegraphics3/
SunUltra10# make clean && make install
===> Cleaning for kdegraphics-3.5.5nb2
.......
gmake[3]: Entering directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
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/X11R6/include  -I/usr/pkg/include -I/usr/X11R6/include  
-I/usr/pkg/include/poppler    -DQT_THREAD_SUPPORT - 
DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -DLDAP_DEPRECATED -I/usr/ 
include -I/usr/pkg/qt3/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/ 
freetype2 -I/usr/include/krb5 -I/usr/X11R6/include  -Wno-long-long - 
Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -I/usr/ 
pkg/include -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/qt3/include - 
DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -I/usr/include/krb5 - 
I/usr/X11R6/include -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.cpp:21:
kfile_pdf.h:25:24: poppler-qt.h: No such file or directory
In file included from kfile_pdf.cpp:21:
kfile_pdf.h:38: error: syntax error before `::' token
kfile_pdf.cpp: In member function `virtual bool
    KPdfPlugin::readInfo(KFileMetaInfo&, unsigned int)':
kfile_pdf.cpp:62: error: `m_doc' undeclared (first use this function)
kfile_pdf.cpp:62: error: (Each undeclared identifier is reported only  
once for
    each function it appears in.)
kfile_pdf.cpp:62: error: `Poppler' undeclared (first use this function)
kfile_pdf.cpp:62: error: parse error before `::' token

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/graphics/kdegraphics3/work/.gcc/bin/g++ -DHAVE_CONFIG_H - 
I. -I../.. -I/usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/ 
include -I/usr/pkg/qt3/include -I/usr/pkgsrc/graphics/kdegraphics3/ 
work/.x11-buildlink/include -I/usr/pkgsrc/graphics/kdegraphics3/ 
work/.buildlink/include/poppler -DQT_THREAD_SUPPORT - 
DPNG_NO_ASSEMBLER_CODE -DLDAP_DEPRECATED -DGLX_GLXEXT_LEGACY -I/usr/ 
pkgsrc/graphics/kdegraphics3/work/.buildlink/include/freetype2 -I/usr/ 
include/krb5 -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG  
-DNO_DEBUG -O2 -O2 -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 kfile_pdf.cpp -fPIC -DPIC -o .libs/kfile_pdf.o -L/ 
usr/pkgsrc/graphics/kdegraphics3/work/.buildlink/lib

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/shlibtool --silent --tag=CXX --mode=compile c++ - 
DHAVE_CONFIG_H -I. -I../.. -I/usr/pkgsrc/graphics/kdegraphics3/ 
work/.buildlink/include -I/usr/pkg/qt3/include -I/usr/pkgsrc/graphics/ 
kdegraphics3/work/.x11-buildlink/include -I/usr/pkgsrc/graphics/ 
kdegraphics3/work/.buildlink/include/poppler -DQT_THREAD_SUPPORT - 
DPNG_NO_ASSEMBLER_CODE -DLDAP_DEPRECATED -DGLX_GLXEXT_LEGACY -I/usr/ 
pkgsrc/graphics/kdegraphics3/work/.buildlink/include/freetype2 -I/usr/ 
include/krb5 -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG  
-DNO_DEBUG -O2 -O2 -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
gmake[3]: *** [kfile_pdf.lo] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5/kfile-plugins/pdf'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5/kfile-plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/graphics/kdegraphics3/work/ 
kdegraphics-3.5.5'
gmake: *** [all] Error 2
*** Error code 2

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

Stop.
make: stopped in /usr/pkgsrc/graphics/kdegraphics3
SunUltra10#


Any Ideas?

Regards,

Greg





On Apr 2, 2007, at 4:05 PM, Tobias Nygren wrote:

> Greg Evans wrote:
>> Hello,
>>
>> I am attempting to install pkgsrc/meta-pkgs/kde3 currently and am  
>> running into the following problem on netbsd 3.1 sparc64:
>>
>> When I compile kde3 everything is working fine except I am running  
>> into the following issue:
>>
>>        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.cpp:21:
>> kfile_pdf.h:25:24: poppler-qt.h: No such file or directory
>> In file included from kfile_pdf.cpp:21:
>> kfile_pdf.h:38: error: syntax error before `::' token
>> kfile_pdf.cpp: In member function `virtual bool
>>    KPdfPlugin::readInfo(KFileMetaInfo&, unsigned int)':
>> kfile_pdf.cpp:62: error: `m_doc' undeclared (first use this function)
>> kfile_pdf.cpp:62: error: (Each undeclared identifier is reported  
>> only once for
>>    each function it appears in.)
>> kfile_pdf.cpp:62: error: `Poppler' undeclared (first use this  
>> function)
>> kfile_pdf.cpp:62: error: parse error before `::' token
>>
>>
> [snip]
>> Stop.
>> make: stopped in /usr/pkgsrc/graphics/kdegraphics3
>> *** Error code 1
>>
>> Stop.
>> make: stopped in /usr/pkgsrc/graphics/kdegraphics3
>> SunUltra10#
>>
>>
>> When I was installing this it turned out that the only way I could  
>> get poppler-qt to install was to move the tar.gz into the  
>> directory /usr/pkgsrc/print/poppler-qt/work and then untar.gz it,  
>> otherwise it seems that it was either A) uncompressing itself to  
>> somewhere else, or something was breaking. I got it installed  
>> though as shown in pkg_info:
>>
>
> [redirecting to pkgsrc-users]
> Hi,
>
> My guess is that whatever caused this also caused the PLIST handling
> to break. Specifically not installing or registering the poppler-qt
> header files.
>
> Please try to pkg_delete poppler-qt, then make clean && make install
> in pkgsrc/print/poppler-qt and post the error message if any.
>
> -Tobias
>