[Ace-users] Re: [ciao-users] Building CIAO under Fedora6 Problem

Johnny Willemsen jwillemsen at remedy.nl
Mon Sep 17 12:57:40 CDT 2007


Hi,

FYI, you don't need to build the full distribution to test the patch, just
check if ACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS=1 is part of
the commandline when invoking make. When it is there then you have found the
correct rule to add to platform_g++_common.GNU

JOhnny 

> -----Original Message-----
> From: ciao-users-bounces at cse.wustl.edu 
> [mailto:ciao-users-bounces at cse.wustl.edu] On Behalf Of Johnny 
> Willemsen
> Sent: Sunday, September 16, 2007 7:44 PM
> To: 'CIAO Users Mailing List'
> Subject: Re: [ciao-users] Building CIAO under Fedora6 Problem
> 
> Hi,
> 
> Ok, can you try to change the line I gave and see if you can 
> match the gcc
> --version output? We have the same construct in
> include/makeinclude/platform_g++_common.GNU for the known gcc versions
> shipped with fc6.
> 
> Johnny 
> 
> > -----Original Message-----
> > From: ciao-users-bounces at cse.wustl.edu 
> > [mailto:ciao-users-bounces at cse.wustl.edu] On Behalf Of 
> > Sowayan, Abdullah (N-DUA)
> > Sent: Friday, September 14, 2007 9:14 PM
> > To: CIAO Users Mailing List
> > Subject: Re: [ciao-users] Building CIAO under Fedora6 Problem
> > 
> > Johnny,
> > 
> > George has left for the weekend, and closed his lab. So I don't have
> > access to the FC6 machine. I'll try to remember to do that 
> > when I get in
> > on Monday.
> > 
> > Thanks,
> > Abdul
> > 
> > > -----Original Message-----
> > > From: ciao-users-bounces at cse.wustl.edu [mailto:ciao-users-
> > > bounces at cse.wustl.edu] On Behalf Of Johnny Willemsen
> > > Sent: Friday, September 14, 2007 3:11 PM
> > > To: 'CIAO Users Mailing List'
> > > Subject: Re: [ciao-users] Building CIAO under Fedora6 Problem
> > > 
> > > Hi,
> > > 
> > > Can you send me the output of a make of a single cpp file 
> > (do a clean
> > of
> > > one
> > > test and give make)
> > > 
> > > Johnny
> > > 
> > > > -----Original Message-----
> > > > From: ciao-users-bounces at cse.wustl.edu
> > > > [mailto:ciao-users-bounces at cse.wustl.edu] On Behalf Of
> > > > Sowayan, Abdullah (N-DUA)
> > > > Sent: Friday, September 14, 2007 8:33 PM
> > > > To: CIAO Users Mailing List
> > > > Subject: Re: [ciao-users] Building CIAO under Fedora6 Problem
> > > >
> > > > Johnny,
> > > >
> > > > What you sent me didn't seem to do the trick. I went 
> over to look
> > the
> > > > error message and it is the exact error I reported earlier.
> > > >
> > > > Thanks,
> > > > Abdul
> > > >
> > > > > -----Original Message-----
> > > > > From: Goetz, George
> > > > > Sent: Friday, September 14, 2007 2:25 PM
> > > > > To: Sowayan, Abdullah (N-DUA)
> > > > > Subject: Looks like same error
> > > > >
> > > > > Abdul,
> > > > >
> > > > > The build bombed again. It looks like the same error. 
> I will be
> > here
> > > > > another 10-15 minutes if you want to see it.
> > > > >
> > > > > George
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: ciao-users-bounces at cse.wustl.edu [mailto:ciao-users-
> > > > > bounces at cse.wustl.edu] On Behalf Of Johnny Willemsen
> > > > > Sent: Friday, September 14, 2007 1:00 PM
> > > > > To: 'CIAO Users Mailing List'
> > > > > Subject: Re: [ciao-users] Building CIAO under Fedora6 Problem
> > > > >
> > > > > Ok, that confirms my initial idea. Can you try the lines I
> > > > send you a
> > > > few
> > > > > minutes ago?
> > > > >
> > > > > Johnny
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: ciao-users-bounces at cse.wustl.edu
> > > > > > [mailto:ciao-users-bounces at cse.wustl.edu] On Behalf Of
> > > > > > Sowayan, Abdullah (N-DUA)
> > > > > > Sent: Friday, September 14, 2007 6:56 PM
> > > > > > To: CIAO Users Mailing List
> > > > > > Subject: Re: [ciao-users] Building CIAO under 
> Fedora6 Problem
> > > > > >
> > > > > > Johnny,
> > > > > >
> > > > > > g++ --version:
> > > > > >
> > > > > > g++ (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)
> > > > > > Copyright (C) 2006 Free Software Foundation, Inc.
> > > > > > This is free software; see the source for copying 
> conditions.
> > > > > >  There is
> > > > > > NO
> > > > > > warranty; not even for MERCHANTABILITY or FITNESS FOR A
> > PARTICULAR
> > > > > > PURPOSE.
> > > > > >
> > > > > >
> > > > > > contents of /etc/redhat-release:
> > > > > >
> > > > > > Fedora Core release 6 (Zod)
> > > > > >
> > > > > > Thanks,
> > > > > > Abdul
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: ciao-users-bounces at cse.wustl.edu [mailto:ciao-users-
> > > > > > > bounces at cse.wustl.edu] On Behalf Of Johnny Willemsen
> > > > > > > Sent: Friday, September 14, 2007 12:31 PM
> > > > > > > To: 'CIAO Users Mailing List'
> > > > > > > Subject: Re: [ciao-users] Building CIAO under 
> > Fedora6 Problem
> > > > > > >
> > > > > > > Hi Abdul,
> > > > > > >
> > > > > > > Thanks for using the PRF form. We do have some code to
> > > > detect fc6,
> > > > > > maybe
> > > > > > > your version isn't detected correctly. Could you 
> give us the
> > > > output
> > > > > > of:
> > > > > > > g++ --version
> > > > > > >
> > > > > > > And also the contents of /etc/redhat-release
> > > > > > >
> > > > > > > Regards,
> > > > > > >
> > > > > > > Johnny Willemsen
> > > > > > > Remedy IT
> > > > > > > Postbus 101
> > > > > > > 2650 AC  Berkel en Rodenrijs
> > > > > > > The Netherlands
> > > > > > > www.theaceorb.nl / www.remedy.nl
> > > > > > >
> > > > > > > *** Integrated compile and test statistics see
> > > > > > > http://scoreboard.theaceorb.nl ***
> > > > > > > *** Commercial service and support for ACE/TAO/CIAO
> > > > ***
> > > > > > > *** See http://www.theaceorb.nl/en/support.html
> > > > ***
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: ciao-users-bounces at cse.wustl.edu
> > > > > > > > [mailto:ciao-users-bounces at cse.wustl.edu] On Behalf Of
> > > > > > > > Sowayan, Abdullah (N-DUA)
> > > > > > > > Sent: Friday, September 14, 2007 5:13 PM
> > > > > > > > To: CIAO Users Mailing List
> > > > > > > > Subject: [ciao-users] Building CIAO under 
> Fedora6 Problem
> > > > > > > >
> > > > > > > > CIAO VERSION: 0.6
> > > > > > > > TAO VERSION : 1.6
> > > > > > > > ACE VERSION : 5.6
> > > > > > > >
> > > > > > > > HOST MACHINE and OPERATING SYSTEM:
> > > > > > > >
> > > > > > > > Fedora Core 6
> > > > > > > >
> > > > > > > >
> > > > > > > > TARGET MACHINE and OPERATING SYSTEM, if different 
> > from HOST:
> > > > > > > > COMPILER NAME AND VERSION (AND PATCHLEVEL):
> > > > > > > >
> > > > > > > > g++ (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)
> > > > > > > >
> > > > > > > > THE $ACE_ROOT/ace/config.h FILE [if you use a link to a
> > > > platform-
> > > > > > > > specific file, simply state which one]:
> > > > > > > >
> > > > > > > > #include "ace/config-linux.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++)]:
> > > > > > > >
> > > > > > > > debug=1
> > > > > > > > optimize=0
> > > > > > > > gen_ostream=1
> > > > > > > > include 
> $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
> > > > > > > >
> > > > > > > >
> > > > > > > > CONTENTS OF
> > > > > > $ACE_ROOT/bin/MakeProjectCreator/config/default.features
> > > > > > > > (used by MPC when you generate your own makefiles):
> > > > > > > >
> > > > > > > > gen_ostream=1
> > > > > > > >
> > > > > > > >
> > > > > > > > AREA/CLASS/EXAMPLE AFFECTED:
> > > > > > > >
> > > > > > > > $CIAO_ROOT/DAnCE/ExecutionManager
> > > > > > > >
> > > > > > > >
> > > > > > > > DOES THE PROBLEM AFFECT:
> > > > > > > >
> > > > > > > > COMPILATION/LINKING
> > > > > > > >
> > > > > > > >
> > > > > > > > [Please indicate whether ACE/TAO/CIAO, your application,
> > > > > > or both are
> > > > > > > > affected.]
> > > > > > > >
> > > > > > > > CIAO
> > > > > > > >
> > > > > > > >
> > > > > > > > DESCRIPTION:
> > > > > > > >
> > > > > > > >     ACE/TAO/CIAO compiles perfectly under Fedora Core 5.
> > Under
> > > > > > Fedora
> > > > > > > > Core 6 ExecutionManager doesn't compile/link 
> properly. We
> > > > generate
> > > > > > the
> > > > > > > > make files of $CIAO_ROOT/CIAO_TAO_DAnCE.mwc and make it.
> > > > > > We get the
> > > > > > > > following error.
> > > > > > > >
> > > > > > > > g++ -fvisibility=hidden 
> > -fvisibility-inlines-hidden -W -Wall
> > > > > > > > -Wpointer-arith -g -pipe   -pipe -DACE_HAS_LINUX_NPTL
> > > > -D_REENTRANT
> > > > > > > > -DACE_HAS_AIO_CALLS -D_GNU_SOURCE   -I/opt/ACE_wrappers
> > > > > > > > -I/opt/ACE_wrappers/TAO/CIAO -DACE_HAS_EXCEPTIONS
> > > > -D__ACE_INLINE__
> > > > > > > > -I../../../.. -I../../.. -I../.. -I../../ciao
> > > > -I../../../orbsvcs
> > > > > > > > -I../../DAnCE -I../../ciaosvcs/Events
> > -I../../DAnCE/Interfaces
> > > > > > > > -I../../DomainApplicationManager
> > > > > > > > -I../../DAnCE/ExecutionManager  -Wl,-E
> > > > > > > > -L/opt/ACE_wrappers/ace -L./ -L/opt/ACE_wrappers/lib
> > > > > > > > -L/opt/ACE_wrappers/TAO/CIAO/ciao
> > -L/opt/ACE_wrappers/TAO/tao
> > > > -L.
> > > > > > > > -L../../../../lib -o Execution_Manager
> > > > > > .obj/ExecutionManagerDaemonS.o
> > > > > > > > .obj/Execution_Manager.o .obj/Execution_Manager_Impl.o
> > > > > > .obj/DAM_Map.o
> > > > > > > > -lTAO_Strategies -lTAO_RTPortableServer -lTAO_RTCORBA
> > > > > > > > -lExecutionManager_stub -lDomainApplicationManager
> > > > -lCIAO_Server
> > > > > > > > -lTAO_Utils -lCIAO_Deployment_svnt -lCIAO_Events
> > > > -lCIAO_RTEvent
> > > > > > > > -lTAO_CosNaming -lTAO_RTEvent_Serv -lTAO_RTEvent_Skel
> > > > > > -lTAO_RTEvent
> > > > > > > > -lTAO_Svc_Utils -lCIAO_Deployment_stub -lTAO_Messaging
> > > > > > > > -lCIAO_Events_Base -lCIAO_Container -lTAO_PortableServer
> > > > > > -lCIAO_Client
> > > > > > > > -lTAO_PI -lTAO_CodecFactory -lTAO_Valuetype 
> > -lTAO_IFR_Client
> > > > > > > > -lTAO_AnyTypeCode -lTAO -lACE -ldl -lpthread -lrt
> > > > > > > > /opt/ACE_wrappers/lib/libTAO_Strategies.so: undefined
> > > > reference
> > > > to
> > > > > > > > `ACE_Singleton<ACE_Based_Pointer_Repository,
> > > > > > > > ACE_RW_Thread_Mutex>::instance()'
> > > > > > > > collect2: ld returned 1 exit status
> > > > > > > > make[1]: *** [Execution_Manager] Error 1
> > > > > > > > make[1]: Leaving directory
> > > > > > > > `/opt/ACE_wrappers/TAO/CIAO/DAnCE/ExecutionManager'
> > > > > > > > make: *** [ExecutionManager] Error 2
> > > > > > > >
> > > > > > > > To make this work, we define
> > > > > > > > 
> > ACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS to 1 as
> > > > > > > > described in
> > > > > > > > Remedy's TAO Pgorammer's Guide. Now it works 
> > perfectly fine.
> > I
> > > > > > thought
> > > > > > > > there was a fix for this in x.6.0 where
> > > > platform_g++_common.GNU
> > > > > > would
> > > > > > > > automagically detect if one is running under FC6 
> > or FC7 and
> > > > apply
> > > > > > the
> > > > > > > > fix.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Abdul
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > ciao-users mailing list
> > > > > > > > ciao-users at mail.cse.wustl.edu
> > > > > > > > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > ciao-users mailing list
> > > > > > > ciao-users at mail.cse.wustl.edu
> > > > > > > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > > > > >
> > > > > > _______________________________________________
> > > > > > ciao-users mailing list
> > > > > > ciao-users at mail.cse.wustl.edu
> > > > > > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > ciao-users mailing list
> > > > > ciao-users at mail.cse.wustl.edu
> > > > > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > > >
> > > > _______________________________________________
> > > > ciao-users mailing list
> > > > ciao-users at mail.cse.wustl.edu
> > > > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > > >
> > > 
> > > _______________________________________________
> > > ciao-users mailing list
> > > ciao-users at mail.cse.wustl.edu
> > > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > 
> > _______________________________________________
> > ciao-users mailing list
> > ciao-users at mail.cse.wustl.edu
> > http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> > 
> 
> _______________________________________________
> ciao-users mailing list
> ciao-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
> 



More information about the Ace-users mailing list