[Pkg-cups-devel] Bug#322226: STR#2850 patch and #322226

Will Aoki waoki at umnh.utah.edu
Mon Nov 17 19:13:00 UTC 2008


On Sun, Nov 16, 2008 at 03:55:15PM +0100, Martin Pitt wrote:
> Do you have a chance to test landscape printing with cups from
> experimental? It uses a different filter chaining now (using PDF as
> standard format instead of PS) and thus should avoid this problem
> entirely.

1.3.9-4 does not build on etch, even after installing po4a and
hardening-wrapper from lenny (which satisfies all depends). The build
fails with the following:

Compiling pdftoijs.cxx...
pdftoijs.cxx:61: warning: non-local variable '<unnamed>::<anonymous enum> <unnamed>::colspace' uses anonymous type
pdftoijs.cxx: In function 'void parseOpts(int, char**)':
pdftoijs.cxx:177: error: 'assert' was not declared in this scope
pdftoijs.cxx: In function 'int main(int, char**)':
pdftoijs.cxx:382: error: no match for 'operator[]' in 'paperColor[0]'
pdftoijs.cxx:383: error: no match for 'operator[]' in 'paperColor[1]'
pdftoijs.cxx:384: error: no match for 'operator[]' in 'paperColor[2]'
pdftoijs.cxx:394: error: no match for 'operator[]' in 'paperColor[0]'
pdftoijs.cxx:405: error: no match for 'operator[]' in 'paperColor[0]'
pdftoijs.cxx:429: error: no matching function for call to 'SplashOutputDev::SplashOutputDev(SplashColorMode&, int&, GBool&, SplashColor&, int, int)'
/usr/include/poppler/SplashOutputDev.h:50: note: candidates are: SplashOutputDev::SplashOutputDev(SplashColorMode, GBool, SplashColor)
/usr/include/poppler/SplashOutputDev.h:45: note:                 SplashOutputDev::SplashOutputDev(const SplashOutputDev&)
pdftoijs.cxx:464: error: invalid cast from type 'SplashColorPtr' to type 'const char*'
make[2]: *** [pdftoijs.o] Error 1
make[2]: Leaving directory `/home/waoki/software/cups/cups-1.3.9/filter'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/waoki/software/cups/cups-1.3.9'
make: *** [debian/stamp-makefile-build] Error 2
debuild: fatal error at line 1228:
debian/rules build failed

I don't know why g++ is complaining about assert, but <include assert.h>
makes that error go away. As to the other errors, SplashColor appears to
be defined in libpoppler-dev, and I'm not presently able to install a
newer libpoppler-dev to try building against it. My test systems
currently need to remain on etch and libpoppler-dev from lenny drags in
some build-depends that I'd rather avoid at present. If time permits,
I'll see if I can get it to build later this week.

-- 
William Aoki     KD7YAF    waoki at umnh.utah.edu    5-1924





More information about the Pkg-cups-devel mailing list