Page 1 of 1

make and make clean fails on MacOS-X

Posted: 2007-10-18T04:56:59-07:00
by webmagick
What happens here?

./configure --prefix=/usr/local --without-x

Runs fine but when i run make it generates this error:

/bin/sh ./libtool --silent --tag=CC --mode=link gcc -g -O2 -Wall -W -D_THREAD_SAFE -no-undefined -export-symbols-regex ".*" -version-info 10:9:0 -L/usr/local/lib -lfreetype -lz -o magick/libMagick.la -rpath /usr/local/lib magick/magick_libMagick_la-animate.lo magick/magick_libMagick_la-annotate.lo magick/magick_libMagick_la-artifact.lo magick/magick_libMagick_la-blob.lo magick/magick_libMagick_la-cache.lo magick/magick_libMagick_la-cache-view.lo magick/magick_libMagick_la-client.lo magick/magick_libMagick_la-coder.lo magick/magick_libMagick_la-color.lo magick/magick_libMagick_la-colorspace.lo magick/magick_libMagick_la-compare.lo magick/magick_libMagick_la-composite.lo magick/magick_libMagick_la-compress.lo magick/magick_libMagick_la-configure.lo magick/magick_libMagick_la-constitute.lo magick/magick_libMagick_la-decorate.lo magick/magick_libMagick_la-delegate.lo magick/magick_libMagick_la-deprecate.lo magick/magick_libMagick_la-display.lo magick/magick_libMagick_la-distort.lo magick/magick_libMagick_la-draw.lo magick/magick_libMagick_la-effect.lo magick/magick_libMagick_la-enhance.lo magick/magick_libMagick_la-exception.lo magick/magick_libMagick_la-fx.lo magick/magick_libMagick_la-gem.lo magick/magick_libMagick_la-geometry.lo magick/magick_libMagick_la-hashmap.lo magick/magick_libMagick_la-identify.lo magick/magick_libMagick_la-image.lo magick/magick_libMagick_la-layer.lo magick/magick_libMagick_la-list.lo magick/magick_libMagick_la-locale.lo magick/magick_libMagick_la-log.lo magick/magick_libMagick_la-magic.lo magick/magick_libMagick_la-magick.lo magick/magick_libMagick_la-matrix.lo magick/magick_libMagick_la-memory.lo magick/magick_libMagick_la-mime.lo magick/magick_libMagick_la-module.lo magick/magick_libMagick_la-monitor.lo magick/magick_libMagick_la-montage.lo magick/magick_libMagick_la-option.lo magick/magick_libMagick_la-paint.lo magick/magick_libMagick_la-pixel.lo magick/magick_libMagick_la-PreRvIcccm.lo magick/magick_libMagick_la-prepress.lo magick/magick_libMagick_la-property.lo magick/magick_libMagick_la-profile.lo magick/magick_libMagick_la-quantize.lo magick/magick_libMagick_la-quantum.lo magick/magick_libMagick_la-random.lo magick/magick_libMagick_la-registry.lo magick/magick_libMagick_la-resample.lo magick/magick_libMagick_la-resize.lo magick/magick_libMagick_la-resource.lo magick/magick_libMagick_la-segment.lo magick/magick_libMagick_la-semaphore.lo magick/magick_libMagick_la-shear.lo magick/magick_libMagick_la-signature.lo magick/magick_libMagick_la-splay-tree.lo magick/magick_libMagick_la-static.lo magick/magick_libMagick_la-statistic.lo magick/magick_libMagick_la-stream.lo magick/magick_libMagick_la-string.lo magick/magick_libMagick_la-timer.lo magick/magick_libMagick_la-token.lo magick/magick_libMagick_la-transform.lo magick/magick_libMagick_la-threshold.lo magick/magick_libMagick_la-type.lo magick/magick_libMagick_la-utility.lo magick/magick_libMagick_la-version.lo magick/magick_libMagick_la-widget.lo magick/magick_libMagick_la-xml-tree.lo magick/magick_libMagick_la-xwindow.lo -llcms -ltiff -lfreetype -ljpeg -lbz2 -lz -lm -lpthread ltdl/libltdl.la
ar: /Users/foobar/Desktop/install: Inappropriate file type or format
make: *** [magick/libMagick.la] Error 1

If I try make clean it fails too:
/bin/sh ./libtool --silent --tag=CC --mode=link gcc -g -O2 -Wall -W -D_THREAD_SAFE -no-undefined -version-info 4:0:1 -L/usr/local/lib -lfreetype -lz -o ltdl/libltdl.la ltdl/ltdl.lo -ldl
libtool: link: warning: `-version-info/-version-number' is ignored for convenience libraries
ar: ltdl/.libs/ltdl.o: No such file or directory
make: *** [ltdl/libltdl.la] Error 1

They are probably connected

Re: make and mak clean fails on MacOS-X

Posted: 2007-10-18T05:26:46-07:00
by webmagick
Caused by having a space in the directory structure somewhere ...

Re: make and make clean fails on MacOS-X

Posted: 2007-10-29T06:29:55-07:00
by webmagick
Is should be possible to escape paths so spaces can be used in your path containing the source?
Or maybe the problem is somewhere else?

Re: make and make clean fails on MacOS-X

Posted: 2007-10-29T07:42:25-07:00
by magick
We have a circular dependency that causes make clean to fail under certain circumstances. Easy to fix, type
  • make -k -i clean
Try this command and then rebuild. If you still get a build failure, you may need to set your CFLAGS for a universal build. If that fails you can always try Mac Ports. ImageMagick does build for us under Mac OS X.

Re: make and make clean fails on MacOS-X

Posted: 2007-10-29T08:10:39-07:00
by webmagick
What makes it fail is the path you unpack the source to.
If you unpack the source to
/some directory with spaces/Imagemagick-6.3.6
it(make and make clean) will fail

If you unpack it to
/some_directory_without_spaces/Imagemagick-6.3.6
it works

Re: make and make clean fails on MacOS-X

Posted: 2007-10-29T17:33:23-07:00
by magick
We use GNU autoconf/automake scripts to build ImageMagick. Various folks on the Internet have posted about problems with paths with spaces in them. The consensus is that the fix to the problem is to simply not use a path with spaces in it as you suggest.