Hi,
I am new in this forum and with no any experience with dealii.
After installation packages libdeal.ii6.2.1, libdeal.ii-dev, deal.ii-doc
and deal.ii-examples in Ubuntu 9.10 I tried to compile included
examples. Unfortunately makefiles provided in packages are not good and
compilation failed, or rather - after make execution the object was
created but the linker finished with the following messages:

$make
/usr/lib/libtrilinos_teuchos.so: undefined reference to
`XML_SetUserData'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdneupd_'
/usr/lib/libtrilinos_teuchos.so: undefined reference to
`XML_ParserCreate'
/usr/lib/libtrilinos_teuchos.so: undefined reference to `XML_Parse'
/usr/lib/libtrilinos_ml.so: undefined reference to
`Galeri::CreateMap(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, Epetra_Comm&, Teuchos::ParameterList&)'
/usr/lib/libtrilinos_teuchos.so: undefined reference to
`XML_SetElementHandler'
/usr/lib/libtrilinos_ml.so: undefined reference to
`Galeri::CreateCrsMatrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, Epetra_Map const*, Teuchos::ParameterList&)'
/usr/lib/libtrilinos_teuchos.so: undefined reference to
`XML_SetCharacterDataHandler'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdnaupd_'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdsaupd_'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdseupd_'
collect2: ld returned 1 exit status
make: *** [step-1] Error 1

I tried to make changes in /usr/share/deal.II/Make.global_options
as suggested by Kevin in his mail Sun, 29 Nov 2009 02:36:02 UTC.
After that I have got object file, but the linker still returns error:

$ make
Makefile:151: Makefile.dep: No such file or directory
============================ Remaking Makefile.dep
==============optimized===== step-1.cc
============================ Linking step-1
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdneupd_'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdnaupd_'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdsaupd_'
/usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
`pdseupd_'
collect2: ld returned 1 exit status
make: *** [step-1] Error 1

I removed Ubuntu packages with dealii and tried to compile deal.II-6.2.1
library. Without trilinos support it went smooth. But
after enabling trilinos configure resulted with a message
(libtrilinos, libtrilinos-dev and libtrilinos-dbg Ubuntu packages
are installed in my system):
...
export TRILINOS_INCDIR=/usr/include/trilinos
export TRILINOS_LIBDIR=/usr/lib
...
checking boost/tuple/tuple.hpp usability... yes
checking boost/tuple/tuple.hpp presence... yes
checking for boost/tuple/tuple.hpp... yes
checking for boost::shared_ptr assignment operator= template buglet...
no

----------------- configuring F77 compilers -----------------
checking for gfortran... /usr/bin/gfortran
F77 compiler is gcc-4.4
checking for e_wsfe in -lg2c... no
checking for _gfortran_allocate in -lgfortran... no
checking for _gfortran_st_write_done in -lgfortran... yes

-------------- configuring shared/static libs ---------------
checking whether compiler understands option -Wl,-soname... no
checking whether compiler understands option
-Wl,-dynamic,-install_name... no
checking for ar... ar
checking for ar... /usr/bin/ar
checking for ranlib... ranlib
checking for ranlib... /usr/bin/ranlib

---------------- configuring additional libs ----------------
checking for PETSc library directory... not found
checking for SLEPc include directory... not found
checking for Trilinos directory... not found
checking for Trilinos header directory... /usr/include/trilinos
checking for Trilinos library directory... /usr/lib
checking whether Trilinos uses shared libraries... no
checking whether Trilinos uses static libraries... no
configure: error: Unable to determine whether Trilinos uses shared or
                  static libraries.


Could you please suggest what to do?

Thanking in advance,
Tomasz



_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to