Hello Borek
I post whole that contains of the file configure.
$ ./configure OOFEM_TARGET=oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir
## --------- ##
## Platform. ##
## --------- ##
hostname = ACER-29569F1E48
uname -m = i686
uname -r = 1.5.25(0.156/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2008-06-12 19:34
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/program files/silverfrost/ftn95
PATH: /cygdrive/c/WINDOWS/system32
PATH: /cygdrive/c/WINDOWS
PATH: /cygdrive/c/WINDOWS/system32/wbem
PATH: /cygdrive/c/program files/intel/wireless/bin/
PATH: /cygdrive/c/Program Files/MATLAB/R2006a/bin/win32
PATH: /cygdrive/c/Program Files/Fichiers communs/Autodesk Shared/
PATH: /cygdrive/c/PROGRA~1/FICHIE~1/MUVEET~1/030625
PATH: /usr/lib/lapack
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1821: checking build system type
configure:1839: result: i686-pc-cygwin
configure:1861: checking host system type
configure:1876: result: i686-pc-cygwin
configure:1903: checking OOFEM_DIR
configure:1910: result: /cygdrive/c/cygwin/home/oofem-1.8
configure:2009: checking for g++
configure:2025: found /usr/bin/g++
configure:2036: result: g++
configure:2067: checking for C++ compiler version
configure:2074: g++ --version >&5
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2077: $? = 0
configure:2084: g++ -v >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
configure:2087: $? = 0
configure:2094: g++ -V >&5
g++: `-V' option must have argument
configure:2097: $? = 1
configure:2120: checking for C++ compiler default output file name
configure:2147: g++ conftest.cpp >&5
configure:2150: $? = 0
configure:2188: result: a.exe
configure:2205: checking whether the C++ compiler works
configure:2215: ./a.exe
configure:2218: $? = 0
configure:2235: result: yes
configure:2242: checking whether we are cross compiling
configure:2244: result: no
configure:2247: checking for suffix of executables
configure:2254: g++ -o conftest.exe conftest.cpp >&5
configure:2257: $? = 0
configure:2281: result: .exe
configure:2287: checking for suffix of object files
configure:2313: g++ -c conftest.cpp >&5
configure:2316: $? = 0
configure:2339: result: o
configure:2343: checking whether we are using the GNU C++ compiler
configure:2372: g++ -c conftest.cpp >&5
configure:2378: $? = 0
configure:2395: result: yes
configure:2400: checking whether g++ accepts -g
configure:2430: g++ -c -g conftest.cpp >&5
configure:2436: $? = 0
configure:2535: result: yes
configure:2563: checking how to run the C++ preprocessor
configure:2599: g++ -E conftest.cpp
configure:2605: $? = 0
configure:2636: g++ -E conftest.cpp
conftest.cpp:8:28: ac_nonexistent.h: No such file or directory
configure:2642: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2675: result: g++ -E
configure:2704: g++ -E conftest.cpp
configure:2710: $? = 0
configure:2741: g++ -E conftest.cpp
conftest.cpp:8:28: ac_nonexistent.h: No such file or directory
configure:2747: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2803: checking for a BSD-compatible install
configure:2859: result: /usr/bin/install -c
configure:2913: checking for ranlib
configure:2929: found /usr/bin/ranlib
configure:2940: result: ranlib
configure:2966: checking whether make sets $(MAKE)
configure:2987: result: yes
configure:3000: checking for grep that handles long lines and -e
configure:3074: result: /usr/bin/grep
configure:3079: checking for egrep
configure:3157: result: /usr/bin/grep -E
configure:3162: checking for ANSI C header files
configure:3192: g++ -c -g -O2 conftest.cpp >&5
configure:3198: $? = 0
configure:3297: g++ -o conftest.exe -g -O2 conftest.cpp >&5
configure:3300: $? = 0
configure:3306: ./conftest.exe
configure:3309: $? = 0
configure:3326: result: yes
configure:3350: checking for sys/types.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for sys/stat.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for stdlib.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for string.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for memory.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for strings.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for inttypes.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for stdint.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3350: checking for unistd.h
configure:3371: g++ -c -g -O2 conftest.cpp >&5
configure:3377: $? = 0
configure:3393: result: yes
configure:3425: checking limits.h usability
configure:3442: g++ -c -g -O2 conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking limits.h presence
configure:3481: g++ -E conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for limits.h
configure:3537: result: yes
configure:3425: checking malloc.h usability
configure:3442: g++ -c -g -O2 conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking malloc.h presence
configure:3481: g++ -E conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for malloc.h
configure:3537: result: yes
configure:3415: checking for strings.h
configure:3421: result: yes
configure:3415: checking for unistd.h
configure:3421: result: yes
configure:3425: checking sys/time.h usability
configure:3442: g++ -c -g -O2 conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking sys/time.h presence
configure:3481: g++ -E conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for sys/time.h
configure:3537: result: yes
configure:3425: checking sys/resource.h usability
configure:3442: g++ -c -g -O2 conftest.cpp >&5
configure:3448: $? = 0
configure:3462: result: yes
configure:3466: checking sys/resource.h presence
configure:3481: g++ -E conftest.cpp
configure:3487: $? = 0
configure:3501: result: yes
configure:3529: checking for sys/resource.h
configure:3537: result: yes
configure:3551: checking whether time.h and sys/time.h may both be included
configure:3581: g++ -c -g -O2 conftest.cpp >&5
configure:3587: $? = 0
configure:3602: result: yes
configure:3621: checking for strstr
configure:3677: g++ -o conftest.exe -g -O2 conftest.cpp >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for strtod
configure:3677: g++ -o conftest.exe -g -O2 conftest.cpp >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for strtol
configure:3677: g++ -o conftest.exe -g -O2 conftest.cpp >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for strncasecmp
configure:3677: g++ -o conftest.exe -g -O2 conftest.cpp >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3621: checking for access
configure:3677: g++ -o conftest.exe -g -O2 conftest.cpp >&5
configure:3683: $? = 0
configure:3701: result: yes
configure:3716: checking for nearest
configure:3772: g++ -o conftest.exe -g -O2 conftest.cpp >&5
/cygdrive/c/DOCUME~1/SANCHE~1/LOCALS~1/Temp/ccENZUDi.o: In function `main':
/cygdrive/c/cygwin/home/oofem-1.8/conftest.cpp:64: undefined reference to `_nearest'
collect2: ld returned 1 exit status
configure:3778: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #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_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h. */
| /* Define nearest to an innocuous variant, in case <limits.h> declares nearest.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define nearest innocuous_nearest
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char nearest (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef nearest
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char nearest ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_nearest || defined __stub___nearest
| choke me
| #endif
|
| int
| main ()
| {
| return nearest ();
| ;
| return 0;
| }
configure:3796: result: no
configure:3807: checking FALSE, TRUE enum/constants
configure:3830: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp: In function `int main()':
conftest.cpp:34: error: `FALSE' undeclared (first use this function)
conftest.cpp:34: error: (Each undeclared identifier is reported only once for each function it appears in.)
conftest.cpp:34: error: `TRUE' undeclared (first use this function)
configure:3836: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #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_LIMITS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_STRSTR 1
| #define HAVE_STRTOD 1
| #define HAVE_STRTOL 1
| #define HAVE_STRNCASECMP 1
| #define HAVE_ACCESS 1
| /* end confdefs.h. */
| #include<stdio.h>
| int
| main ()
| {
| if (1) return FALSE; else return TRUE;
| ;
| return 0;
| }
configure:3855: result: no
configure:3862: checking typedef bool
configure:3885: g++ -c -g -O2 conftest.cpp >&5
configure:3891: $? = 0
configure:3897: result: yes
configure:3916: checking M_PI constant
configure:3939: g++ -c -g -O2 conftest.cpp >&5
configure:3945: $? = 0
configure:3951: result: yes
configure:3971: checking M_LN2 constant
configure:3994: g++ -c -g -O2 conftest.cpp >&5
configure:4000: $? = 0
configure:4006: result: yes
configure:4027: checking STL support
configure:4050: g++ -c -g -O2 conftest.cpp >&5
configure:4056: $? = 0
configure:4062: result: yes
configure:4079: checking Macro __VA_ARGS__ support
configure:4107: g++ -c -g -O2 conftest.cpp >&5
configure:4113: $? = 0
configure:4119: result: yes
configure:4139: checking Function Templates support
configure:4176: g++ -c -g -O2 conftest.cpp >&5
configure:4182: $? = 0
configure:4188: result: yes
configure:4368: checking for sqrt in -lm
configure:4403: g++ -o conftest.exe -g -O2 conftest.cpp -lm >&5
configure:4409: $? = 0
configure:4427: result: yes
configure:6882: checking Determining hostname
configure:6885: result:
configure:6888: checking OOFEM version
configure:6891: result: 1.8
configure:7055: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by config.status, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on ACER-29569F1E48
config.status:663: creating makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/include/oofemdef.h
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/oofemlib/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/sm/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/tm/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/fm/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/dss/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/lib/main/makefile
config.status:663: creating tools/makefile
config.status:663: creating targets/oofeg--enable-oofeg--with-CKITDIR=/Ckit/--with-ELIXIRDIR=/Elixir/include/oofemcfg.h
Now, I have the executable oofem but when I write cd tools, make all, I have problems and I cann't compiler the tools, why?
This is the message:
cd tools; make all
g++ -O -c tokenizer.C -o tokenizer.o
g++ -O -c seek.C -o seek.o
g++ -O -o systemstudentextractor -DSYSYTEM_STUDENT_EXTRACTOR_MODE checker.C tokenizer.o seek.o -lm
checker.C: In fuction 'int main(int, char**)':
checker.C:798: error: 'basename' undeclared <first use this fuction>
checker.C:798: error: <Each undeclared identifier is reported only once for each fuction it appears in.>
make: *** [systemstudentextractor] Error 1
I'm not happy because I don't know I'm going to do
I think that the is not basename declared in the compilation process? But if I have the oofem executable I can run the program without tools?
Thanks for help me