MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: compile failing "The function "localtime_r" must have a prototype"
Posted by: Christine Ross
Date: January 13, 2015 04:36PM

I modified my configure script. I don't know if I just needed the CPPFLAGS because time.h was in there or some of the other flags fixed it, but with this it did not stop at that point. Its not done compiling yet so I don't know if it will fail at another point. The CFLAGS and CXXFLAGS got from Sun's site for this version of mysql with Sun Studio compiler. I added CPPFLAGS for the Include. Any suggestions would be appreciated. Thanks

% more ConfigureMysql
#!/bin/sh

PATH=/opt/SUNWspro/bin:/usr/local/bin:.:/usr/bin:/usr/sbin:/usr/ucb:/etc:/usr/local/cmake/bin:/usr/ccs/bin:/usr/sfw/bin; export PATH

CC=cc; export CC
CXX=CC; export CXX

CFLAGS="-Xa -fast -native -xstrconst -mt"; export CFLAGS
CXXFLAGS="-noex -mt"; export CXXFLAGS

CPPFLAGS="-I/usr/include"; export CPPFLAGS

./configure --prefix=/usr/local/mysql --datadir=/home1/mysql_data --with-mysqld-user=mysql --with-plugins=innobase
hccssun5old%

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.