Opened 14 years ago

Closed 4 years ago

#25379 closed defect (fixed)

cairo @1.8.10 won't build when windows.h header is present

Reported by: hackdefendr (HackDefendr) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: cairo

Description

Both Cairo and Cairo-Devel crash at the same place. Debug installed text file attached. Below is the non-debug crash info:

tz-font.lo cairo-quartz-font.c
cairo-quartz-surface.c: In function 'CreateGradientFunction':
cairo-quartz-surface.c:689: warning: initialization from incompatible pointer type
cairo-quartz-surface.c:702: warning: passing argument 3 of 'CGFunctionCreate' from incompatible pointer type
cairo-quartz-surface.c:702: warning: passing argument 5 of 'CGFunctionCreate' from incompatible pointer type
cairo-quartz-surface.c: In function 'CreateRepeatingGradientFunction':
cairo-quartz-surface.c:715: warning: initialization from incompatible pointer type
cairo-quartz-surface.c:786: warning: passing argument 3 of 'CGFunctionCreate' from incompatible pointer type
cairo-quartz-surface.c:786: warning: passing argument 5 of 'CGFunctionCreate' from incompatible pointer type
cairo-quartz-surface.c: In function '_cairo_quartz_setup_source':
cairo-quartz-surface.c:1320: warning: passing argument 3 of 'CGContextSetFillPattern' from incompatible pointer type
cairo-quartz-surface.c:1322: warning: passing argument 3 of 'CGContextSetStrokePattern' from incompatible pointer type
cairo-quartz-surface.c: In function '_cairo_quartz_surface_stroke':
cairo-quartz-surface.c:1900: warning: passing argument 3 of 'CGContextSetLineDash' from incompatible pointer type
cairo-quartz-font.c: In function '_cairo_quartz_font_get_implementation':
cairo-quartz-font.c:296: warning: assignment from incompatible pointer type
cairo-quartz-font.c:371: warning: assignment from incompatible pointer type
cairo-quartz-font.c: In function '_cairo_quartz_font_create_toy':
cairo-quartz-font.c:386: warning: passing argument 2 of '_cairo_quartz_font_get_implementation' from incompatible pointer type
cairo-quartz-font.c: At top level:
cairo-quartz-font.c:778: warning: initialization from incompatible pointer type
mv -f .deps/cairo-quartz-font.Tpo .deps/cairo-quartz-font.Plo
../doltcompile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I/opt/local/include/pixman-1      -I/opt/local/include/freetype2 -I/opt/local/include   -I/opt/local/include   -I/opt/local/include/libpng12                       -I/opt/local/include  -pipe -O2 -arch x86_64 -MT cairo-quartz-image-surface.lo -MD -MP -MF .deps/cairo-quartz-image-surface.Tpo -c -o cairo-quartz-image-surface.lo cairo-quartz-image-surface.c
mv -f .deps/cairo-quartz-surface.Tpo .deps/cairo-quartz-surface.Plo
../doltcompile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I/opt/local/include/pixman-1      -I/opt/local/include/freetype2 -I/opt/local/include   -I/opt/local/include   -I/opt/local/include/libpng12                       -I/opt/local/include  -pipe -O2 -arch x86_64 -MT cairo-win32-surface.lo -MD -MP -MF .deps/cairo-win32-surface.Tpo -c -o cairo-win32-surface.lo cairo-win32-surface.c
In file included from cairo-win32-private.h:39,
                 from cairo-win32-surface.c:52:
