[cairo] Cairo 1.8.6 on Mac Os X 10.5.6 through macport

Ryan Schmidt cairo-2008c at ryandesign.com
Sat Jan 3 14:32:48 PST 2009


On Jan 3, 2009, at 10:42, Alain Marcotte wrote:

> Hi,I am new to this mailing list but I search the mail archive list
> and haven't found a related stream.
>
> When trying to install Cairo 1.8.6 on Mac Os X 10.5.6 through macport
> I got the following message.

Hi Alain. I am the maintainer of cairo in MacPorts, and cairo 1.8.6  
installs just fine for me on a Power Mac G4 with Mac OS X 10.5.6,  
Xcode 3.1.2 and MacPorts 1.7.0.


> bash-3.2$ sudo port upgrade cairo
> Password:
> --->  Building cairo
> Error: Target org.macports.build returned: shell command " cd "/opt/
> local/var/macports/build/_opt_local_
> var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/
> work/cairo-1.8.6" && make all " ret
> urned error 2
> Command output: make  all-recursive
> Making all in src
> make  all-am
> ../doltcompile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I..  -I. -I/opt/
> local/include/pixman-1      -I/opt/
> local/include/freetype2 -I/opt/local/include   -I/opt/local/ 
> include   -
> I/opt/local/include/libpng12
>   -I/usr/X11/include   -I/usr/X11/include     -Wall -Wextra -Wsign-
> compare -Werror-implicit-function-decl
> aration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-
> prototypes -Wmissing-declarations
> -Wnested-externs -Wpacked -Wswitch-enum -Wstrict-aliasing=2 -Winit-
> self -Wdeclaration-after-statement -W
> old-style-definition -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  -O2 -MT cairo-qua
> rtz-surface.lo -MD -MP -MF .deps/cairo-quartz-surface.Tpo -c -o cairo-
> quartz-surface.lo cairo-quartz-sur
> face.c
> cairo-quartz-surface.c: In function 'quartz_ensure_symbols':
> cairo-quartz-surface.c:144: error: 'RTLD_DEFAULT' undeclared (first
> use in this function)
> cairo-quartz-surface.c:144: error: (Each undeclared identifier is
> reported only once
> cairo-quartz-surface.c:144: error: for each function it appears in.)
> make[3]: *** [cairo-quartz-surface.lo] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

I searched Google for the error message, and found this suggestion:

http://www.mail-archive.com/fink-users@lists.sourceforge.net/ 
msg28266.html

> Do you have a file /usr/local/include/dlfcn.h?
> If yes, remove it.


It is not supported to have anything in /usr/local/lib or /usr/local/ 
include when you use MacPorts, because such things frequently  
interfere with software installed using MacPorts.

After removing (or moving aside) that file and anything else you may  
have in /usr/local/lib or /usr/local/include, clean cairo:

sudo port clean cairo

Then you can try again to upgrade it:

sudo port upgrade cairo




More information about the cairo mailing list