Having problem building pnetcdf-1.1.1

Rob Latham robl at mcs.anl.gov
Thu Jul 22 17:12:04 CDT 2010


On Thu, Jul 01, 2010 at 03:20:22PM -0600, Craig Tierney wrote:
> I am trying to build parallel-netcdf 1.1.1 with mvapich2-1.4.1 and
> Intel 11.1 compilers.  The build is failing when the tools, like
> cnmpigen, fail with errors similar to:
> 
> /opt/mvapich2/1.4.1-intel-11.1/lib/libmpich.a(parser.o): In function `mvapich_yylex':
> /misc/whome/admin/hjet/software/opt/mvapich/mvapich2-1.4.1/src/mpid/ch3/channels/mrail/src/plpa/parser.c:570:
> multiple definition of `yyin'

On Thu, Jul 15, 2010 at 10:54:20PM +0800, Nilesh Awate wrote:
> I was trying parallel-netcdf-1.1.1 with mvapich-1.4 (compiled usign
> pgf90 and gcc) over RHEL-5.3
> 
> i encounter multiple definition error. I have attached configure.log
> and make.log file herewith


Hi Craig and Nilesh

I think I have fixed this problem, but I don't know how portable my
solution is.  Did old lex and yacc support prefixing symbols?  Are
there still systems with old lex and yacc? 

Can you try the attached patch?  You will have to re-run configure
after applying it.

If you have access to systems with old lex and yacc (forgetting
mvapich for a moment), that would be great, too.

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncgen_yacc_prefixes.diff
Type: text/x-diff
Size: 1300 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20100722/60ad733b/attachment.bin>


More information about the parallel-netcdf mailing list