On Wed, Dec 26, 2007, Ralf S. Engelschall wrote:

> On Wed, Dec 26, 2007, Birger Krägelin wrote:
>
> > I get the following error when compiling Imagemagick on a Sparc machine 
> > running Solaris 10 udate 4 (08/2007)
> >
> > /bin/sh ./libtool --silent --tag=CC   --mode=compile /opt/local/bin/cc 
> > -DHAVE_CONFIG_H -I. -I./config  -I./ltdl -I./ltdl  -I/opt/local/include 
> > -I/opt/local/include -I/opt/local/include -I/opt/local/include/tiff  -O2 
> > -pipe -I/opt/local/include -I/opt/local/include/tiff -Wall -W -MT 
> > magick/magick_libMagick_la-animate.lo -MD -MP -MF 
> > magick/.deps/magick_libMagick_la-animate.Tpo -c -o 
> > magick/magick_libMagick_la-animate.lo `test -f 'magick/animate.c' || echo 
> > './'`magick/animate.c
> > /opt/local/RPM/TMP/ImageMagick-6.3.7/libtool: bad substitution
> > make[1]: *** [magick/magick_libMagick_la-animate.lo] Error 1
> > make[1]: Leaving directory `/opt/local/RPM/TMP/ImageMagick-6.3.7'
> >
> > Any suggestions?
>
> Perhaps related to the fact that /bin/sh under Solaris is a Korn-Shell
> or some variables in "libtool" were incorrectly determined and hence
> some substitution fails. I'm currently trying to build Imagemagick on
> your box (rm9.openpkg.net) in the hope I can reproduce the problem. But
> rm9.openpkg.net is installed under a far older Solaris, so in case will
> be not able to reproduce myself, it could be also related to your new
> Solaris verision. We'll see... it needs time to check as I still build
> the larger set of dependencies ;-)

Ok, reproduced. As I guessed: the "libtool" script uses some variable
expansion constructs which the /bin/sh under Solaris 10 does not
support. I don't know why "libtool" uses these problematic constructs.
But setting the $CONFIG_SHELL to our GNU Bash from the OpenPKG bootstrap
successfully worked around the problem for me. Workaround now committed.
Just retry with the latest "imagemagick" package from CURRENT...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to