f



[ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2

Hi,

    ACE VERSION: 5.4.3

    HOST MACHINE and OPERATING SYSTEM:
       Solaris 10 x86

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
    COMPILER NAME AND VERSION (AND PATCHLEVEL):
       Sun Studio 9 (Sun CC 5.6)

    CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a
platform-
      specific file, simply state which one]:

   #define ACE_HAS_STANDARD_CPP_LIBRARY 1
   #define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1

   #include "ace/config-sunos5.9.h"


    CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU
(unless
    this isn't used in this case, e.g., with Microsoft Visual C++):

    templates = implicit
    include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU


    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles):

    AREA/CLASS/EXAMPLE AFFECTED:
[What example failed?  What module failed to compile?]
    ACE library compile failed.

    DOES THE PROBLEM AFFECT:
        COMPILATION? Yes
        LINKING?  Yes
            On Unix systems, did you run make realclean first? Yes
        EXECUTION? Yes
        OTHER (please specify)?
[Please indicate whether ACE, your application, or both are affected.]

    SYNOPSIS:
[Brief description of the problem]
    Some files still failed to compiled.The comiler pointed out that
fstat and
uname is not a member of ACE_OS.

    DESCRIPTION:
[Detailed description of problem.  Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]


I rebuild the ACE package,and get the following errors:

$ make -j 2 -k realclean -f GNUmakefile.ACE
....

$ make inline=0 -j 2 -k -f GNUmakefile.ACE
....

CC -mt -g   -DSUN_CC_HAS_PVFC_BUG  
-I/export/home/hua/DevTools/ACE_wrappers -DACE_HAS_EXCEPTIONS
-DACE_NO_INLINE -I.. -DACE_HAS_ACE_TOKEN -DACE_HAS_ACE_SVCCONF
-DACE_BUILD_DLL  -c -KPIC -o .shobj/OS_NS_sys_time.o
OS_NS_sys_time.cpp
"/export/home/hua/DevTools/ACE_wrappers/ace/OS_NS_sys_stat.inl", line
37: Error: fstat(int, stat*) is not a member of ACE_OS.
"/export/home/hua/DevTools/ACE_wrappers/ace/OS_NS_sys_stat.inl", line
120: Error: fstat is not a member of ACE_OS.
"/export/home/hua/DevTools/ACE_wrappers/ace/OS_NS_sys_stat.inl", line
142: Error: "ACE_OS::lstat(const char*, stat*)" was previously
declared "ACE_OS::lstat(const wchar_t*, stat*)".
"/export/home/hua/DevTools/ACE_wrappers/ace/OS_NS_sys_stat.inl", line
163: Error: Formal argument file of type const wchar_t* in call to
ACE_OS::lstat(const wchar_t*, stat*) is being passed char*.
4 Error(s) detected.
make: *** [.shobj/OS_NS_sys_stat.o] Error 4


CC -mt -g   -DSUN_CC_HAS_PVFC_BUG  
-I/export/home/hua/DevTools/ACE_wrappers -DACE_HAS_EXCEPTIONS
-DACE_NO_INLINE -I.. -DACE_HAS_ACE_TOKEN -DACE_HAS_ACE_SVCCONF
-DACE_BUILD_DLL  -c -KPIC -o .shobj/Proactor.o Proactor.cpp
"/export/home/hua/DevTools/ACE_wrappers/ace/Select_Reactor_T.cpp",
line 1546: Error: fstat is not a member of ACE_OS.
    Where: While instantiating
"ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>>::check_handles()".
    Where: Instantiated from non-template code.
1 Error(s) detected.
make: *** [.shobj/Priority_Reactor.o] Error 1

CC -mt -g   -DSUN_CC_HAS_PVFC_BUG  
-I/export/home/hua/DevTools/ACE_wrappers -DACE_HAS_EXCEPTIONS
-DACE_NO_INLINE -I.. -DACE_HAS_ACE_TOKEN -DACE_HAS_ACE_SVCCONF
-DACE_BUILD_DLL  -c -KPIC -o .shobj/Reactor.o Reactor.cpp
"/export/home/hua/DevTools/ACE_wrappers/ace/Select_Reactor_T.cpp",
line 1546: Error: fstat is not a member of ACE_OS.
    Where: While instantiating
"ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>>::check_handles()".
    Where: Instantiated from
ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>>::ACE_Select_Reactor_T(ACE_Sig_Handler*,
ACE_Timer_Queue_T<ACE_Event_Handler*,
ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Recursive_Thread_Mutex>,
ACE_Recursive_Thread_Mutex>*, int, ACE_Reactor_Notify*, int, int).
"Reactor.cpp", line 59:     Where: Instantiated from non-template
code.
1 Error(s) detected.
make: *** [.shobj/Reactor.o] Error 1

CC -mt -g   -DSUN_CC_HAS_PVFC_BUG  
-I/export/home/hua/DevTools/ACE_wrappers -DACE_HAS_EXCEPTIONS
-DACE_NO_INLINE -I.. -DACE_HAS_ACE_TOKEN -DACE_HAS_ACE_SVCCONF
-DACE_BUILD_DLL  -c -KPIC -o .shobj/POSIX_Asynch_IO.o
POSIX_Asynch_IO.cpp
"/export/home/hua/DevTools/ACE_wrappers/ace/Select_Reactor_T.cpp",
line 1546: Error: fstat is not a member of ACE_OS.
    Where: While instantiating
"ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>>::check_handles()".
    Where: Instantiated from
ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>>::ACE_Select_Reactor_T(ACE_Sig_Handler*,
ACE_Timer_Queue_T<ACE_Event_Handler*,
ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Recursive_Thread_Mutex>,
ACE_Recursive_Thread_Mutex>*, int, ACE_Reactor_Notify*, int, int).
"Asynch_Pseudo_Task.cpp", line 11:     Where: Instantiated from
non-template code.
1 Error(s) detected.
make: *** [.shobj/Asynch_Pseudo_Task.o] Error 1

CC -mt -g   -DSUN_CC_HAS_PVFC_BUG  
-I/export/home/hua/DevTools/ACE_wrappers -DACE_HAS_EXCEPTIONS
-DACE_NO_INLINE -I.. -DACE_HAS_ACE_TOKEN -DACE_HAS_ACE_SVCCONF
-DACE_BUILD_DLL  -c -KPIC -o .shobj/FILE.o FILE.cpp
"FILE.cpp", line 58: Error: fstat is not a member of ACE_OS.
1 Error(s) detected.
make: *** [.shobj/FILE.o] Error 1

 On Solaris 9,i got the same result.
0
qhjin2000
1/5/2005 2:51:07 PM
comp.soft-sys.ace 20326 articles. 1 followers. marlow.andrew (167) is leader. Post Follow

0 Replies
1592 Views

Similar Articles

[PageSpeed] 50

Reply: