Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

From: Tim Mattox (timattox_at_[hidden])
Date: 2007-02-28 15:27:29


FYI - I fixed it in r13853 by adding a missing "extern" keyword.

On 2/28/07, Tim Mattox <timattox_at_[hidden]> wrote:
> This breaks the build on my x86 OS X laptop with the following error:
> .....lots of output....then...
> /usr/bin/ld: multiple definitions of symbol _ompi_mtl_base_selected_component
> .libs/pml_cm_component.o definition of
> _ompi_mtl_base_selected_component in section (__DATA,__common)
> /Users/tmattox/FOSS/OMPI/ompi-tmp/timattox-sm-coll/ompi/.libs/libmpi.dylib(single
> module) definition of _ompi_mtl_base_selected_component
> collect2: ld returned 1 exit status
> make[2]: *** [mca_pml_cm.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> If I revert r13841, it compiles as normal.
>
> On 2/28/07, hpcstork_at_[hidden] <hpcstork_at_[hidden]> wrote:
> > Author: hpcstork
> > Date: 2007-02-28 07:51:55 EST (Wed, 28 Feb 2007)
> > New Revision: 13841
> >
> > Modified:
> > trunk/ompi/mca/mtl/base/base.h
> > trunk/ompi/mca/pml/cm/pml_cm_component.c
> >
> > Log:
> > - proper export symbols that are required by other components.
> >
> >
> > Modified: trunk/ompi/mca/mtl/base/base.h
> > ==============================================================================
> > --- trunk/ompi/mca/mtl/base/base.h (original)
> > +++ trunk/ompi/mca/mtl/base/base.h 2007-02-28 07:51:55 EST (Wed, 28 Feb 2007)
> > @@ -33,6 +33,8 @@
> > extern "C" {
> > #endif
> >
> > +OMPI_DECLSPEC mca_mtl_base_component_t* ompi_mtl_base_selected_component;
> > +
> > OMPI_DECLSPEC int ompi_mtl_base_open(void);
> > OMPI_DECLSPEC int ompi_mtl_base_select(bool enable_progress_threads,
> > bool enable_mpi_threads);
> >
> > Modified: trunk/ompi/mca/pml/cm/pml_cm_component.c
> > ==============================================================================
> > --- trunk/ompi/mca/pml/cm/pml_cm_component.c (original)
> > +++ trunk/ompi/mca/pml/cm/pml_cm_component.c 2007-02-28 07:51:55 EST (Wed, 28 Feb 2007)
> > @@ -27,7 +27,6 @@
> > static mca_pml_base_module_t* mca_pml_cm_component_init( int* priority,
> > bool enable_progress_threads, bool enable_mpi_threads);
> > static int mca_pml_cm_component_fini(void);
> > -extern mca_mtl_base_component_t* ompi_mtl_base_selected_component;
> >
> > mca_pml_base_component_1_0_0_t mca_pml_cm_component = {
> >
> > _______________________________________________
> > svn-full mailing list
> > svn-full_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/svn-full
> >
>
>
> --
> Tim Mattox - http://homepage.mac.com/tmattox/
> tmattox_at_[hidden] || timattox_at_[hidden]
> I'm a bright... http://www.the-brights.net/
>

-- 
Tim Mattox - http://homepage.mac.com/tmattox/
 tmattox_at_[hidden] || timattox_at_[hidden]
    I'm a bright... http://www.the-brights.net/