Fails to build on Solaris
Bug #794650 reported by
Dmitry Kurochkin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Polygraph |
New
|
Undecided
|
Unassigned |
Bug Description
Web Polygraph v4.3.2 fails to build on Solaris 10:
InetIfReq.cc: In constructor Inet6IfAliasReq
InetIfReq.cc:38: error: SIOCGIFINDEX was not declared in this scope
InetIfReq.cc:40: error: struct ifreq has no member named ifr_ifindex
make[3]: *** [InetIfReq.o] Error 1
To post a comment you must log in.
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 cc:32:41: error: 'ceilf' was not declared in this scope cc:47:1: warning: control reaches end of non-void function
gadgets.cc: In function 'double xceil(double, double)':
gadgets.
gadgets.
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.