Bug 4742

Summary: Problem when building cairo 1.0.2 on Mac OS X 10.3
Product: cairo Reporter: Rod <zarrinp>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED WORKSFORME QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high CC: Brian.Ewins
Version: 1.1.1   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Rod 2005-10-11 01:29:07 UTC
Hello,
I have a problem when building cairo on Mac OS X 10.3. As you can see in the 
log, the linker can't find a symbol. Is my freetype version (2.1.10) which 
cause problem ?
Thanks.

/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o libcairo.la  
-rpath /usr/local/lib -version-info 4:3:2 -no-undefined  cairo.lo cairo-arc.lo 
cairo-array.lo cairo-cache.lo cairo-clip.lo cairo-color.lo cairo-debug.lo 
cairo-fixed.lo cairo-font.lo cairo-font-options.lo cairo-gstate.lo cairo-
hash.lo cairo-hull.lo cairo-image-surface.lo cairo-matrix.lo cairo-path.lo 
cairo-path-bounds.lo cairo-path-data.lo cairo-path-fill.lo cairo-path-
stroke.lo cairo-pen.lo cairo-polygon.lo cairo-region.lo cairo-slope.lo cairo-
spline.lo cairo-surface.lo cairo-traps.lo cairo-pattern.lo cairo-unicode.lo 
cairo-output-stream.lo  
cairo-wideint.lo cairo-meta-surface.lo  cairo-ft-font.lo      
cairo-xlib-surface.lo cairo-xlib-screen.lo       
../pixman/src/libpixman.la -L/usr/X11R6/lib -lXrender -lXext -lX11       
-L/usr/local/lib -lfontconfig   -L/usr/local/lib -lfreetype -lz
rm -fr  .libs/libcairo.lax
rm -fr .libs/libcairo.lax
mkdir .libs/libcairo.lax
rm -fr .libs/libcairo.lax/libpixman.a
mkdir .libs/libcairo.lax/libpixman.a
Extracting
/Users/rod/Desktop/cairo-1.0.2/src/../pixman/src/.libs/libpixman.a
(cd .libs/libcairo.lax/libpixman.a && ar x
/Users/rod/Desktop/cairo-1.0.2/src/../pixman/src/.libs/libpixman.a)
gcc -dynamiclib  -o .libs/libcairo.2.2.3.dylib  .libs/cairo.o .libs/cairo-
arc.o .libs/cairo-array.o .libs/cairo-cache.o .libs/cairo-clip.o .libs/cairo-
color.o .libs/cairo-debug.o .libs/cairo-fixed.o .libs/cairo-font.o .libs/cairo-
font-options.o .libs/cairo-gstate.o .libs/cairo-hash.o .libs/cairo-
hull.o .libs/cairo-image-surface.o .libs/cairo-matrix.o .libs/cairo-
path.o .libs/cairo-path-bounds.o .libs/cairo-path-data.o .libs/cairo-path-
fill.o .libs/cairo-path-stroke.o .libs/cairo-pen.o .libs/cairo-
polygon.o .libs/cairo-region.o .libs/cairo-slope.o .libs/cairo-
spline.o .libs/cairo-surface.o .libs/cairo-traps.o .libs/cairo-
pattern.o .libs/cairo-unicode.o .libs/cairo-output-stream.o .libs/cairo-
wideint.o .libs/cairo-meta-surface.o .libs/cairo-ft-font.o  
.libs/cairo-xlib-surface.o .libs/cairo-xlib-screen.o   
.libs/libcairo.lax/libpixman.a/fbcompose.o
.libs/libcairo.lax/libpixman.a/fbedge.o
.libs/libcairo.lax/libpixman.a/fbpict.o
.libs/libcairo.lax/libpixman.a/fbtrap.o
.libs/libcairo.lax/libpixman.a/icblt.o
.libs/libcairo.lax/libpixman.a/icbltone.o
.libs/libcairo.lax/libpixman.a/iccolor.o
.libs/libcairo.lax/libpixman.a/icformat.o
.libs/libcairo.lax/libpixman.a/icimage.o
.libs/libcairo.lax/libpixman.a/icpixels.o
.libs/libcairo.lax/libpixman.a/icrect.o
.libs/libcairo.lax/libpixman.a/icstipple.o
.libs/libcairo.lax/libpixman.a/ictransform.o
.libs/libcairo.lax/libpixman.a/ictrap.o
.libs/libcairo.lax/libpixman.a/ictri.o
.libs/libcairo.lax/libpixman.a/icutil.o
.libs/libcairo.lax/libpixman.a/pixregion.o  
.libs/libcairo.lax/libpixman.a/renderedge.o   -L/usr/X11R6/lib  
-lXrender -lXext -lX11 -L/usr/local/lib -lfontconfig -lfreetype -lz   
-install_name  /usr/local/lib/libcairo.2.dylib -Wl,-compatibility_version -
Wl,5 -Wl,-current_version -Wl,5.3
ld: Undefined symbols:
_FT_GlyphSlot_Embolden
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libcairo.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 Brian Ewins 2007-03-27 15:53:16 UTC
Sorry about the lack of response to your bug report.

Despite not seeing /opt in there, I'm guessing you used darwinports? They had a bug that looks to be identical:
http://trac.macports.org/projects/macports/ticket/5435
(also their bug 5434). A darwinports issue was causing the version of freetype shipped by apple to be picked up before the more recent version needed by other programs.

Are you still getting the problem with more recent cairo releases?
Comment 2 Benjamin Close 2008-01-11 02:35:58 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 3 Jeremy Huddleston Sequoia 2008-05-06 01:18:35 UTC
We're using cairo fine on Leopard.  Please reopen if this is still an issue.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.