[cairo-bugs] [Bug 5382] New: test apps fail to build, dll missing symbols, on cygwin

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 18 23:54:41 PST 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=5382          
     
           Summary: test apps fail to build, dll missing symbols, on cygwin
           Product: cairo
           Version: 1.0.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: davek at csh.rit.edu
         QAContact: cairo-bugs at cairographics.org


I've been trying to track down the source of this missing symbol for some time
now.  Here's the tail of the build...

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -I. -I../pixman/src -I../src
-I../src -I/usr/X11R6/include    -I/usr/local/include/lib
then mv -f ".deps/imagediff.Tpo" ".deps/imagediff.Po"; else rm -f
".deps/imagediff.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -Wl,-no-undefined -o
imagediff.exe  imagediff.o libcairotest.la ../src/libcairo.la
gcc -g -O2 -Wl,-no-undefined -o .libs/imagediff.exe imagediff.o 
./.libs/libcairotest.a ../src/.libs/libcairo.dll.a -L/usr/X11R6/lib -lX
./.libs/libcairotest.a(cairo-test.o): In function `create_xlib_surface':
/home/ddombrowsky/download/cairo-1.0.2/test/cairo-test.c:425: undefined
reference to `_cairo_xlib_surface_create_with_xrender_format'
collect2: ld returned 1 exit status
make[2]: *** [imagediff.exe] Error 1
make[2]: Leaving directory `/home/ddombrowsky/download/cairo-1.0.2/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ddombrowsky/download/cairo-1.0.2'
make: *** [all] Error 2

I try looking for the symbol ->

ddombrowsky% nm src/.libs/libcairo.a | grep
_cairo_xlib_surface_create_with_xrender_format
00002130 T _cairo_xlib_surface_create_with_xrender_format
ddombrowsky% nm src/.libs/libcairo.dll.a | grep
_cairo_xlib_surface_create_with_xrender_format
[nothing returned]

am I doing something wrong or is that dll missing the symbol while the static
lib has it.  sounds like an issue with the linker, but I've got the most recent
gnu binutils, libtool, and gcc built native on the box.  Unless there's a bug in
the code for cygwin, I can't think of another source.          
     
     
--           
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