From owner-nwchem-users@emsl.pnl.gov Fri Apr 18 02:42:30 2008
Received: from odyssey.emsl.pnl.gov (localhost [127.0.0.1])
	by odyssey.emsl.pnl.gov (8.14.1/8.14.1) with ESMTP id m3I9gTk7029404
	for <nwchem-users-outgoing-0915@odyssey.emsl.pnl.gov>; Fri, 18 Apr 2008 02:42:30 -0700 (PDT)
Received: (from majordom@localhost)
	by odyssey.emsl.pnl.gov (8.14.1/8.14.1/Submit) id m3I9gT8g029400
	for nwchem-users-outgoing-0915; Fri, 18 Apr 2008 02:42:29 -0700 (PDT)
X-Authentication-Warning: odyssey.emsl.pnl.gov: majordom set sender to owner-nwchem-users@emsl.pnl.gov using -f
X-Ironport-SG: No_SBRS
X-Ironport-SBRS: None
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApoEAMYJCEjAVJmG/2dsb2JhbACsJQ
X-IronPort-AV: E=Sophos;i="4.25,677,1199692800"; 
   d="scan'208";a="74088387"
Date: Fri, 18 Apr 2008 11:42:25 +0200 (CEST)
From: Giacomo Mulas <gmulas@ca.astro.it>
Reply-To: Giacomo Mulas <gmulas@ca.astro.it>
To: NWChem users mailing list <nwchem-users@emsl.pnl.gov>
Subject: Re: [NWCHEM] nwchem5.1 install error undefined reference with openmpi
 1.2.6
In-Reply-To: <48079E97.5020607@hope.edu>
Message-ID: <alpine.DEB.1.10.0804181136080.753@capitanata.ca.astro.it>
References: <48060A47.3000009@hope.edu> <4806249C.1090500@pnl.gov> <48063267.2070407@hope.edu> <48064563.8090408@pnl.gov> <48076BE9.6040909@hope.edu> <480776BE.8080407@pnl.gov> <48079E97.5020607@hope.edu>
User-Agent: Alpine 1.10 (DEB 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on corto.dsf.unica.it
X-Virus-Status: Clean
Sender: owner-nwchem-users@emsl.pnl.gov
Precedence: bulk

On Thu, 17 Apr 2008, Paul Van Allsburg wrote:

> Hi Dunyou,
> I still get all the same errors. 
> /usr/local/openmpi-1.2.1_intel/lib/libopen-rte.a(rmgr_base_check_context.o)(.text+0x366): 
> In function `orte_rmgr_base_purge_mca_params':
> : undefined reference to `opal_setenv'
> /usr/local/openmpi-1.2.1_intel/lib/libopen-rte.a(rmgr_base_check_context.o)(.text+0x394): 
> In function `orte_rmgr_base_purge_mca_params':
> : undefined reference to `opal_setenv'
> make: *** [all] Error 1
>
> What might be wrong with the mpi installation?

invert the order between -lopen-pal and -lopen-rte. You are using static
libraries. When you link against a static libraries, only the unresolved
functions at the moment it is encountered by the linker are included in the
result. In your case, you link first against libopen-pal, and the function
"opal_setenv", which is at that moment not needed, is not included; then you
link against libopen-rte, which does need that function, which was not
included and cannot be resolved. So: either you swap their order, or you use
dynamic libs, for which that particular problem (the order of linking) does
not exist.

Bye
Giacomo

-- 
_________________________________________________________________

Giacomo Mulas <gmulas@ca.astro.it>
_________________________________________________________________

OSSERVATORIO ASTRONOMICO DI CAGLIARI
Str. 54, Loc. Poggio dei Pini * 09012 Capoterra (CA)

Tel. (OAC): +39 070 71180 248     Fax : +39 070 71180 222
Tel. (UNICA): +39 070 675 4916
_________________________________________________________________

"When the storms are raging around you, stay right where you are"
                          (Freddy Mercury)
_________________________________________________________________