[cairo-bugs] [Bug 4683] New: __global_image_glyph_cache_mutex not defined

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 4 03:56:28 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=4683          
     
           Summary: __global_image_glyph_cache_mutex not defined
           Product: cairo
           Version: 1.0.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: win32 backend
        AssignedTo: otaylor at redhat.com
        ReportedBy: mathias.hasselmann at gmx.de
         QAContact: cairo-bugs at cairographics.org


Building **version 1.0.2** for mingw32 without pthreads support fails:

 i386-mingw32msvc-gcc -shared .libs/libcairo-2.dll.def  .libs/cairo.o
.libs/cairo-arc.o .libs/cairo-array.o .libs/cairo-cache.o .libs/cairo-clip.o
.libs/cairo-color.o .libs/cairo-debug.o .libs/cairo-fixed.o .libs/cairo-font.o
.libs/cairo-font-options.o .libs/cairo-gstate.o .libs/cairo-hash.o
.libs/cairo-hull.o .libs/cairo-image-surface.o .libs/cairo-matrix.o
.libs/cairo-path.o .libs/cairo-path-bounds.o .libs/cairo-path-data.o
.libs/cairo-path-fill.o .libs/cairo-path-stroke.o .libs/cairo-pen.o
.libs/cairo-polygon.o .libs/cairo-region.o .libs/cairo-slope.o
.libs/cairo-spline.o .libs/cairo-surface.o .libs/cairo-traps.o
.libs/cairo-pattern.o .libs/cairo-unicode.o .libs/cairo-output-stream.o
.libs/cairo-wideint.o .libs/cairo-meta-surface.o .libs/cairo-ft-font.o
.libs/cairo-pdf-surface.o .libs/cairo-font-subset.o .libs/cairo-win32-surface.o
.libs/cairo-win32-font.o -Wl,--whole-archive ../pixman/src/.libs/libpixman.a
-Wl,--no-whole-archive  -L/var/tmp/photobuch/runtime/toolkit/lib -lgdi32
-lmsimg32 /var/tmp/photobuch/runtime/toolkit/lib/libfontconfig.dll.a
/var/tmp/photobuch/runtime/toolkit/lib/libfreetype.dll.a -lz -lm  -march=i686 -o
.libs/libcairo-2.dll -Wl,--image-base=0x10000000
-Wl,--out-implib,.libs/libcairo.dll.a
Creating library file: .libs/libcairo.dll.a
.libs/cairo-font.o(.text+0x1289):cairo-font.c: undefined reference to
`__global_image_glyph_cache_mutex'
.libs/cairo-font.o(.text+0x12b2):cairo-font.c: undefined reference to
`__global_image_glyph_cache_mutex'
.libs/cairo-font.o(.text+0x12d5):cairo-font.c: undefined reference to
`__global_image_glyph_cache_mutex'

Fix is to declare "_global_image_glyph_cache_mutex" in "cairo-win32-surface.c"
and to initialize it in "DllMain".

Wondering why that mutex doesn't has a "cairo" prefix like its friends.          
     
     
--           
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