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
1333 Views

Similar Articles

[PageSpeed] 28

Reply:

Similar Artilces:

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi, > > > I don't think the DOC group supports this compiler anymore.. More > > > particularly this compiler is buggy and you may land up with > > > unresolved > > > symbols even if you get past this part. > > > > I missed the compiler version. But, Forte 8 gives output of > SUN C++ 5.5. Ok, the problem is in platform_sunos5_sunc++.GNU, when a not known forte version is found, it defaults to explicit. I am updating right now, for 4.2 and 5.3 we default to explicit, for all others to implicit Qinghuajin and other Forte...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
> > Ok, the problem is in platform_sunos5_sunc++.GNU, when a > not known forte > > version is found, it defaults to explicit. I am updating > right now, for 4.2 > > and 5.3 we default to explicit, for all others to implicit This sounds good. > Is this necessary? I mean make it implicit by default. The > explicit is > not even supported, and has no chance to work cleanly. Why > should we patch > broken stuff. Just a thought? At least for ACE 5.5, Riverace supports the Forte compiler that requires explicit. After that, we can drop it....

Re: [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: > > Solaris10 X86 > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > Compiler: SUN CC 5.6 ^^^^^^^^^^^^^^^^^^^^^^^^ I don't think the DOC group supports this compiler anymore.. More particularly this compiler is buggy and you may land up with unresolved symbols even if you get past this part. My $0.02. Thanks Bala > > Make: ...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi, > >> It's almost up. There are some issues with installing software as > >> we don't have the media in a compatible form yet. We also don't > >> have Sun CC, and we need to purchase a licence if we need to > >> support Sun CC. > > Ok, that's fine - thanks for the update. I think some other folks > (e.g., LMCO ATL and Remedy) have Solaris 9/10 and Sun CC, so we may > not need to worry about running Sun CC on our machine. Johnny/Gautam, > can you folks please confirm/deny whether you've got Sun CC on Solar...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi, > > Ok, the problem is in platform_sunos5_sunc++.GNU, when a > not known forte > > version is found, it defaults to explicit. I am updating > right now, for 4.2 > > and 5.3 we default to explicit, for all others to implicit > > Is this necessary? I mean make it implicit by default. The > explicit is > not even supported, and has no chance to work cleanly. Why > should we patch > broken stuff. Just a thought? I have thought also about this, but maybe there are users around we don't know if. We can drop all this after x.5 i...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
> Ok. Steve, could you maybe make clear with the build names > which builds use explicit templates? I'll try to get this clarified. > Explicit templates in TAO are known to be broken at this > moment. None of the tests at Riverace try to build TAO. -Steve ...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Johnny- > > > > ACE VERSION: 5.4.3 > > > > > > > > HOST MACHINE and OPERATING SYSTEM: > > > > Solaris10 X86 > > > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > > > > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > > > Compiler: SUN CC 5.6 > > ^^^^^^^^^^^^^^^^^^^^^^^^ > > > > I don't think the DOC group supports this compiler anymore.. More > > particularly this compiler is buggy and you may land up with ...

RE: [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: > > > Solaris10 X86 > > > TARGET MACHINE and OPERATING SYSTEM, if different from HOST: > > > COMPILER NAME AND VERSION (AND PATCHLEVEL): > > > Compiler: SUN CC 5.6 > ^^^^^^^^^^^^^^^^^^^^^^^^ > > I don't think the DOC group supports this compiler anymore.. More > particularly this compiler is buggy and you may land up with > unresolved > symbols even if you get past this pa...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Johnny- > Ok, the problem is in platform_sunos5_sunc++.GNU, when a not known forte > version is found, it defaults to explicit. I am updating right now, for 4.2 > and 5.3 we default to explicit, for all others to implicit Is this necessary? I mean make it implicit by default. The explicit is not even supported, and has no chance to work cleanly. Why should we patch broken stuff. Just a thought? > Qinghuajin and other Forte 9 users, you can work around this by added the > following line to your platform_macros.GNU file. > templates = implicit This is until w...

RE: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi Steve, > > Is this necessary? I mean make it implicit by default. The > > explicit is > > not even supported, and has no chance to work cleanly. Why > > should we patch > > broken stuff. Just a thought? > > At least for ACE 5.5, Riverace supports the Forte compiler that > requires explicit. After that, we can drop it. Ok. Steve, could you maybe make clear with the build names which builds use explicit templates? Explicit templates in TAO are known to be broken at this moment. Johnny ...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi Jin, >> I rebuild the ACE package according the instruction above,but get >> the same result. It doesn't look to me like you've added -DACE_HAS_X86_STAT_MACROS to the build-line as recommended by Johnny Willemsen. >> my platform_macros.GNU file has the following lines: >> >> templates = implicit >> include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU >> >> When i rebuild the ACE library,get the following compile errors: >> $ make inline=0 -j 2 -k -f GNUmakefile.ACE >> ... >&...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi Everyon: My SunBlade 150 is back up and available, and has a Sun CC license, though I don't have a lot of bandwidth to admin it. Bala know where it is and has the root password. I'll probably move it into the server room once I have a chance to talk to Dan about it, but I my be out of town this week. [dhinton@blade DRM]$ uname -a SunOS blade 5.9 Generic_112233-03 sun4u sparc SUNW,Sun-Blade-100 Solaris [dhinton@blade DRM]$ CC -V CC: Forte Developer 7 C++ 5.4 2002/03/09 [dhinton@blade DRM]$ gcc --version gcc (GCC) 3.4.2 Copyright (C) 2004 Free Software Foundation, ...

Re: [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2
Hi Jin, Thanks for using the PRF. >> 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) As we've mentioned several times now, we don't have this compiler installed yet on this hardware platform, so if you want things to be fixed soon I recommend you figure out what's going wrong and send us the patches. Otherwise, pl...

Web resources about - [ace-users]: ACE 5.4.2 and ACE 5.4.3 compile failed on Solaris 9 x86 and Solaris 10 x86 #2 - comp.soft-sys.ace

Resources last updated: 2/10/2016 4:34:30 AM