![](https://secure.gravatar.com/avatar/63e41c26f1b269cef456dc21b8ff4f27.jpg?s=120&d=mm&r=g)
On Tue, 2011-11-08 at 15:19 -0800, Steve Ellcey wrote:
Thanks, changing the order of the includes in this file (putting ZLIB_INCLUDE_DIR last) fixed that problem. Now I die when compiling storage/sphinx/ha_sphinx.cc. That file calls localtime_r but it doesn't seem to include
where localtime_r is declared, so the C++ compiler dies with: 5.5/storage/sphinx/ha_sphinx.cc:911:34: error: 'localtime_r' was not declared in this scope
I am not sure if time.h should be included directly in this file or if one it's includes (my_sys.h or something) should be including time.h.
Steve Ellcey sje@cup.hp.com
Woops, following up to my own email, it looks like time.h is getting included it is just that we aren't defining _REENTRENT so we don't see the definition from time.h. I am not sure if this is a mariadb issue or an HP-UX issue. I will investigate it some more. Steve Ellcey sje@cup.hp.com