[cairo-bugs] [Bug 34011] New: headers-standalone target is incorrect for some non-gcc compilers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 7 16:25:45 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=34011

           Summary: headers-standalone target is incorrect for some
                    non-gcc compilers
           Product: cairo
           Version: 1.10.2
          Platform: Other
        OS/Version: Solaris
            Status: NEW
          Severity: minor
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: Tim.Mooney at ndsu.edu
         QAContact: cairo-bugs at cairographics.org


Created an attachment (id=43059)
 View: https://bugs.freedesktop.org/attachment.cgi?id=43059
 Review: https://bugs.freedesktop.org/review?bug=34011&attachment=43059

augment headers-standalone to work with additional compilers

x86_64-sun-solaris2.10, Solaris 10u6 (not OpenSolaris) with the commercial,
no-cost Sun Workshop compilers.

When executing "gmake check" against cairo-1.10.2, the headers-standalone
target fails in the src directory, with messages like the following:

  CHECK cairo-svg.h
ld: fatal: file ./cairo-svg.h: unknown file type
ld: fatal: File processing errors. No output written to /dev/null
  CHECK cairoint.h
ld: fatal: file ./cairoint.h: unknown file type
ld: fatal: File processing errors. No output written to /dev/null

I'm presuming that gcc permits you to specify a header file as your source file
AND link and generate an executable from just that file. The Solaris compiler,
however, will not.

Luckily, it's pretty easy to make the target more portable.  The fix involves
generating a tiny C source file that includes the header file.

I'm attaching a patch that does that.  With that patch, headers-standalone
completes successfully for me.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list