isnan issue on uclibc (e.g. alpine docker)

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
DraconPern
Posts: 9
Joined: Thu, 2006-03-02, 08:46

isnan issue on uclibc (e.g. alpine docker)

#1 Post by DraconPern »

I tried to compile dcmtk on alpine but since it uses uclibc there's some issues.

/dcmtk/config/tests/../math.cc:88:12: error: '::isnan' has not
been declared

return ::isnan(f);

I tried it with various versions of gcc (6 and 5) but it looks like ublibc is the issue. May be use std::isnan or some other solution?

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: isnan issue on uclibc (e.g. alpine docker)

#2 Post by J. Riesmeier »

Did you already try out the latest DCMTK release, i.e. version 3.6.3?
And, do you use Autoconf (aka configure) or CMake on your system?

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: isnan issue on uclibc (e.g. alpine docker)

#3 Post by Michael Onken »

Since there was a related problem reported on github. I checked in the patch suggested there.

Have a look whether it also solves your problem (if not already solved before in case you used an older DCMTK version). The patch will be visible on DCMTK master in a few days once it successfully ran through our build and testing platform.

Best,
Michael

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest