xpdf also crashes for me on every single pdf file, so I tried re-building xpdf from source, but it won't compile.
Here is what I get (on natty as of today):
As it seems xpdf needs header files from an older version of libpoppler-dev (libpoppler7-dev??), but the build-depends mention libpoppler-dev (>= 0.12.4)
xpdf also crashes for me on every single pdf file, so I tried re-building xpdf from source, but it won't compile.
Here is what I get (on natty as of today):
$ dpkg-buildpackage -rfakeroot -j8 -b functions nfs/david/ ubuntu- sources/ xpdf-3. 02' nfs/david/ ubuntu- sources/ xpdf-3. 02' dh_auto_ build nfs/david/ ubuntu- sources/ xpdf-3. 02' Dev.* xpdf/GlobalParams.* build GooString/ g build/* .h\>/\< poppler- config\ .h\>/g build/* include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/CoreOutpu tDev.o build/CoreOutpu tDev.cc include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/GlobalPar ams.o build/GlobalPar ams.cc ams.cc: In member function ‘void GlobalParams: :parseNameToUni code(GooList* , GooString*, int)’: ams.cc: 1147:72: warning: format ‘%s’ expects type ‘char*’, but argument 3 has type ‘GooString*’ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/PDFCore.o build/PDFCore.cc include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/XPDFApp.o build/XPDFApp.cc include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/XPDFCore.o build/XPDFCore.cc :runCommand( GooString* , GooString*)’: cc:695: 28: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result :doAction( LinkAction* )’: cc:571: 32: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/XPDFTree.o build/XPDFTree.cc include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -I/usr/ include/ poppler -I/usr/ include/ poppler/ goo -I/usr/ include/ poppler/ splash -Wno-write-strings -DHAVE_DIRENT_H -c -o build/XPDFViewer.o build/XPDFViewer.cc r.cc: In static member function ‘static void XPDFViewer: :printPrintCbk( _WidgetRec* , void*, void*)’: r.cc:3630: 19: error: no matching function for call to ‘PSOutputDev: :PSOutputDev( char*, XRef*, Catalog*, NULL, int&, int&, PSOutMode)’ poppler/ PSOutputDev. h:91:3: note: candidates are: PSOutputDev: :PSOutputDev( void (*)(void*, char*, int), void*, char*, PDFDoc*, XRef*, Catalog*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) poppler/ PSOutputDev. h:80:3: note: PSOutputDev: :PSOutputDev( const char*, PDFDoc*, XRef*, Catalog*, char*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) poppler/ PSOutputDev. h:76:37: note: PSOutputDev: :PSOutputDev( const PSOutputDev&) r.cc:3675: 54: error: no matching function for call to ‘PSOutputDev: :PSOutputDev( char*, XRef*, Catalog*, NULL, int&, int&, PSOutMode)’ poppler/ PSOutputDev. h:91:3: note: candidates are: PSOutputDev: :PSOutputDev( void (*)(void*, char*, int), void*, char*, PDFDoc*, XRef*, Catalog*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) poppler/ PSOutputDev. h:80:3: note: PSOutputDev: :PSOutputDev( const char*, PDFDoc*, XRef*, Catalog*, char*, int, int, PSOutMode, int, int, GBool, int, int, int, int, GBool, GBool) poppler/ PSOutputDev. h:76:37: note: PSOutputDev: :PSOutputDev( const PSOutputDev&) r.cc: In member function ‘void XPDFViewer: :cmdRun( GooString* *, int, XEvent*)’: r.cc:1165: 28: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result XPDFViewer. o] Error 1 nfs/david/ ubuntu- sources/ xpdf-3. 02'
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-
dpkg-buildpackage: source package xpdf
dpkg-buildpackage: source version 3.02-12ubuntu1
dpkg-buildpackage: source changed by Bhavani Shankar <email address hidden>
dpkg-buildpackage: host architecture i386
dpkg-source --before-build xpdf-3.02
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
debian/rules override_dh_clean
make[1]: Entering directory `/home/
dh_clean
rm -rf build
make[1]: Leaving directory `/home/
debian/rules build
dh build
dh_testdir
# Skipping dh_auto_configure - empty override
debian/rules override_
make[1]: Entering directory `/home/
mkdir -p build
cp goo/parseargs.* xpdf/CoreOutput
cp xpdf/PDFCore.* xpdf/XPDFApp.* xpdf/XPDFCore.* xpdf/XPDFTree.* build
cp xpdf/XPDFTreeP.h xpdf/XPDFViewer.* xpdf/xpdf.cc build
# perform extensive goo rename (as required by poppler)
sed -i s/GString/
sed -i s/GMutex/GooMutex/g build/*
sed -i s/GHash/GooHash/g build/*
sed -i s/GList/GooList/g build/*
sed -i s/\<aconf\
cp xpdf/config.h xpdf/about-text.h xpdf/*.xbm xpdf/xpdfIcon.xpm build
g++ -g -O2 -I/usr/
g++ -g -O2 -I/usr/
build/GlobalPar
build/GlobalPar
g++ -g -O2 -I/usr/
g++ -g -O2 -I/usr/
g++ -g -O2 -I/usr/
build/XPDFCore.cc: In member function ‘void XPDFCore:
build/XPDFCore.
build/XPDFCore.cc: In member function ‘void XPDFCore:
build/XPDFCore.
g++ -g -O2 -I/usr/
g++ -g -O2 -I/usr/
build/XPDFViewe
build/XPDFViewe
/usr/include/
/usr/include/
/usr/include/
build/XPDFViewe
/usr/include/
/usr/include/
/usr/include/
build/XPDFViewe
build/XPDFViewe
make[1]: *** [build/
make[1]: Leaving directory `/home/
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
As it seems xpdf needs header files from an older version of libpoppler-dev (libpoppler7- dev??), but the build-depends mention libpoppler-dev (>= 0.12.4)