Cairo and pango build notes
authordavshao <davshao@web>
Sun, 23 May 2010 03:16:11 +0000 (20:16 -0700)
committerCharlie <root@leaf.dragonflybsd.org>
Sun, 23 May 2010 03:16:11 +0000 (20:16 -0700)
docs/developer/GEMdrmKMS/index.mdwn

index 39f06ae..73f16a1 100644 (file)
@@ -355,7 +355,48 @@ Running
     gmake check
 after building any of the above three projects appears to produce passes tests.
 
+### XML
 
+#### libxml2
 
+*autogen.sh* calls *configure*
+
+11 tests fail after *gmake check*
+
+### Cairo
+
+Seems to require
+
+    export LDFLAGS="-L${PREFIX}/lib -Wl,-rpath -Wl,${PREFIX}/lib -L${PREFIX}/lib/X11 -Wl,-rpath -Wl,${PREFIX}/lib/X11"
+    export CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/X11/include"
+
+When using gcc 4.1.2, *gmake check* gives:
+
+      LINK  check-link
+    ./.libs/libcairo.so: undefined reference to `__umodti3'
+    ./.libs/libcairo.so: undefined reference to `__udivti3'
+
+When using *CCVER=gcc44* to force gcc 4.4, one obtains the worse:
+
+      CHECK cairo.h
+    cc1: error: unrecognized command line option "-Wlogical-op"
+      CHECK cairo-deprecated.h
+    cc1: error: unrecognized command line option "-Wlogical-op"
+    ...
+
+The problem is 128-bit division using gcc 4.1.2 as discussed earlier.  One can examine
+*src/cairo-wideint.c* and see the telltale code enclosed in an if test for *HAVE_UINT128_T*
+with 128-bit division if defined.
+
+### Pango
+
+Install *gnome-common* first, required.
+
+If Cairo is not built with *CCVER=gcc44*, obtain build error similar to
+
+      CCLD   pango-view
+    /opt/xcatch/lib/libcairo.so: undefined reference to `__umodti3'
+    /opt/xcatch/lib/libcairo.so: undefined reference to `__udivti3'
+    gmake[3]: *** [pango-view] Error 1