can't build cairo

Kevin Layer layer at franz.com
Thu Oct 28 17:44:33 PDT 2010


I followed the "remove all traces of macports" instructions from the
website/documentation, then did:
 
1. Install MacPorts 1.9.1.

2. Edit /opt/local/etc/macports/macports.conf to update to:

   universal_archs i386 x86_64

Then, got this:

# port install gtk2 +x11 +universal


--->  Attempting to fetch cairo-1.10.0.tar.gz from http://distfiles.macports.org/cairo
--->  Verifying checksum(s) for cairo
--->  Extracting cairo
--->  Applying patches to cairo
--->  Configuring cairo
--->  Building cairo
Error: Target org.macports.build returned: shell command failed
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: The following dependencies failed to build: pango cairo shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXext xorg-libXfixes xorg-fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
bigmac# ls -l /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log
-rw-r--r--  1 root  admin  251346 Oct 28 17:13 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log



The last part of /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log

is

...
:info:build /bin/sh ../libtool --silent --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..  -I. -D_REENTRANT   -I/opt/local/include/pixman-1      -I/opt/local/include   -I/opt/local/include/freetype2 -I/opt/local/include   -I/opt/local/include/libpng12   -I/opt/local/include   -I/opt/local/include     -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wbad-function-cast -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2                 -I/opt/local/include  -pipe -O2 -arch x86_64 -c -o cairo-ps-surface.lo cairo-ps-surface.c
:info:build cairo-xlib-surface.c: In function '_cairo_xlib_surface_composite_trapezoids':
:info:build cairo-xlib-surface.c:1101: warning: 'precision' may be used uninitialized in this function
:info:build   CC     cairo-pdf-surface.lo
:info:build /bin/sh ../libtool --silent --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..  -I. -D_REENTRANT   -I/opt/local/include/pixman-1      -I/opt/local/include   -I/opt/local/include/freetype2 -I/opt/local/include   -I/opt/local/include/libpng12   -I/opt/local/include   -I/opt/local/include     -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wbad-function-cast -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2                 -I/opt/local/include  -pipe -O2 -arch x86_64 -c -o cairo-pdf-surface.lo cairo-pdf-surface.c
:info:build   CC     cairo-svg-surface.lo
:info:build /bin/sh ../libtool --silent --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..  -I. -D_REENTRANT   -I/opt/local/include/pixman-1      -I/opt/local/include   -I/opt/local/include/freetype2 -I/opt/local/include   -I/opt/local/include/libpng12   -I/opt/local/include   -I/opt/local/include     -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-declarations -Werror-implicit-function-declaration -Wnested-externs -Wpointer-arith -Wwrite-strings -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wpacked -Wswitch-enum -Wbad-function-cast -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2                 -I/opt/local/include  -pipe -O2 -arch x86_64 -c -o cairo-svg-surface.lo cairo-svg-surface.c
:info:build cairo-pdf-surface.c: In function '_cairo_pdf_surface_write_patterns_and_smask_groups':
:info:build cairo-pdf-surface.c:2137: warning: 'interpolate' may be used uninitialized in this function
:info:build   CCLD   libcairo.la
:info:build Undefined symbols:
:info:build   "___umodti3", referenced from:
:info:build       __cairo_uint128_divrem in cairo-wideint.o
:info:build   "___udivti3", referenced from:
:info:build       __cairo_uint128_divrem in cairo-wideint.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[3]: *** [libcairo.la] Error 1
:info:build make[2]: *** [all] Error 2
:info:build make[1]: *** [all-recursive] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/work/cairo-1.10.0-x86_64" && /usr/bin/make -j4 all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for cairo): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for cairo is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/main.log
# 



Ideas on how to move forward?



More information about the macports-users mailing list