configure: error: cannot compute sizeof (float_t)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
skeletor
Posts: 3
Joined: 2015-07-21T06:01:32-07:00
Authentication code: 1151

configure: error: cannot compute sizeof (float_t)

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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
skeletor
Posts: 3
Joined: 2015-07-21T06:01:32-07:00
Authentication code: 1151

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

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
skeletor
Posts: 3
Joined: 2015-07-21T06:01:32-07:00
Authentication code: 1151

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

Post by skeletor »

solve this via build with GCC with -std=gnu99
Post Reply