Page 1 of 1

Compile error while creating libMagick++ on Solaris9 Sparc

Posted: 2012-04-13T20:42:13-07:00
by madhawan

I am trying to compile ImageMagick-6.7.6-5 on Solaris9 Sparc and running into following compilation issue while creating libMagick++ library. I used "./configure CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC" options for configure.

CXX Magick++/lib/Blob.lo
CXX Magick++/lib/BlobRef.lo
CXX Magick++/lib/CoderInfo.lo
CXX Magick++/lib/Color.lo
CXX Magick++/lib/Drawable.lo
CXX Magick++/lib/Exception.lo
CXX Magick++/lib/Functions.lo
CXX Magick++/lib/Geometry.lo
CXX Magick++/lib/Image.lo
CXX Magick++/lib/ImageRef.lo
CXX Magick++/lib/Montage.lo
CXX Magick++/lib/Options.lo
CXX Magick++/lib/Pixels.lo
CXX Magick++/lib/STL.lo
CXX Magick++/lib/Thread.lo
CXX Magick++/lib/TypeMetric.lo
CXXLD Magick++/lib/
CC: Warning: Option -xopenmp passed to ld, if ld is invoked, ignored otherwise
/usr/ccs/bin/ld: illegal option -- x

.I have looked into CXXLD in Makefile but not able to figure out much. I have also removed -xopenmp flag but still the problem persists??


This is the actual command thats failing

./libtool --silent --tag=CXX --mode=link /opt/SUNWspro/bin/CC -g -D_REENTRANT -no-undefined -Wl,-zlazyload -L/usr/openwin/lib -L/usr/local/lib -o Magick++/lib/ -rpath /usr/local/lib Magick++/lib/Blob.lo Magick++/lib/BlobRef.lo Magick++/lib/CoderInfo.lo Magick++/lib/Color.lo Magick++/lib/Drawable.lo Magick++/lib/Exception.lo Magick++/lib/Functions.lo Magick++/lib/Geometry.lo Magick++/lib/Image.lo Magick++/lib/ImageRef.lo Magick++/lib/Montage.lo Magick++/lib/Options.lo Magick++/lib/Pixels.lo Magick++/lib/STL.lo Magick++/lib/Thread.lo Magick++/lib/TypeMetric.lo magick/ wand/
CC: Warning: Option -xopenmp passed to ld, if ld is invoked, ignored otherwise
/usr/ccs/bin/ld: illegal option -- x
ld: warning: option -o appears more than once, first setting taken
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct | nodirect]

Can anyone please help and let me where to fix "-x" error.