[Ace-users] [ace-users] Failed compile in tradition Unix way
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Mon Jan 21 21:24:59 CST 2008
Hi,
>> ACE VERSION: 5.6.1
>>
>> HOST MACHINE and OPERATING SYSTEM:
>> Mac OS X 10.5.1, MacBook Core 2 Duo, 2G RAM
>>
>> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: same
>> as above
>> COMPILER NAME AND VERSION (AND PATCHLEVEL): i686-apple-darwin9-g+
>> +-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
>>
>> THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
>> specific file, simply state which one]: #include "ace/config-
>> macosx-tiger.h"
>>
>> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
>> use a link to a platform-specific file, simply state which one
>> (unless this isn't used in this case, e.g., with Microsoft Visual
>> C++)]: include $(ACE_ROOT)/include/makeinclude/
>> platform_macosx_tiger.GNU
>>
>> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
>> default.features
>> (used by MPC when you generate your own makefiles): There is no
>> such file.
>>
>> AREA/CLASS/EXAMPLE AFFECTED:
>> [What example failed? What module failed to compile?]
>>
>> When I start to make in $(ACE_ROOT)/ace directory:
>>
>> GNUmakefile: /Users/eddyxu/work/ACE_wrappers/ace/GNUmakefile.ACE
>> MAKEFLAGS=3D
>>
>> g++ -Wall -Wpointer-arith -Wno-long-double -g -pipe -pipe -
>> DACE_HAS_CUSTOM_EXPORT_MACROS=3D0 -I/Users/eddyxu/work/ACE_wrappers/ -
>> DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -DACE_BUILD_DLL -c -
>> o .shobj/Local_Name_Space.o Local_Name_Space.cpp
>> /Users/eddyxu/work/ACE_wrappers/ace/OS_NS_stdio.h:201: error:
>> 'L_cuserid' was not declared in this scope
>> /Users/eddyxu/work/ACE_wrappers/ace/OS_NS_stdio.h:206: error:
>> 'L_cuserid' was not declared in this scope
>> make[1]: *** [.shobj/Local_Name_Space.o] Error 1
>> make: *** [ACE] Error 2
>>
>> DOES THE PROBLEM AFFECT:
>> COMPILATION? ACE compilation.
>>
>> SYNOPSIS:
>> When I follow the instruction in the traditional unix way to compiling
>> ACE, there is a error occurs when compile Local_Name_Space.cpp
>>
>> DESCRIPTION:
>> I exported ACE_ROOT, and use the config files for macosx tiger, then I
>> make ace in $(ACE_ROOT)/ace directory, such a error message comes out.
>> StonePark:ace eddyxu$ make
>>
>> GNUmakefile: /Users/eddyxu/work/ACE_wrappers/ace/GNUmakefile.ACE
>> MAKEFLAGS=3D
>>
>> g++ -Wall -Wpointer-arith -Wno-long-double -g -pipe -pipe -
>> DACE_HAS_CUSTOM_EXPORT_MACROS=3D0 -I/Users/eddyxu/work/ACE_wrappers/ -
>> DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -DACE_BUILD_DLL -c -
>> o .shobj/Local_Name_Space.o Local_Name_Space.cpp
>> /Users/eddyxu/work/ACE_wrappers/ace/OS_NS_stdio.h:201: error:
>> 'L_cuserid' was not declared in this scope
>> /Users/eddyxu/work/ACE_wrappers/ace/OS_NS_stdio.h:206: error:
>> 'L_cuserid' was not declared in this scope
>> make[1]: *** [.shobj/Local_Name_Space.o] Error 1
>> make: *** [ACE] Error 2
>>
>> REPEAT BY:
>> 1, export $(ACE_ROOT)=3D/path/to/ace_wappers/
>> 2, write #include "ace/config-macosx-tiger.h" into ace/config.h
>> 3, write include $(ACE_ROOT)/include/makeinclude/
>> platform_macosx_tiger.GNU into include/makeinclude/platform_macros.GNU
>> 4, then go back to $(ACE_ROOT)/ace and make.
>>
>> On 12=D4=C25=C8=D5, =C9=CF=CE=E74=CA=B155=B7=D6, schm... at dre.vanderbilt.ed=
>u (Douglas C. Schmidt)
>> wrote:> Hi,
>>
>> > To ensure that we have proper version/platform/compiler information,
>> > please make sure you fill out the appropriate problem report form
>> > (PRF), which is in
>>
>> > $ACE_ROOT/PROBLEM-REPORT-FORM
>> > $TAO_ROOT/PROBLEM-REPORT-FORM
>>
>> > or in
>>
>> > $ACE_ROOT/BUG-REPORT-FORM
>> > $TAO_ROOT/BUG-REPORT-FORM
>>
>> > in older versions of ACE+TAO. Make sure to include this information
>> > when asking any questions about ACE+TAO since otherwise we have to
>> > "guess" what version/platform/compiler/options you've using, which is
>> > very error-prone and slows down our responsiveness. If you don't use
>> > the PRF, therefore, it is less likely that someone from the core
>> > ACE+TAO developer team will be able to answer your question.
>> > Naturally, we encourage and appreciate other members of the ACE+TAO
>> > user community who can respond to questions that they have the answers
>> > to.
>>
>> > Thanks,
>>
>> > Doug
>>
>> > >My Environment is: Mac OS X 10.5.1, gcc 4.0.1
>>
>> > >When I setting the environment variants and create ace/config.h
>> > >include/makeinclude/platform_macros.GNU, I run make in $ACE_ROOT, the
>> > >following error messages come out:
>>
>> > >StonePark:aceeddyxu$ make
>>
>> > >GNUmakefile: /Users/eddyxu/work/ACE_wrappers/ace/GNUmakefile.ACE
>> > >MAKEFLAGS=3D
>>
>> > >g++ -Wall -Wpointer-arith -Wno-long-double -g -pipe -pipe -
>> > >DACE_HAS_CUSTOM_EXPORT_MACROS=3D0 -I/Users/eddyxu/work/ACE_wrappers -=
>
>> > >DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. -DACE_BUILD_DLL -c -
>> > >o .shobj/Local_Name_Space.o Local_Name_Space.cpp
>> > >/Users/eddyxu/work/ACE_wrappers/ace/OS_NS_stdio.h:201: error:
>> > >'L_cuserid' was not declared in this scope
>> > >/Users/eddyxu/work/ACE_wrappers/ace/OS_NS_stdio.h:206: error:
>> > >'L_cuserid' was not declared in this scope
>> > >make[1]: *** [.shobj/Local_Name_Space.o] Error 1
>> > >make: *** [ACE] Error 2
>>
>> > >btw, if I wanna to look out how to make autoconf runs ok in 10.5.1,
>> > >which files I should look for help?
>>
>> > >Thanks all!
>>
>> > --
>> > Dr. Douglas C. Schmidt Professor and Associate Cha=
>ir
>> > Electrical Engineering and Computer Science TEL: (615) 343-8197
>> > Vanderbilt University WEB:www.dre.vanderbilt.edu/=
>~schmidt
>> > Nashville, TN 37203 NET: d.schm... at vanderbilt.e=
>du
>
>I am having the same problem on my copy of Leopard, any solutions to
>this problem? I love ACE and I've used it successfully many times on
>Linux but never Mac OS X before.
I think this problem will be fixed if you upgrade to ACE+TAO+CIAO
x.6.2 (i.e., ACE 5.6.2, TAO 1.6.2, and CIAO 0.6.2), which you can
download from
http://download.dre.vanderbilt.edu
under the heading: "Latest Beta Kit." Johnny/Will, can you please confirm/deny?
Thanks,
Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users
mailing list