Compile Mysql ver . 5.0.18 on HP Alpha Tru64 5.1a with PK6

From: Anders Trier Rasmussen (anders@trier-rasmussen.dk)
Date: Sun Feb 19 2006 - 14:21:16 EST


Hej

I am trying to compile mysql ver. 5.0.18 on my HP Alpha ev. 56 with
Tru64 5.1a pk6, and I get this error all time:

In file included from /usr/include/unistd.h:64,
from /usr/include/pthread.h:318,
from ../include/my_global.h:189,
from mysys_priv.h:17,
from my_new.cc:22:
/usr/include/sys/types.h:88: declaration does not declare anything
In file included from ../include/my_sys.h:818,
from mysys_priv.h:18,
from my_new.cc:22:
/usr/include/sys/mman.h:192: declaration of C function `int
madvise(char*, long
unsigned int, int)' conflicts with
../include/my_global.h:344: previous declaration `int madvise(void*,
long
unsigned int, int)' here
gmake[2]: *** [my_new.o] Error 1
gmake[2]: Leaving directory `/usr/opt/mysql/mysql-5.0.18/mysys'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/opt/mysql/mysql-5.0.18'
gmake: *** [all] Error 2

The gcc is gcc version 2.97-tru64-010710.

The ./config look like this:
CC="gcc -pthread" CFLAGS=-I./include CXX=gcc CXXFLAGS=-O3 ./configure \
-with-low-memory --with-named-thread-libs="-lpthread -lmach -lexc"

Please help me!!

What is wrong?

Thanks in advance

Mange gode hilsner/Best regards
Anders Trier Rasmussen



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:28 EDT