Page 1 of 1

configure: error: cannot compute sizeof (float_t)

Posted: 2015-07-21T06:07:50-07:00
by skeletor
Hello.
I have try to build imagemagick-6.9.1 at Solaris 11.1, but get an error in a subject. Otherwise, version 6.8.8 and older build successfully. How can fix this?
Thanks.

Re: configure: error: cannot compute sizeof (float_t)

Posted: 2015-07-21T06:56:50-07:00
by magick
This is classically a compiler / linker chain problem. Check config.log to find out why the float_t code test is failing. Are you using gcc? Try
  • CC="gcc -std=gnu99" ./configure

Re: configure: error: cannot compute sizeof (float_t)

Posted: 2015-07-21T07:14:56-07:00
by skeletor
Thanks for reply.
I am using solaris studio 12.3. Tried use

Code: Select all

-D_STDC_C99= -xc99=all
but nothing changed.

Re: configure: error: cannot compute sizeof (float_t)

Posted: 2015-07-21T14:10:20-07:00
by magick
You could edit configure and remove the checks for float_t / double_t and see if the script completes. We'll look for a better solution if you post a URL to config.log so we can inspect it.

Re: configure: error: cannot compute sizeof (float_t)

Posted: 2015-07-23T06:27:45-07:00
by skeletor
solve this via build with GCC with -std=gnu99