[cairo] Installation Problem on Mac OS X - HELP!

Jing Tang jing.t86 at gmail.com
Sat Nov 3 19:23:10 PDT 2007


Hi,

I'm trying to install Cairo on my Mac OS X 10.4.10. But it gives me  
an error:

/usr/bin/libtool: internal link edit command failed
make[2]: *** [libcairo.la] Error 1
make[2]: Leaving directory `/Developer/cairo-1.4.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Developer/cairo-1.4.10'
make: *** [all] Error 2
jing-tangs-computer:/developer/cairo-1.4.10 Jing$

The script is as follows. I'm totally new to mac. Could anyone please  
give me some directions on what I shall do to solve this problem?  
Thanks so much!!!

Cheers,

my-computer:/developer/cairo-1.4.10 Jing$ sudo -u root ./configure
Password:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for find... /usr/bin/find
checking for xargs... /usr/bin/xargs
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... i386-apple-darwin8.10.2
checking host system type... i386-apple-darwin8.10.2
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared  
libraries... yes
checking dynamic linker characteristics... darwin8.10.2 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared  
libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared  
libraries... yes
checking dynamic linker characteristics... darwin8.10.2 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking whether float word ordering is bigendian... no
checking for vasnprintf... no
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for cairo's Xlib backend...
checking for xlib... no
no
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether cairo's Xlib backend could be enabled... yes
configure: creating src/cairo-xlib.pc
checking for cairo's Xlib Xrender backend...
checking for xlib_xrender... no
no
checking X11/extensions/Xrender.h usability... no
checking X11/extensions/Xrender.h presence... no
checking for X11/extensions/Xrender.h... no
checking whether cairo's Xlib Xrender backend could be enabled... no  
(requires Xrender http://freedesktop.org/Software/xlibs)
checking for native Win32... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for cairo's Microsoft Windows backend...
checking whether cairo's Microsoft Windows backend could be  
enabled... no (requires a Win32 platform)
checking for cairo's Microsoft Windows font backend...
checking whether cairo's Microsoft Windows font backend could be  
enabled... no (requires a Win32 platform)
checking for cairo's PNG backend...
checking for png... yes
checking whether cairo's PNG backend could be enabled... yes
configure: creating src/cairo-png.pc
checking for cairo's FreeType font backend...
checking for FONTCONFIG... yes
checking for FcFini... yes
checking for FREETYPE... yes
checking whether cairo's FreeType font backend could be enabled... yes
configure: creating src/cairo-ft.pc
checking for FT_Bitmap_Size.y_ppem... yes
checking for FT_GlyphSlot_Embolden... yes
checking for FT_Load_Sfnt_Table... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for cairo's PostScript backend...
checking whether cairo's PostScript backend could be enabled... yes
configure: creating src/cairo-ps.pc
checking for cairo's PDF backend...
checking whether cairo's PDF backend could be enabled... yes
configure: creating src/cairo-pdf.pc
checking for POPPLER... no
no
configure: WARNING: PDF backend will not be tested since poppler >=  
0.4.1 is not available
checking for cairo's SVG backend...
checking whether cairo's SVG backend could be enabled... yes
configure: creating src/cairo-svg.pc
checking for LIBRSVG... no
no
configure: WARNING: SVG backend will not be tested since librsvg >=  
2.15.0 is not available
checking for stdint.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for sched_getaffinity... no
checking for sched_yield in -lrt... no
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for supported warning flags...
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wsign-compare... yes
checking whether gcc supports -Werror-implicit-function- 
declaration... yes
checking whether gcc supports -Wpointer-arith... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Wnested-externs... yes
checking whether gcc supports -Wpacked... yes
checking whether gcc supports -Wswitch-enum... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wstrict-aliasing=2... yes
checking whether gcc supports -Winit-self... yes
checking whether gcc supports -Wunsafe-loop-optimizations... no
checking whether gcc supports -Wdeclaration-after-statement... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-attributes... no
checking which warning flags were supported...  -Wall -Wextra -Wsign- 
compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite- 
strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing- 
declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format- 
attribute -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after- 
statement -Wold-style-definition -Wno-missing-field-initializers -Wno- 
unused-parameter
checking how to enable unused result warnings...
checking whether gcc supports -fno-strict-aliasing... yes
checking for MMX/SSE intrinsics in the compiler... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating boilerplate/Makefile
config.status: creating pixman/Makefile
config.status: creating pixman/src/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating test/pdiff/Makefile
config.status: creating perf/Makefile
config.status: creating util/Makefile
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating doc/public/version.xml
config.status: creating src/cairo.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing src/cairo-features.h commands
config.status: creating src/cairo-features.h
config.status: src/cairo-features.h is unchanged

cairo will be compiled with the following surface backends:
   image:         yes (always builtin)
   Xlib:          yes
   Xlib Xrender:  no (requires Xrender http://freedesktop.org/ 
Software/xlibs)
   Quartz:        no (disabled, use --enable-quartz to enable)
   XCB:           no (disabled, use --enable-xcb to enable)
   Win32:         no (requires a Win32 platform)
   OS2:           no (disabled, use --enable-os2 to enable)
   PostScript:    yes
   PDF:           yes
   SVG:           yes
   glitz:         no (disabled, use --enable-glitz to enable)
   BeOS:          no (disabled, use --enable-beos to enable)
   DirectFB:      no (disabled, use --enable-directfb to enable)

the following font backends:
   FreeType:      yes
   Win32:         no (requires a Win32 platform)
   ATSUI:         no (disabled, use --enable-atsui to enable)

the following features:
   PNG functions: yes

and the following debug options:
   gcov support:  no
   test surfaces: no
   pdf testing:   no (requires poppler-glib >= 0.4.1)
   svg testing:   no (requires librsvg-2.0 >= 2.15.0)

using CFLAGS:
-I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/ 
include -I/opt/local/include/libpng12 -I/usr/X11R6/include -Wall - 
Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer- 
arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - 
Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum - 
Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self - 
Wdeclaration-after-statement -Wold-style-definition -Wno-missing- 
field-initializers -Wno-unused-parameter -fno-strict-aliasing

my-computer:/developer/cairo-1.4.10 Jing$ sudo -u root make
make  all-recursive
make[1]: Entering directory `/Developer/cairo-1.4.10'
Making all in pixman
make[2]: Entering directory `/Developer/cairo-1.4.10/pixman'
Making all in src
make[3]: Entering directory `/Developer/cairo-1.4.10/pixman/src'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/Developer/cairo-1.4.10/pixman/src'
make[3]: Entering directory `/Developer/cairo-1.4.10/pixman'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/Developer/cairo-1.4.10/pixman'
make[2]: Leaving directory `/Developer/cairo-1.4.10/pixman'
Making all in src
make[2]: Entering directory `/Developer/cairo-1.4.10/src'
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L/opt/gtk/lib - 
o libcairo.la -rpath /usr/local/lib -version-info 13:5:11 -no- 
undefined  cairo.lo cairo-arc.lo cairo-array.lo cairo-base85- 
stream.lo cairo-bentley-ottmann.lo cairo-cache.lo cairo-clip.lo cairo- 
color.lo cairo-debug.lo cairo-fixed.lo cairo-font-face.lo cairo-font- 
options.lo cairo-freelist.lo cairo-gstate.lo cairo-hash.lo cairo- 
hull.lo cairo-image-surface.lo cairo-lzw.lo cairo-matrix.lo cairo- 
mutex.lo cairo-operator.lo cairo-path.lo cairo-path-bounds.lo cairo- 
path-fill.lo cairo-path-fixed.lo cairo-path-stroke.lo cairo-pen.lo  
cairo-polygon.lo cairo-rectangle.lo cairo-region.lo cairo-scaled- 
font.lo cairo-skiplist.lo cairo-slope.lo cairo-spline.lo cairo-stroke- 
style.lo cairo-surface.lo cairo-surface-fallback.lo cairo-traps.lo  
cairo-pattern.lo cairo-unicode.lo cairo-output-stream.lo cairo- 
wideint.lo cairo-meta-surface.lo cairo-paginated-surface.lo cairo- 
analysis-surface.lo  cairo-ft-font.lo cairo-ps-surface.lo cairo-pdf- 
surface.lo cairo-deflate-stream.lo cairo-png.lo cairo-svg-surface.lo   
cairo-cff-subset.lo cairo-truetype-subset.lo cairo-type1-fallback.lo  
cairo-scaled-font-subsets.lo cairo-type1-subset.lo cairo-xlib- 
surface.lo cairo-xlib-display.lo cairo-xlib-screen.lo        ../ 
pixman/src/libpixman.la -lz -L/opt/local/lib -lfreetype -lz   -L/opt/ 
local/lib -lfontconfig -lexpat   -L/opt/local/lib -lpng12    -lSM - 
lICE  -L/usr/X11R6/lib -lX11
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 /developer/cairo-1.4.10/src/../pixman/src/.libs/libpixman.a
(cd .libs/libcairo.lax/libpixman.a && ar x /developer/cairo-1.4.10/ 
src/../pixman/src/.libs/libpixman.a)
gcc -dynamiclib  -o .libs/libcairo.2.11.5.dylib  .libs/cairo.o .libs/ 
cairo-arc.o .libs/cairo-array.o .libs/cairo-base85-stream.o .libs/ 
cairo-bentley-ottmann.o .libs/cairo-cache.o .libs/cairo-clip.o .libs/ 
cairo-color.o .libs/cairo-debug.o .libs/cairo-fixed.o .libs/cairo- 
font-face.o .libs/cairo-font-options.o .libs/cairo-freelist.o .libs/ 
cairo-gstate.o .libs/cairo-hash.o .libs/cairo-hull.o .libs/cairo- 
image-surface.o .libs/cairo-lzw.o .libs/cairo-matrix.o .libs/cairo- 
mutex.o .libs/cairo-operator.o .libs/cairo-path.o .libs/cairo-path- 
bounds.o .libs/cairo-path-fill.o .libs/cairo-path-fixed.o .libs/cairo- 
path-stroke.o .libs/cairo-pen.o .libs/cairo-polygon.o .libs/cairo- 
rectangle.o .libs/cairo-region.o .libs/cairo-scaled-font.o .libs/ 
cairo-skiplist.o .libs/cairo-slope.o .libs/cairo-spline.o .libs/cairo- 
stroke-style.o .libs/cairo-surface.o .libs/cairo-surface- 
fallback.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-paginated-surface.o .libs/cairo- 
analysis-surface.o .libs/cairo-ft-font.o .libs/cairo-ps- 
surface.o .libs/cairo-pdf-surface.o .libs/cairo-deflate- 
stream.o .libs/cairo-png.o .libs/cairo-svg-surface.o .libs/cairo-cff- 
subset.o .libs/cairo-truetype-subset.o .libs/cairo-type1- 
fallback.o .libs/cairo-scaled-font-subsets.o .libs/cairo-type1- 
subset.o .libs/cairo-xlib-surface.o .libs/cairo-xlib-display.o .libs/ 
cairo-xlib-screen.o  .libs/libcairo.lax/libpixman.a/libpixman_la- 
fbcompose.o .libs/libcairo.lax/libpixman.a/libpixman_la- 
fbedge.o .libs/libcairo.lax/libpixman.a/libpixman_la-fbpict.o .libs/ 
libcairo.lax/libpixman.a/libpixman_la-fbtrap.o .libs/libcairo.lax/ 
libpixman.a/libpixman_la-icblt.o .libs/libcairo.lax/libpixman.a/ 
libpixman_la-icbltone.o .libs/libcairo.lax/libpixman.a/libpixman_la- 
iccolor.o .libs/libcairo.lax/libpixman.a/libpixman_la- 
icformat.o .libs/libcairo.lax/libpixman.a/libpixman_la- 
icimage.o .libs/libcairo.lax/libpixman.a/libpixman_la- 
icpixels.o .libs/libcairo.lax/libpixman.a/libpixman_la-icrect.o .libs/ 
libcairo.lax/libpixman.a/libpixman_la-icstipple.o .libs/libcairo.lax/ 
libpixman.a/libpixman_la-ictransform.o .libs/libcairo.lax/libpixman.a/ 
libpixman_la-ictrap.o .libs/libcairo.lax/libpixman.a/libpixman_la- 
ictri.o .libs/libcairo.lax/libpixman.a/libpixman_la-icutil.o .libs/ 
libcairo.lax/libpixman.a/libpixman_la-pixregion.o .libs/libcairo.lax/ 
libpixman.a/libpixman_la-renderedge.o .libs/libcairo.lax/libpixman.a/ 
libpixman_mmx_la-fbmmx.o   -L/opt/gtk/lib -L/opt/local/lib /opt/local/ 
lib/libfreetype.dylib /opt/local/lib/libz.dylib -lz /opt/local/lib/ 
libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/ 
libpng12.dylib -lSM -lICE -L/usr/X11R6/lib -lX11  -install_name  /usr/ 
local/lib/libcairo.2.dylib -Wl,-compatibility_version -Wl,14 -Wl,- 
current_version -Wl,14.5
ld: Undefined symbols:
_XRenderAddGlyphs
_XRenderChangePicture
_XRenderComposite
_XRenderCompositeText16
_XRenderCompositeText32
_XRenderCompositeText8
_XRenderCompositeTrapezoids
_XRenderCreateGlyphSet
_XRenderCreatePicture
_XRenderFillRectangle
_XRenderFillRectangles
_XRenderFindStandardFormat
_XRenderFindVisualFormat
_XRenderFreeGlyphSet
_XRenderFreeGlyphs
_XRenderFreePicture
_XRenderQueryVersion
_XRenderSetPictureClipRectangles
_XRenderSetPictureFilter
_XRenderSetPictureTransform
_XRenderQueryExtension
_XRenderQuerySubpixelOrder
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libcairo.la] Error 1
make[2]: Leaving directory `/Developer/cairo-1.4.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Developer/cairo-1.4.10'
make: *** [all] Error 2
my-computer:/developer/cairo-1.4.10 Jing$


Jing Tang
School of Computer Science
University of Birmingham
Mobile: 07872645655
E-mail: jing.t86 at gmail.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20071104/1fa85fe0/attachment.html 


More information about the cairo mailing list