>>>>> "marek" == marek <marek@stripped> writes:
marek> I have written about this several times , still seems no progress..
marek> Well, the problem itself is simple and solution is also simple:
marek> problem) call gethostname is deprecated under solaris, it still
marek> exists in manpages but is no longer included in libraries.
marek> compile any vanilla mysql from source under solaris.
marek> solution) patch the MYSQL_DIR/sql/mysqld.cc file with following lines
marek> #ifdef __sun__
marek> #include <sys/systeminfo.h>
marek> #define gethostname(x,y) sysinfo(SI_HOSTNAME,x,y)
marek> And it will start working again as it is supposed.
Just one question:
I couldn't find anything in my Solaris 2.7 manual about gethostname()
Anyway, the current MySQL 3.22.30 compiled cleanly on our Solaris
2.5.1, 2.6 and 2.7 machines.
configure should define the -DSOLARIS flag in configure which should
have fixed this problem. Can you check why the following configure
test didn't work on your machine:
echo "Enabling getpass() workaround for Solaris 2.5.1"
CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS -DHAVE_RWLOCK_T";