The ELC Community Blog
A knowledge exchange on Ruby on Rails and Agile Development
Leopard ImageMagick
by jsiegel on October 28, 2007
You've likely found this post if you are rebuilding a Rails environment on Leopard and tried to install ImageMagick via MacPorts. Using the install command:
sudo port install imagemagick
You will see a lot of nice compiling and then failure with the following error:
tiffgt.c:303: warning: unused parameter 'x' tiffgt.c:303: warning: unused parameter 'y' tiffgt.c: In function 'raster_special': tiffgt.c:348: warning: unused parameter 'x' tiffgt.c:348: warning: unused parameter 'y' /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -W -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -o tiffgt tiffgt-tiffgt.o ../libtiff/libtiff.la ../port/libport.la -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL -ljpeg -lz -lc libtool: link: gcc -O2 -Wall -W -o .libs/tiffgt tiffgt-tiffgt.o -L/opt/local/lib ../libtiff/.libs/libtiff.dylib ../port/.libs/libport.a -L/usr/X11/lib -framework GLUT -lobjc -framework OpenGL /opt/local/lib/libjpeg.dylib -lz -lc ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib collect2: ld returned 1 exit status make[1]: *** [tiffgt] Error 1 make: *** [all-recursive] Error 1 Error: The following dependencies failed to build: tiff Error: Status 1 encountered during processing. macbook:~ user$
There is already a trac ticket on MacPorts for this issue with a solution, but the quick fix is to edit the tiff package port file:
sudo vi /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/tiff/Portfile
Find the section that reads:
platform macosx {
configure.args-append --with-apple-opengl-framework
}
And modify it to read:
platform macosx {
configure.args-append --with-apple-opengl-framework
post-configure { reinplace "s,-L/usr/X11/lib,," ${worksrcpath}/tools/Makefile }
}
Finally, clean any pending build of tiff and reinstall:
sudo port clean tiff sudo port install tiff
Enjoy!
Comments
you saved my ass !
And mine. Thanks! :)
And mine too!
But what causes this error?