← Back to team overview

maria-developers team mailing list archive

Re: Shared plugin library build question

 


> -----Original Message-----
> From: Steve Ellcey [mailto:sje@xxxxxxxxxx]
> Sent: Mittwoch, 9. November 2011 00:31
> To: Vladislav Vaintroub
> Cc: maria-developers@xxxxxxxxxxxxxxxxxxx; 'Sergei Golubchik'
> Subject: Re: [Maria-developers] Shared plugin library build question
> 
> 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 <time.h> 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@xxxxxxxxxx
> 
> 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.

If you stuck, a simple way to fix it  might be  to add -D_REENTRANT to cmake/os/HP-UX.cmake ,  so everything is compiled with it.
The line
ADD_DEFINITIONS(-D_REENTRANT) 

would do the trick.




Follow ups

References