Comment 1 for bug 794650

Revision history for this message
Dmitry Kurochkin (dmitry.kurochkin) wrote :

Another error:

     g++ -DHAVE_CONFIG_H -I../.. -I../../src -I../.. -I../../src -g -O3 -Wall -Wwrite-strings -Woverloaded-virtual -MT gadgets.o -MD -MP -MF .deps/gadgets.Tpo -c -o gadgets.o gadgets.cc
     gadgets.cc: In function 'double xceil(double, double)':
     gadgets.cc:32:41: error: 'ceilf' was not declared in this scope
     gadgets.cc:47:1: warning: control reaches end of non-void function

Polygraph checks if ceilf(3) is available on the system. Apparently, Solaris has ceilf(3) implemented (that is why the configure check succeeds), but does not declare it in math.h. Attached patch is a workaround to avoid ceilf(3) usage.