[Dune] Dune-1.0beta4 can not be configured

Christian Engwer christi at uni-hd.de
Tue Apr 3 09:37:05 CEST 2007


Hi Andre,

> #./dune-common-1.0beta4/bin/dunecontrol  \  
> >configure --prefix=/usr/local/dune-1.0 --with-ug=/usr/local/ug-3.9.x
> 
> checking dune-grid requirements...  dune-common
> checking for dune-common installation or source tree...
>         found 
> in /home/andre/homebase/mathe/angewandtemathe/numerik/dune-1.0beta4/dune-common-1.0beta4
> checking dune/common/stdstreams.hh usability... yes
> checking dune/common/stdstreams.hh presence... yes
> checking for dune/common/stdstreams.hh... yes
> checking for libdunecommon... no
> configure: 
> error: /home/andre/homebase/mathe/angewandtemathe/numerik/dune-1.0beta4/dune-common-1.0beta4 
> does not seem to contain a valid dune-common (failed to link with 
> libdunecommon.la)
> --- Failed to build dune_grid ---
> Execution terminated due to errors!

I assume that you did not build (configure & compile) dune-common
before. The problem is that dune-grid checks for the dune-common
libs. In order to avoid these problems dunecontrol offers the all
target.

dunecontrol all

will run autogen.sh (if necessary), configure and make for each
package. If you want to supply more parameters to the commands you
will have to use an opts file.

> 
> And once again a freshly cvs-updated UG was not recognized, config.log told me 
> that a reference could not be resolved although this time all libraries were 
> found:
> 
> configure:24386: checking /usr/local/ug-3.9.x/include/gm.h usability
> configure:24403: g++ -c -g -O2  -I/usr/local/ug-3.9.x/include -D_2 
> conftest.cpp >&5
> configure:24409: $? = 0
> configure:24423: result: yes
> configure:24427: checking /usr/local/ug-3.9.x/include/gm.h presence
> configure:24442: g++ -E  -I/usr/local/ug-3.9.x/include -D_2 conftest.cpp
> configure:24448: $? = 0
> configure:24462: result: yes
> configure:24495: checking for /usr/local/ug-3.9.x/include/gm.h
> configure:24503: result: yes
> configure:24537: checking UG libraries (without MPI)
> configure:24561: g++ -o 
> conftest -g -O2 -I/usr/local/ug-3.9.x/include -D_2  -L/usr/local/ug-3.9.x/lib 
> conftest.cpp -lug2 -ldomS2 -lgg2 -lug3 -ldomS3 -lgg3 -ldevS >&5
> /tmp/cc9u2Fwh.o: In function `main':
> /home/andre/homebase/mathe/angewandtemathe/numerik/dune-1.0beta4/dune-common-1.0beta4/conftest.cpp:33: 
> undefined reference to `UG::D2::InitUg(int*, char***)'
> collect2: ld returned 1 exit status
> configure:24567: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "dune-common"
> | #define PACKAGE_TARNAME "dune-common"
> | #define PACKAGE_VERSION "1.0beta4"
> | #define PACKAGE_STRING "dune-common 1.0beta4"
> | #define PACKAGE_BUGREPORT "dune at dune-project.org"
> | #define PACKAGE "dune-common"
> | #define VERSION "1.0beta4"
> | #define DUNE_DEPRECATED __attribute__((deprecated))
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_DLFCN_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_MALLOC 1
> | #define DUNE_MINIMAL_DEBUG_LEVEL 4
> | #define HAVE_RPC_RPC_H 1
> | #define HAVE_PTHREAD 1
> | #define ALBERTA_DIM 2
> | #define ALBERTA_WORLD_DIM 2
> | /* end confdefs.h.  */
> | #include "initug.h"
> | int
> | main ()
> | {
> | int i = UG::D2::InitUg(0,0)
> |   ;
> |   return 0;
> | }
> configure:24583: result: no

Did you compile UG with CC=g++?

Cheers Christian




More information about the Dune mailing list