[cairo-bugs] [Bug 4724] New: Xrender tests broken if no xrender.pc file present

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Oct 9 09:09:31 PDT 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=4724          
     
           Summary: Xrender tests broken if no xrender.pc file present
           Product: cairo
           Version: 1.0.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: bsiegert at gmx.de
         QAContact: cairo-bugs at cairographics.org


While compiling cairo-1.0.0 on MirOS (an OpenBSD derivative), I came across
this problem. The configure scripts to find Xrender have two cases: if a
.pc file is found, then there is no problem. If not, the script probes for
<X11/extensions/Xrender.h> without checking for X or adding
-I/usr/X11R6/include to CPPFLAGS. Ironically, this is done afterwards.

Then it tries a function in Xrender (XrmFinalize) while adding the right
libraries. However, these never make it into the cairo .pc file. You see,
our linker does not know about shared library dependencies, so you always
have to give it all the dependent libraries. Thus, any user of cairo also
has to link against Xrender + dependencies.

My patch shuffles the order of the tests for them to work, adds X_CFLAGS
to CPPFLAGS and introduces a new variable XRENDER_LIBS that is added to
the "Libs" line of cairo.pc if xrender.pc is not used.

(For the record, the X server here is XFree86 4.5.0 final.)          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list