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

Anders Trier Rasmussen <[email protected]>
Newsgroups gmane.os.tru64.managers
Message-ID <001601c63589$a7e17480$0200000a@oleknud>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.