Bug 15532

Summary: Can't build with PS backend without PDF backend
Product: cairo Reporter: Sebastien Pouliot <sebastien>
Component: postscript backendAssignee: Adrian Johnson <ajohnson>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.6.4   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Sebastien Pouliot 2008-04-16 06:03:58 UTC
Libgdiplus builds its copy of Cairo by disabling the PNG, SVG and PDF (unrequired) backend but keeping the PS backend (for printing). This worked without problem in the 1.4.x versions.

Now it seems that the PS backend needs (at least) the cairo/src/cairo-pdf-operators[.c|-private.h] files to build correctly but they are only included in the build if the PDF backend is enabled.

../src/.libs/libgdiplus.so: undefined reference to `_mono_cairo_pdf_operators_show_glyphs'
../src/.libs/libgdiplus.so: undefined reference to `_mono_cairo_pdf_operators_fill'
../src/.libs/libgdiplus.so: undefined reference to `_mono_cairo_pdf_operators_clip'
../src/.libs/libgdiplus.so: undefined reference to `_mono_cairo_pdf_operators_init'
../src/.libs/libgdiplus.so: undefined reference to `_mono_cairo_pdf_operators_stroke'
../src/.libs/libgdiplus.so: undefined reference to `_mono_cairo_pdf_operators_set_cairo_to_pdf_matrix'

note: symbols were renamed inside libgdiplus to avoid problems with applications linking with the system cairo.
Comment 1 Chris Wilson 2008-04-16 06:20:47 UTC
commit 472637da054ec90d8dc4b0095be6e9a134f507e0
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Apr 16 14:18:32 2008 +0100

    [Makefile.am] Add cairo-pdf-operators*.[ch] to ps_sources
    
    The postscript backends depends upon cairo-pdf-operators.c, so list it
    as a requirement in ps_sources. This enables the postscript backend to
    build even if the pdf backend is disable by the user during configure.
    
    (Fixes http://bugs.freedesktop.org/show_bug.cgi?id=15532.)
Comment 2 Chris Wilson 2008-04-16 06:37:58 UTC
commit a0d71e5a38a5b6a9621da1ce773d591b6e500b1e
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Apr 16 14:31:25 2008 +0100

    [Makefile.am] Fix breakage in previous commit.
    
    I checked with --disable-pdf and with --disable-ps, but forgot to
    check with them both enabled. D'oh.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.