当前位置: 技术问答>linux和unix
急!编译Mysql出错!
来源: 互联网 发布时间:2015-12-09
本文导语: 操作系统是Compaq的Tru64,编译器是Compaq自带的CC, 用的make是GNU 的 make-3.79.1 编译mysql的时候出现如下信息: then mv -f ".deps/my_new.Tpo" ".deps/my_new.Po"; else rm -f ".deps/my_new.Tpo"; exit 1; fi cc1plus: warning: changing search...
操作系统是Compaq的Tru64,编译器是Compaq自带的CC,
用的make是GNU 的 make-3.79.1
编译mysql的时候出现如下信息:
then mv -f ".deps/my_new.Tpo" ".deps/my_new.Po"; else rm -f ".deps/my_new.Tpo"; exit 1; fi
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning: as it has already been specified as a non-system directory
In file included from /usr/include/unistd.h:63,
from /usr/include/pthread.h:300,
from ../include/my_global.h:198,
from mysys_priv.h:17,
from my_new.cc:22:
/usr/include/sys/types.h:103: redeclaration of C++ built-in type `wchar_t'
In file included from ../include/my_sys.h:818,
from mysys_priv.h:18,
from my_new.cc:22:
/usr/include/sys/mman.h:161: declaration of C function `int madvise(char*, long
unsigned int, int)' conflicts with
../include/my_global.h:353: previous declaration `int madvise(void*, long
unsigned int, int)' here
make[2]: *** [my_new.o] Error 1
make[2]: Leaving directory `/usr/mysql/mysql-5.0.22/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/mysql/mysql-5.0.22'
make: *** [all] Error 2
请问我是不是要修改mysql的源码再编译?
有人在Tru64下遇到过这种情况吗?
该如何修改?
用的make是GNU 的 make-3.79.1
编译mysql的时候出现如下信息:
then mv -f ".deps/my_new.Tpo" ".deps/my_new.Po"; else rm -f ".deps/my_new.Tpo"; exit 1; fi
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning: as it has already been specified as a non-system directory
In file included from /usr/include/unistd.h:63,
from /usr/include/pthread.h:300,
from ../include/my_global.h:198,
from mysys_priv.h:17,
from my_new.cc:22:
/usr/include/sys/types.h:103: redeclaration of C++ built-in type `wchar_t'
In file included from ../include/my_sys.h:818,
from mysys_priv.h:18,
from my_new.cc:22:
/usr/include/sys/mman.h:161: declaration of C function `int madvise(char*, long
unsigned int, int)' conflicts with
../include/my_global.h:353: previous declaration `int madvise(void*, long
unsigned int, int)' here
make[2]: *** [my_new.o] Error 1
make[2]: Leaving directory `/usr/mysql/mysql-5.0.22/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/mysql/mysql-5.0.22'
make: *** [all] Error 2
请问我是不是要修改mysql的源码再编译?
有人在Tru64下遇到过这种情况吗?
该如何修改?
|
以前编译过mysql没有?
|
严格按照readme去做,不要乱改
看看是不是少装什么包之类的
看看是不是少装什么包之类的