I obtained the same error, although this time it can find the libnetcdf.so.7 in my libmesh build.
/usr/bin/ld: src/apps/meshid_opt-meshid.o: undefined reference to symbol 'nc_close' /home/miguel/libmeshbuild/contrib/netcdf/v4/liblib/.libs/libnetcdf.so.7: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status On Thu, Jul 10, 2014 at 3:47 PM, Miguel Angel Salazar de Troya < [email protected]> wrote: > Thanks a lot for your responses. I'll try uninstalling previous versions > in the meantime. > > The libtool version I am using is 2.4.2. I'm attaching the files you > mention. > > > On Thu, Jul 10, 2014 at 2:48 PM, Kirk, Benjamin (JSC-EG311) < > [email protected]> wrote: > >> An immediate workaround for you would be to fall back to the old >> netcfd/exodus implementation that does not install such a substantial >> netcdf: >> >> IIRC >> >> $ ./configure --prefix=... --enable-netcdf=old --enable-exodus=old ... >> >> >> >> On Jul 10, 2014, at 2:40 PM, Roy Stogner <[email protected]> >> wrote: >> >> > >> > On Mon, 7 Jul 2014, Miguel Angel Salazar de Troya wrote: >> > >> >> I ran the bootstrap script (just run it once) and it could detect the >> new files, but I got an error during the compilation: >> >> /usr/bin/ld: src/apps/meshid_opt-meshid.o: undefined reference to >> symbol 'nc_close' >> >> /usr/local/lib/libnetcdf.so.7: error adding symbols: DSO missing from >> command line >> >> collect2: error: ld returned 1 exit status >> >> >> >> I have netcdf enabled in the configuration. I didn't have this problem >> before I ran the bootstrap script. I'm sorry not to provide more details, >> >> but I've no idea why this error happens because I know very little >> about automake or autoconf tools and I could not find much on the internet. >> i >> >> think it's a problem of dependencies, but that's all. >> > >> > The bootstrap script seems to be a bit of a red herring: the real >> > problems seems to be a conflict between the libnetcdf.so.7 that >> > libMesh is trying to install and the one you've already got in >> > /usr/lib/ >> > >> > Usually when I see a conflict like that I throw up my hands and >> > uninstall whatever outdated conflicting dependency version was in >> > /usr. *Everything* and its dependencies tend to want /usr in your >> > include/link paths, which is a big problem if there are outdated, >> > conflicting libraries there. >> > >> > But this time... I'm not sure why I'm failing to replicate this (I've >> > got /usr/lib/libnetcdf.so.7.1.1 on my system, which is likewise >> > missing symbols that our libnetcdf.so.7.2.0 would have provided), >> > and whatever is saving me might point to a better solution for you. >> > Send me your libmesh_opt.la and contrib/netcdf/v4/liblib/libnetcdf.la >> > files? What version of libtool are you using? >> > --- >> > Roy >> > >> > >> ------------------------------------------------------------------------------ >> > Open source business process management suite built on Java and Eclipse >> > Turn processes into business applications with Bonita BPM Community >> Edition >> > Quickly connect people, data, and systems into organized workflows >> > Winner of BOSSIE, CODIE, OW2 and Gartner awards >> > http://p.sf.net/sfu/Bonitasoft >> > _______________________________________________ >> > Libmesh-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/libmesh-users >> >> > > > -- > *Miguel Angel Salazar de Troya* > > Graduate Research Assistant > Department of Mechanical Science and Engineering > University of Illinois at Urbana-Champaign > (217) 550-2360 > [email protected] > > -- *Miguel Angel Salazar de Troya* Graduate Research Assistant Department of Mechanical Science and Engineering University of Illinois at Urbana-Champaign (217) 550-2360 [email protected] ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
