[cairo] ../doltlibtool: line 11: syntax error near unexpected token `"$arg"'

Ryan Schmidt cairo-2008c at ryandesign.com
Sun Nov 9 00:38:32 PST 2008


To upgrade cairo in MacPorts from 1.8.0 to 1.8.2, I tried patching  
src/cairo-xlib-surface.c as you suggested, replacing RepeatNone with  
0 and RepeatNormal with 1, until we can upgrade xrender (see the  
thread "error: 'RepeatNone' undeclared (first use in this  
function)" [1]). Now I get a new error:


../doltlibtool --tag=CC   --mode=link gcc  -O2 -isysroot /Developer/ 
SDKs/MacOSX10.4u.sdk -arch ppc -version-info 10802:2:10800 -no- 
undefined  -L/mp/lib -arch ppc -o libcairo.la -rpath /mp/ 
lib                                       cairo-analysis-surface.lo  
cairo-arc.lo cairo-array.lo cairo-atomic.lo cairo-base85-stream.lo  
cairo-bentley-ottmann.lo cairo.lo cairo-cache.lo cairo-clip.lo cairo- 
color.lo cairo-debug.lo cairo-fixed.lo cairo-font-face.lo cairo-font- 
face-twin.lo cairo-font-face-twin-data.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-meta-surface.lo cairo- 
misc.lo cairo-mutex.lo cairo-output-stream.lo cairo-paginated- 
surface.lo cairo-path-bounds.lo cairo-path.lo cairo-path-fill.lo  
cairo-path-fixed.lo cairo-path-stroke.lo cairo-pattern.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- 
system.lo cairo-traps.lo cairo-unicode.lo cairo-user-font.lo cairo- 
version.lo cairo-wideint.lo cairo-cff-subset.lo cairo-scaled-font- 
subsets.lo cairo-truetype-subset.lo cairo-type1-fallback.lo cairo- 
type1-subset.lo cairo-type3-glyph-surface.lo cairo-pdf-operators.lo  
cairo-xlib-display.lo cairo-xlib-screen.lo cairo-xlib-surface.lo  
cairo-xlib-visual.lo   cairo-quartz-surface.lo cairo-quartz-font.lo  
cairo-quartz-image-surface.lo     cairo-png.lo   cairo-ft-font.lo  
cairo-ps-surface.lo cairo-pdf-surface.lo cairo-deflate-stream.lo  
cairo-svg-surface.lo  -L/mp/lib -lpixman-1      -Wl,- 
framework,CoreServices -Wl,-framework,ApplicationServices -L/mp/lib - 
lfreetype -lz   -Wl,-framework,CoreServices -Wl,- 
framework,ApplicationServices -L/mp/lib -lfontconfig -lexpat - 
lfreetype -lz   -L/mp/lib -lpng12 -lz     -Xlinker -framework - 
Xlinker ApplicationServices -L/mp/lib -L/usr/X11R6/lib -lXrender - 
lX11         -lz -lz        -lSM -lICE  -L/usr/X11R6/lib -lX11
../doltlibtool: line 11: syntax error near unexpected token `"$arg"'


doltlibtool's shebang line points to /bin/bash which, on Mac OS X  
10.4.11, is bash 2.05b.0(1)-release.

If I install MacPorts bash, which is 3.2.39(1)-release, and change  
the shebang line to point to it, the build works.

So line 11 of doltlibtool must use a bash 3-ism. Can that line be  
changed to work with bash 2?



[1] http://lists.cairographics.org/archives/cairo/2008-October/ 
015587.html




More information about the cairo mailing list