cairo-win32.h:49: error: expected ')' before 'hdc'
cairo-win32.h:52: error: expected ')' before 'hdc'
cairo-win32.h:55: error: expected ')' before 'hdc'
cairo-win32.h:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cairo_win32_surface_get_dc'
cairo-win32.h:78: error: expected ')' before '*' token
cairo-win32.h:81: error: expected ')' before 'font'
cairo-win32.h:84: error: expected ')' before '*' token
cairo-win32.h:88: error: expected declaration specifiers or '...' before 'HDC'
In file included from cairo-win32-surface.c:52:
cairo-win32-private.h:56: error: expected specifier-qualifier-list before 'HDC'
cairo-win32-private.h:139: error: expected ')' before 'dc'
cairo-win32-private.h:169: error: expected declaration specifiers or '...' before 'XFORM'
cairo-win32-private.h: In function '_cairo_matrix_to_win32_xform':
cairo-win32-private.h:171: error: 'xform' undeclared (first use in this function)
cairo-win32-private.h:171: error: (Each undeclared identifier is reported only once
cairo-win32-private.h:171: error: for each function it appears in.)
cairo-win32-private.h:171: error: 'FLOAT' undeclared (first use in this function)
cairo-win32-private.h:171: error: expected ';' before 'm'
cairo-win32-private.h:172: error: expected ';' before 'm'
cairo-win32-private.h:173: error: expected ';' before 'm'
cairo-win32-private.h:174: error: expected ';' before 'm'
cairo-win32-private.h:175: error: expected ';' before 'm'
cairo-win32-private.h:176: error: expected ';' before 'm'
cairo-win32-private.h: At top level:
cairo-win32-private.h:180: error: expected ')' before 'dc'
cairo-win32-private.h:186: error: expected ')' before 'rgn'
cairo-win32-surface.c: In function '_cairo_win32_print_gdi_error':
cairo-win32-surface.c:88: error: 'DWORD' undeclared (first use in this function)
cairo-win32-surface.c:88: error: expected ';' before 'last_error'
cairo-win32-surface.c:90: error: 'FORMAT_MESSAGE_ALLOCATE_BUFFER' undeclared (first use in this function)
cairo-win32-surface.c:91: error: 'FORMAT_MESSAGE_FROM_SYSTEM' undeclared (first use in this function)
cairo-win32-surface.c:93: error: 'last_error' undeclared (first use in this function)
cairo-win32-surface.c:94: error: 'LANG_NEUTRAL' undeclared (first use in this function)
cairo-win32-surface.c:94: error: 'SUBLANG_DEFAULT' undeclared (first use in this function)
cairo-win32-surface.c:95: error: 'LPSTR' undeclared (first use in this function)
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:113: error: expected ')' before 'dc'
cairo-win32-surface.c:151: error: expected declaration specifiers or '...' before 'HDC'
cairo-win32-surface.c: In function '_create_dc_and_bitmap':
cairo-win32-surface.c:160: error: 'BITMAPINFO' undeclared (first use in this function)
cairo-win32-surface.c:160: error: 'bitmap_info' undeclared (first use in this function)
cairo-win32-surface.c:162: error: expected specifier-qualifier-list before 'BITMAPINFOHEADER'
cairo-win32-surface.c:170: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:171: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:172: error: 'cairo_win32_surface_t' has no member named 'is_dib'
cairo-win32-surface.c:190: error: 'RGBQUAD' undeclared (first use in this function)
cairo-win32-surface.c:190: error: 'BITMAPINFOHEADER' undeclared (first use in this function)
cairo-win32-surface.c:194: error: expected expression before ')' token
cairo-win32-surface.c:201: error: 'LONG' undeclared (first use in this function)
cairo-win32-surface.c:216: error: 'BI_RGB' undeclared (first use in this function)
cairo-win32-surface.c:252: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:252: error: 'original_dc' undeclared (first use in this function)
cairo-win32-surface.c:253: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:256: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:256: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:258: error: 'DIB_RGB_COLORS' undeclared (first use in this function)
cairo-win32-surface.c:261: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:264: error: 'cairo_win32_surface_t' has no member named 'is_dib'
cairo-win32-surface.c:268: error: 'cairo_win32_surface_t' has no member named 'saved_dc_bitmap'
cairo-win32-surface.c:268: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:269: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:270: error: 'cairo_win32_surface_t' has no member named 'saved_dc_bitmap'
cairo-win32-surface.c:297: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:297: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:307: error: 'cairo_win32_surface_t' has no member named 'saved_dc_bitmap'
cairo-win32-surface.c:308: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:308: error: 'cairo_win32_surface_t' has no member named 'saved_dc_bitmap'
cairo-win32-surface.c:309: error: 'cairo_win32_surface_t' has no member named 'saved_dc_bitmap'
cairo-win32-surface.c:312: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:313: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:314: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:317: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:318: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:319: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:326: error: expected ')' before 'original_dc'
cairo-win32-surface.c: In function '_cairo_win32_surface_create_similar_internal':
cairo-win32-surface.c:400: error: 'cairo_win32_surface_t' has no member named 'is_dib'
cairo-win32-surface.c:409: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:409: warning: assignment makes pointer from integer without a cast
cairo-win32-surface.c:416: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:416: warning: assignment makes pointer from integer without a cast
cairo-win32-surface.c: In function '_cairo_win32_surface_finish':
cairo-win32-surface.c:489: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:490: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:493: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:494: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:494: error: 'cairo_win32_surface_t' has no member named 'saved_dc_bitmap'
cairo-win32-surface.c:495: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:496: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:501: error: 'cairo_win32_surface_t' has no member named 'initial_clip_rgn'
cairo-win32-surface.c:502: error: 'cairo_win32_surface_t' has no member named 'initial_clip_rgn'
cairo-win32-surface.c:504: error: 'cairo_win32_surface_t' has no member named 'font_subsets'
cairo-win32-surface.c:505: error: 'cairo_win32_surface_t' has no member named 'font_subsets'
cairo-win32-surface.c: In function '_cairo_win32_surface_get_subimage':
cairo-win32-surface.c:533: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:534: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:537: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:539: error: 'SRCCOPY' undeclared (first use in this function)
cairo-win32-surface.c:551: error: 'RECT' undeclared (first use in this function)
cairo-win32-surface.c:551: error: expected ';' before 'r'
cairo-win32-surface.c:552: error: 'r' undeclared (first use in this function)
cairo-win32-surface.c:555: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:555: error: 'HBRUSH' undeclared (first use in this function)
cairo-win32-surface.c:555: error: expected ')' before 'GetStockObject'
cairo-win32-surface.c: In function '_cairo_win32_surface_acquire_source_image':
cairo-win32-surface.c:572: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:573: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:580: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:581: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:585: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c: In function '_cairo_win32_surface_acquire_dest_image':
cairo-win32-surface.c:612: error: 'RECT' undeclared (first use in this function)
cairo-win32-surface.c:612: error: expected ';' before 'clip_box'
cairo-win32-surface.c:615: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:620: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:621: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:623: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:629: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:629: error: 'clip_box' undeclared (first use in this function)
cairo-win32-surface.c:629: error: 'ERROR' undeclared (first use in this function)
cairo-win32-surface.c:659: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c: In function '_cairo_win32_surface_release_dest_image':
cairo-win32-surface.c:683: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:686: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:688: error: 'SRCCOPY' undeclared (first use in this function)
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:698: error: expected specifier-qualifier-list before 'BYTE'
cairo-win32-surface.c:711: error: expected ')' before '*' token
cairo-win32-surface.c: In function '_composite_alpha_blend':
cairo-win32-surface.c:737: error: nested functions are disabled, use -fnested-functions to re-enable
cairo-win32-surface.c:737: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'alpha_blend'
cairo-win32-surface.c:737: error: 'alpha_blend' undeclared (first use in this function)
cairo-win32-surface.c:745: error: 'OSVERSIONINFO' undeclared (first use in this function)
cairo-win32-surface.c:745: error: expected ';' before 'os'
cairo-win32-surface.c:747: error: 'os' undeclared (first use in this function)
cairo-win32-surface.c:752: error: 'VER_PLATFORM_WIN32_WINDOWS' undeclared (first use in this function)
cairo-win32-surface.c:755: error: 'HMODULE' undeclared (first use in this function)
cairo-win32-surface.c:755: error: expected ';' before 'msimg32_dll'
cairo-win32-surface.c:757: error: 'msimg32_dll' undeclared (first use in this function)
cairo-win32-surface.c:758: error: 'cairo_alpha_blend_func_t' undeclared (first use in this function)
cairo-win32-surface.c:758: error: expected ';' before 'GetProcAddress'
cairo-win32-surface.c:767: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:772: error: 'BLENDFUNCTION' has no member named 'BlendOp'
cairo-win32-surface.c:773: error: 'BLENDFUNCTION' has no member named 'BlendFlags'
cairo-win32-surface.c:774: error: 'BLENDFUNCTION' has no member named 'SourceConstantAlpha'
cairo-win32-surface.c:775: error: 'BLENDFUNCTION' has no member named 'AlphaFormat'
cairo-win32-surface.c:777: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:780: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: In function '_cairo_win32_surface_composite_inner':
cairo-win32-surface.c:805: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:806: error: 'BITMAPINFO' undeclared (first use in this function)
cairo-win32-surface.c:806: error: expected ';' before 'bi'
cairo-win32-surface.c:807: error: 'bi' undeclared (first use in this function)
cairo-win32-surface.c:807: error: 'BITMAPINFOHEADER' undeclared (first use in this function)
cairo-win32-surface.c:811: error: 'LONG' undeclared (first use in this function)
cairo-win32-surface.c:815: error: 'BI_RGB' undeclared (first use in this function)
cairo-win32-surface.c:826: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:835: error: 'DIB_RGB_COLORS' undeclared (first use in this function)
cairo-win32-surface.c:836: error: 'SRCCOPY' undeclared (first use in this function)
cairo-win32-surface.c:841: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:842: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:845: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:849: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:852: error: 'BOOL' undeclared (first use in this function)
cairo-win32-surface.c:852: error: expected ';' before 'success'
cairo-win32-surface.c:853: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:853: error: 'HALFTONE' undeclared (first use in this function)
cairo-win32-surface.c:854: error: 'success' undeclared (first use in this function)
cairo-win32-surface.c:854: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:857: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:861: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: In function '_cairo_win32_surface_composite':
cairo-win32-surface.c:918: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:950: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:980: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:1170: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1170: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1176: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:1182: error: 'HBRUSH' undeclared (first use in this function)
cairo-win32-surface.c:1182: error: expected ';' before 'brush'
cairo-win32-surface.c:1183: error: 'HGDIOBJ' undeclared (first use in this function)
cairo-win32-surface.c:1183: error: expected ';' before 'old_brush'
cairo-win32-surface.c:1184: error: 'POINT' undeclared (first use in this function)
cairo-win32-surface.c:1184: error: expected ';' before 'old_brush_origin'
cairo-win32-surface.c:1187: error: 'brush' undeclared (first use in this function)
cairo-win32-surface.c:1187: error: 'cairo_win32_surface_t' has no member named 'bitmap'
cairo-win32-surface.c:1192: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1193: error: 'old_brush_origin' undeclared (first use in this function)
cairo-win32-surface.c:1195: error: 'old_brush' undeclared (first use in this function)
cairo-win32-surface.c:1195: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1197: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1197: error: 'PATCOPY' undeclared (first use in this function)
cairo-win32-surface.c:1200: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1201: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1276: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1279: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1280: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c: In function '_cairo_win32_surface_fill_rectangles':
cairo-win32-surface.c:1377: error: 'COLORREF' undeclared (first use in this function)
cairo-win32-surface.c:1377: error: expected ';' before 'new_color'
cairo-win32-surface.c:1378: error: 'HBRUSH' undeclared (first use in this function)
cairo-win32-surface.c:1378: error: expected ';' before 'new_brush'
cairo-win32-surface.c:1393: error: 'new_color' undeclared (first use in this function)
cairo-win32-surface.c:1405: error: 'new_brush' undeclared (first use in this function)
cairo-win32-surface.c:1410: error: 'RECT' undeclared (first use in this function)
cairo-win32-surface.c:1410: error: expected ';' before 'rect'
cairo-win32-surface.c:1412: error: 'rect' undeclared (first use in this function)
cairo-win32-surface.c:1417: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: In function '_cairo_win32_surface_set_clip_region':
cairo-win32-surface.c:1443: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1446: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1447: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c:1466: error: 'RGNDATA' undeclared (first use in this function)
cairo-win32-surface.c:1466: error: 'data' undeclared (first use in this function)
cairo-win32-surface.c:1468: error: 'RECT' undeclared (first use in this function)
cairo-win32-surface.c:1468: error: 'rects' undeclared (first use in this function)
cairo-win32-surface.c:1470: error: 'HRGN' undeclared (first use in this function)
cairo-win32-surface.c:1470: error: expected ';' before 'gdi_region'
cairo-win32-surface.c:1482: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:1483: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c:1485: error: 'gdi_region' undeclared (first use in this function)
cairo-win32-surface.c:1487: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1488: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1503: error: 'RGNDATAHEADER' undeclared (first use in this function)
cairo-win32-surface.c:1509: error: expected expression before ')' token
cairo-win32-surface.c:1512: error: 'RDH_RECTANGLES' undeclared (first use in this function)
cairo-win32-surface.c:1536: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1536: error: 'RGN_AND' undeclared (first use in this function)
cairo-win32-surface.c:1536: error: 'ERROR' undeclared (first use in this function)
cairo-win32-surface.c: In function '_cairo_win32_surface_get_extents':
cairo-win32-surface.c:1552: error: 'cairo_win32_surface_t' has no member named 'extents'
cairo-win32-surface.c: In function '_cairo_win32_surface_show_glyphs':
cairo-win32-surface.c:1577: error: 'WORD' undeclared (first use in this function)
cairo-win32-surface.c:1577: error: expected ';' before 'glyph_buf_stack'
cairo-win32-surface.c:1578: error: 'glyph_buf' undeclared (first use in this function)
cairo-win32-surface.c:1578: error: 'glyph_buf_stack' undeclared (first use in this function)
cairo-win32-surface.c:1582: error: 'BOOL' undeclared (first use in this function)
cairo-win32-surface.c:1582: error: expected ';' before 'win_result'
cairo-win32-surface.c:1586: error: 'COLORREF' undeclared (first use in this function)
cairo-win32-surface.c:1586: error: expected ';' before 'color'
cairo-win32-surface.c:1613: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:1619: error: 'color' undeclared (first use in this function)
cairo-win32-surface.c:1625: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1627: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1627: error: too many arguments to function 'cairo_win32_scaled_font_select_font'
cairo-win32-surface.c:1628: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1629: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1629: error: 'TA_BASELINE' undeclared (first use in this function)
cairo-win32-surface.c:1629: error: 'TA_LEFT' undeclared (first use in this function)
cairo-win32-surface.c:1630: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1630: error: 'TRANSPARENT' undeclared (first use in this function)
cairo-win32-surface.c:1633: error: expected expression before ')' token
cairo-win32-surface.c:1656: error: expected ';' before 'glyphs'
cairo-win32-surface.c:1683: error: 'cairo_win32_surface_t' has no member named 'flags'
cairo-win32-surface.c:1690: error: 'ETO_GLYPH_INDEX' undeclared (first use in this function)
cairo-win32-surface.c:1693: error: 'win_result' undeclared (first use in this function)
cairo-win32-surface.c:1693: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1696: error: 'ETO_PDY' undeclared (first use in this function)
cairo-win32-surface.c:1705: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:1733: error: expected ')' before 'hdc'
cairo-win32-surface.c: In function 'cairo_win32_surface_create_with_dib':
cairo-win32-surface.c:1796: warning: return makes pointer from integer without a cast
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:1815: error: expected ')' before 'hdc'
cairo-win32-surface.c:1900: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cairo_win32_surface_get_dc'
cairo-win32-surface.c: In function 'cairo_win32_surface_get_image':
cairo-win32-surface.c:1944: error: 'cairo_win32_surface_t' has no member named 'image'
cairo-win32-surface.c: In function '_cairo_win32_surface_is_similar':
cairo-win32-surface.c:1955: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:1955: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:2023: error: expected ')' before 'hdc'
cairo-win32-surface.c: In function '_cairo_win32_restore_initial_clip':
cairo-win32-surface.c:2086: error: 'XFORM' undeclared (first use in this function)
cairo-win32-surface.c:2086: error: expected ';' before 'saved_xform'
cairo-win32-surface.c:2087: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:2088: error: 'GM_ADVANCED' undeclared (first use in this function)
cairo-win32-surface.c:2089: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:2089: error: 'saved_xform' undeclared (first use in this function)
cairo-win32-surface.c:2090: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:2090: error: 'MWT_IDENTITY' undeclared (first use in this function)
cairo-win32-surface.c:2094: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:2094: error: 'cairo_win32_surface_t' has no member named 'initial_clip_rgn'
cairo-win32-surface.c:2096: error: 'cairo_win32_surface_t' has no member named 'had_simple_clip'
cairo-win32-surface.c:2098: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c:2099: error: 'cairo_win32_surface_t' has no member named 'clip_rect'
cairo-win32-surface.c:2100: error: 'cairo_win32_surface_t' has no member named 'clip_rect'
cairo-win32-surface.c:2101: error: 'cairo_win32_surface_t' has no member named 'clip_rect'
cairo-win32-surface.c:2101: error: 'cairo_win32_surface_t' has no member named 'clip_rect'
cairo-win32-surface.c:2102: error: 'cairo_win32_surface_t' has no member named 'clip_rect'
cairo-win32-surface.c:2102: error: 'cairo_win32_surface_t' has no member named 'clip_rect'
cairo-win32-surface.c:2106: error: 'cairo_win32_surface_t' has no member named 'dc'
cairo-win32-surface.c: At top level:
cairo-win32-surface.c:2112: error: expected ')' before 'rgn'
make[3]: *** [cairo-win32-surface.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/cairo-quartz-image-surface.Tpo .deps/cairo-quartz-image-surface.Plo
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/work/cairo-1.8.10" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed
Warning: the following items did not execute (for cairo): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for cairo is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

cairo-1.8.10-debug_macports191.txt (102.2 KB) - added by hackdefendr (HackDefendr) 14 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by hackdefendr (HackDefendr)

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log

comment:1 Changed 14 years ago by hackdefendr (HackDefendr)

The solution is to add either --enable-win32=no or --disable-win32 to the configure.append section of the Portfile.

I had to download the source and try a manual build to figure this out...but now I have cairo built under 10.6.4/MP-1.91.

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: ryandesign@… removed
Keywords: cairo cairo-devel quartz no_x11 removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:3 Changed 10 years ago by jmroot (Joshua Root)

Is this still a problem with the current version?

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Summary: Cairo 1.8.10 won't build MP1.91 / SL 10.6.4 (+no_x11 +quartz -universal)cairo @1.8.10 won't build when windows.h header is present

Looks like this old version of cairo inferred that you were on Windows because it found a header called windows.h:

:info:configure checking windows.h usability... yes
:info:configure checking windows.h presence... yes
:info:configure checking for windows.h... yes

It then tried and failed to build the Windows backends, which can only be built on Windows:

:info:configure checking for cairo's Microsoft Windows surface backend feature...
:info:configure checking whether cairo's Microsoft Windows surface backend feature could be enabled... yes
:info:configure checking for cairo's Microsoft Windows font backend feature...
:info:configure checking whether cairo's Microsoft Windows font backend feature could be enabled... yes

windows.h is not a header that normally exists on macOS and I don't know of any port in MacPorts that installs it (although it would not surprise me if we found one that does) but apparently you have it on your system. You filed another contemporaneous ticket about problems caused by the unexpected presence of this header.

Cairo changed their method for detecting Windows in 2017. This new method is included in the versions of cairo that we currently have in MacPorts, cairo @1.16.0 and cairo-devel @1.17.4. So now the build will not fail, even if you unexpectedly have a windows.h header. Nevertheless I recommend you remove that header to avoid potential problems building other software in the future.

Note: See TracTickets for help on using tickets.