|
我在linux下配置ACE ,按照http://hi.baidu.com/_open_/blog/item/a9aab41bae22a71f8718bf56.html的方面
到最后一步 make时出现了如下错误 有那位大侠知道怎么解决吗?非常非常的感谢先~
[root@MailDB130 ACE_wrappers]# cd build
[root@MailDB130 build]# make
Making all in ace
make[1]: Entering directory `/home/wenxh/ACE_wrappers/build/ace'
make all-recursive
make[2]: Entering directory `/home/wenxh/ACE_wrappers/build/ace'
Making all in .
make[3]: Entering directory `/home/wenxh/ACE_wrappers/build/ace'
if /bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../ace -I. -I../.. -I.. -DACE_BUILD_DLL -W -Wall -Wpointer-arith -g -O2 -pthread -pipe -O3 -MT libACE_la-ACE.lo -MD -MP -MF ".deps/libACE_la-ACE.Tpo" -c -o libACE_la-ACE.lo `test -f 'ACE.cpp' || echo '../../ace/'`ACE.cpp; \
then mv -f ".deps/libACE_la-ACE.Tpo" ".deps/libACE_la-ACE.Plo"; else rm -f ".deps/libACE_la-ACE.Tpo"; exit 1; fi
c++ -DHAVE_CONFIG_H -I. -I../../ace -I. -I../.. -I.. -DACE_BUILD_DLL -W -Wall -Wpointer-arith -g -O2 -pthread -pipe -O3 -MT libACE_la-ACE.lo -MD -MP -MF .deps/libACE_la-ACE.Tpo -c ../../ace/ACE.cpp -fPIC -DPIC -o .libs/libACE_la-ACE.o
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/backward/new.h:33,
from ../../ace/Global_Macros.h:912,
from ../../ace/Flag_Manip.h:26,
from ../../ace/ACE.h:32,
from ../../ace/ACE.cpp:3:
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from ../../ace/os_include/sys/os_wait.h:27,
from ../../ace/os_include/os_stdlib.h:28,
from ../../ace/Basic_Types.h:60,
from ../../ace/Sock_Connect.h:25,
from ../../ace/ACE.h:36,
from ../../ace/ACE.cpp:3:
../../ace/os_include/os_signal.h:238: error: declaration of C function `int sigwait(sigset_t*)' conflicts with
/usr/include/signal.h:272: error: previous declaration `int sigwait(const sigset_t*, int*)' here
In file included from ../../ace/os_include/os_signal.h:250,
from ../../ace/os_include/sys/os_wait.h:27,
from ../../ace/os_include/os_stdlib.h:28,
from ../../ace/Basic_Types.h:60,
from ../../ace/Sock_Connect.h:25,
from ../../ace/ACE.h:36,
from ../../ace/ACE.cpp:3:
../../ace/os_include/os_ucontext.h:40: error: conflicting declaration 'typedef int ucontext_t'
/usr/include/sys/ucontext.h:127: error: 'ucontext_t' has a previous declaration as `typedef struct ucontext ucontext_t'
../../ace/os_include/os_ucontext.h:40: error: declaration of `typedef int ucontext_t'
/usr/include/sys/ucontext.h:127: error: conflicts with previous declaration `typedef struct ucontext ucontext_t'
../../ace/os_include/os_ucontext.h:40: error: declaration of `typedef int ucontext_t'
/usr/include/sys/ucontext.h:127: error: conflicts with previous declaration `typedef struct ucontext ucontext_t'
In file included from ../../ace/os_include/netinet/os_in.h:28,
from ../../ace/Sock_Connect.h:26,
from ../../ace/ACE.h:36,
from ../../ace/ACE.cpp:3:
../../ace/os_include/sys/os_socket.h:44: error: redefinition of `struct msghdr'
/usr/include/bits/socket.h:216: error: previous definition of `struct msghdr'
In file included from ../../ace/Time_Value.h:24,
from ../../ace/Message_Block.h:27,
from ../../ace/ACE.cpp:10:
../../ace/os_include/os_time.h:59: error: redefinition of `struct timespec'
/usr/include/time.h:119: error: previous definition of `struct timespec'
../../ace/os_include/os_time.h:64: error: ISO C++ forbids declaration of `timespec_t' with no type
In file included from ../../ace/ACE.cpp:15:
../../ace/OS_NS_signal.h:52: error: conflicting declaration 'struct siginfo_t'
/usr/include/bits/siginfo.h:108: error: 'siginfo_t' has a previous declaration as `typedef struct siginfo siginfo_t'
In file included from ../../ace/OS_NS_Thread.h:32,
from ../../ace/ACE.inl:6,
from ../../ace/ACE.cpp:31:
../../ace/os_include/os_sched.h:44: error: conflicting declaration 'typedef struct cpu_set_t cpu_set_t'
/usr/include/bits/sched.h:108: error: 'cpu_set_t' has a previous declaration as `typedef struct cpu_set_t cpu_set_t'
../../ace/os_include/os_sched.h:44: error: declaration of `typedef struct cpu_set_t cpu_set_t'
/usr/include/bits/sched.h:108: error: conflicts with previous declaration `typedef struct cpu_set_t cpu_set_t'
../../ace/os_include/os_sched.h:44: error: declaration of `typedef struct cpu_set_t cpu_set_t'
/usr/include/bits/sched.h:108: error: conflicts with previous declaration `typedef struct cpu_set_t cpu_set_t'
../../ace/os_include/os_sched.h:44: error: declaration of `typedef struct cpu_set_t cpu_set_t'
/usr/include/bits/sched.h:108: error: conflicts with previous declaration `typedef struct cpu_set_t cpu_set_t'
In file included from ../../ace/OS_NS_stropts.h:32,
from ../../ace/OS_NS_sys_socket.h:30,
from ../../ace/ACE.inl:8,
from ../../ace/ACE.cpp:31:
../../ace/os_include/os_stropts.h:100: error: redefinition of `struct strbuf'
/usr/include/bits/stropts.h:181: error: previous definition of `struct strbuf'
make[3]: *** [libACE_la-ACE.lo] 错误 1
make[3]: Leaving directory `/home/wenxh/ACE_wrappers/build/ace'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/wenxh/ACE_wrappers/build/ace'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/home/wenxh/ACE_wrappers/build/ace'
make: *** [all-recursive] 错误 1 |
|