Hi all, I got a lot of "undefined reference" errors when I was building libmesh on my Ubuntu such as
/home/aeronova/Development/local/share/libmesh/lib/x86_64-unknown-linux-gnu_dbg/libmesh.so: undefined reference to `EPSComputeRelativeError(_p_EPS*, int, double*)' /home/aeronova/Development/local/share/libmesh/lib/x86_64-unknown-linux-gnu_dbg/libmesh.so: undefined reference to `MatGetOwnershipRange(_p_Mat*, int*, int*)' /home/aeronova/Development/local/share/libmesh/lib/x86_64-unknown-linux-gnu_dbg/libmesh.so: undefined reference to `ISComplement(_p_IS*, int, int, _p_IS**)' /home/aeronova/Development/local/share/libmesh/lib/x86_64-unknown-linux-gnu_dbg/libmesh.so: undefined reference to `SNESSolve(_p_SNES*, _p_Vec*, _p_Vec*)' /home/aeronova/Development/local/share/libmesh/lib/x86_64-unknown-linux-gnu_dbg/libmesh.so: undefined reference to `MatAssembled(_p_Mat*, PetscBool*)' collect2: ld returned 1 exit status make: *** [bin/meshdiff-dbg] Error 1 It seems the link errors are related to petsc, so I specified the petsc location with LD_LIBRARY_PATH as follows: export LD_LIBRARY_PATH=/home/aeronova/Development/local/lib/petsc/3.3-p2-real/lib However, I still get the same error, which makes me confused. Configuration options for petsc are ./configure --prefix=/home/aeronova/Development/local/lib/petsc/3.3-p2-real --download-mpich=1 --download-blacs=1 --download-metis=1 --download-parmetis=1 --download-scalapack=1 --download-mumps=1 --download-umfpack=1 --with-clanguage=C++ --with-shared-libraries=1 and those for libmesh are ./configure --prefix=/home/aeronova/Development/local/lib/libmesh/svn-real --enable-petsc --enable-slepc --enable-glpk --with-glpk-include=/home/aeronova/Development/local/lib/glpk/4.35/include --with-glpk-lib=/home/aeronova/Development/local/lib/glpk/4.35/lib --enable-ifem --enable-eigen --with-eigen-include=/home/aeronova/Development/local/lib/eigen/3.1.1/include/eigen3 --disable-fparser My guess is I may miss some options that generate libraries necessary to resolve the missing references. I'd appreciate it if anyone can help me fix the problem. Regards, K. Lee. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
