<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - 1.12.2 won't build on Solaris w/ Sun Studio cc. _cairo_unbounded_rectangle undefined symbol"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=49669#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - 1.12.2 won't build on Solaris w/ Sun Studio cc. _cairo_unbounded_rectangle undefined symbol"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=49669">bug 49669</a>
              from <span class="vcard"><a class="email" href="mailto:mark@ibiblio.org" title="mark@ibiblio.org">mark@ibiblio.org</a>
</span></b>
        <pre>The use of -xO1 resulted in another build error, during the `make install'.
This was on X86 Solaris 10 and 11. On Solaris 10 SPARC it had the same issue.

The compiler is now Sun Studio 12.3, and the machines are quite patched up.

On Solaris 11 x86:

    setenv CC "cc -xc99 -xO1"
    setenv CXX "CC -xc99 -xO1"
    setenv CFLAGS "-L/usr/local/lib -I/usr/local/include"
    setenv CPPFLAGS "-I/usr/local/include"
    cd /var/tmp
    rm -rf /cairo cairo-1.12.14
    unxz -c /usr/local/src/graphics/cairo-1.12.14.tar.xz | tar -xvf -
    mkdir /cairo
    cd cairo-1.12.14
    ./configure --prefix=/cairo \
        --enable-xml \
        --enable-xlib-xcb \
        --disable-silent-rules \
        --with-x
    gmake
    gmake install

Making install in cairo-gobject
gmake[4]: Entering directory `/var/tmp/cairo-1.12.14/util/cairo-gobject'
gmake[5]: Entering directory `/var/tmp/cairo-1.12.14/util/cairo-gobject'
 ../../build/install-sh -c -d '/cairo/lib'
 /bin/sh ../../libtool   --mode=install /usr/local/bin/ginstall -c  
libcairo-gobject.la '/cairo/lib'
libtool: install: warning: relinking `libcairo-gobject.la'
libtool: install: (cd /var/tmp/cairo-1.12.14/util/cairo-gobject; /bin/sh
/var/tmp/cairo-1.12.14/libtool  --tag CC --mode=relink cc -xc99 -xO1
-D_REENTRANT -I/usr/local/include/pixman-1 -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include
-I/usr/local/include/libpng16 -I/usr/local/include -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -I/usr/local/include
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include
-erroff=E_ENUM_TYPE_MISMATCH_ARG -erroff=E_ENUM_TYPE_MISMATCH_OP
-Wp,-D_FORTIFY_SOURCE=2 -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include -L/usr/local/lib
-I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -version-info 11202:14:11200
-no-undefined -o libcairo-gobject.la -rpath /cairo/lib
libcairo_gobject_la-cairo-gobject-enums.lo
libcairo_gobject_la-cairo-gobject-structs.lo ../../src/libcairo.la
-L/usr/local/lib -lpixman-1 -L/usr/local/lib -lfontconfig -L/usr/local/lib
-lfreetype -L/usr/local/lib -lpng16 -L/usr/local/lib -lxcb-shm -lxcb
-L/usr/local/lib -lX11-xcb -lX11 -lxcb -L/usr/local/lib -lxcb-render -lxcb
-L/usr/local/lib -lXrender -lX11 -L/usr/local/lib -lX11 -lXext -lz -lz -lz
-L/usr/local/lib -lgobject-2.0 -lglib-2.0 -lintl -lrt -lm )
libtool: relink: cc -xc99 -xO1 -G -z defs -h libcairo-gobject.so.2 -o
.libs/libcairo-gobject.so.2.11200.14 
.libs/libcairo_gobject_la-cairo-gobject-enums.o
.libs/libcairo_gobject_la-cairo-gobject-structs.o   -R/cairo/lib
-R/usr/local/lib -L/usr/local/lib -L/cairo/lib -lcairo -lpixman-1 -lfontconfig
-lfreetype -lpng16 -lxcb-shm -lX11-xcb -lxcb-render -lxcb -lXrender -lX11
-lXext -lz -lgobject-2.0 -lglib-2.0 -lintl -lrt -lm -lc   
Undefined                       first referenced
 symbol                             in file
cairo_region_destroy               
.libs/libcairo_gobject_la-cairo-gobject-structs.o
cairo_device_reference             
.libs/libcairo_gobject_la-cairo-gobject-structs.o
cairo_region_reference             
.libs/libcairo_gobject_la-cairo-gobject-structs.o
cairo_device_destroy               
.libs/libcairo_gobject_la-cairo-gobject-structs.o
ld: fatal: symbol referencing errors. No output written to
.libs/libcairo-gobject.so.2.11200.14
libtool: install: error: relink `libcairo-gobject.la' with the above command
before installing it
gmake[5]: *** [install-libLTLIBRARIES] Error 1
gmake[5]: Leaving directory `/var/tmp/cairo-1.12.14/util/cairo-gobject'
gmake[4]: *** [install-am] Error 2
gmake[4]: Leaving directory `/var/tmp/cairo-1.12.14/util/cairo-gobject'
gmake[3]: *** [install-recursive] Error 1
gmake[3]: Leaving directory `/var/tmp/cairo-1.12.14/util'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/var/tmp/cairo-1.12.14/util'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/cairo-1.12.14'
gmake: *** [install] Error 2</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>