1 (edited by thuongnm 15-11-2010 01:03:15)

Topic: Problem with Ckit and Elixir!

Hi BP!

I downloaded 2 packages Ckit and Elixir from website (http://hogwarts.ucsd.edu/~pkrysl/software.html). After untar those packages, I tried to configure them by the command ./configure! however, I got some errors:
here is from  Elixir:
-------------------------------------------------------------
thuongnm@thuongnm-laptop:~/program/Elixir$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/thuongnm/program/Elixir/config/missing: Unknown `--run' option
Try `/home/thuongnm/program/Elixir/config/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for library containing strerror... none required
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... yes
checking compile with prototypes... yes (gcc )
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for _get_list_next in -lckit... no
checking Looking for Ckit in probable locations... configure: WARNING: Ckit library not found in standard places -- set -L
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ckitcfg.h usability... no
checking ckitcfg.h presence... no
checking for ckitcfg.h... no
checking Looking for Ckit headers in probable locations... configure: WARNING: Ckit includes not found in standard places -- set -I
checking for an ANSI C-conforming const... yes
checking for getcwd... yes
checking for getwd... yes
checking for memcpy... yes
checking for qsort... yes
checking for random... yes
checking for rand... yes
checking for setpwent... yes
checking for strchr... yes
checking for strerror... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XawDialogGetValueString in -lXaw... yes
checking Support for shared libraries... shared ar (linux-gnu): ld -shared -o
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: Makefile.in
----------------------------------
and here is from Ckit:

thuongnm@thuongnm-laptop:~/program/Ckit$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/thuongnm/program/Ckit/config/missing: Unknown `--run' option
Try `/home/thuongnm/program/Ckit/config/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for library containing strerror... none required
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... yes
checking compile with prototypes... yes (gcc )
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for gettimeofday... yes
checking for random... yes
checking for rand... yes
checking for strerror... yes
checking for times... yes
checking Support for shared libraries... shared ar (linux-gnu): ld -shared -o
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: Makefile.in
-----------------------------------------------
I don't know how to fix these errors! please help me!
One more question! once I fixed these errors successfully,wil this command work when I do the configure:
./configure OOFEM_TARGET=oofeg-release  --enable-oofeg  --with-CKITDIR=/home/thuongnm/program/Ckit  --with-ELIXIRDIR=/home/thuongnm/program/Elixir

thank you very much!

2

Re: Problem with Ckit and Elixir!

Hi,

first, I would like to make sure, that when configuring Ckit, you run configure script in src directory of Ckit installation directory (as described in Ckit README) and the same applies for Elixir.

Borek

3 (edited by thuongnm 17-11-2010 01:22:09)

Re: Problem with Ckit and Elixir!

hi! I run the configure.in in src directory! however, there is an error:
--------------------------------------
thuongnm@thuongnm-laptop:~/program/Elixir/src$ ./configure.in
./configure.in: line 1: dnl: command not found
./configure.in: line 2: syntax error near unexpected token `./Ecfg.h.in'
./configure.in: line 2: `AC_INIT(./Ecfg.h.in)'

here is the content of the configure.in:

dnl Process this file with autoconf to produce a configure script.
AC_INIT(./Ecfg.h.in)
AC_CONFIG_HEADER(./Ecfg.h)
AC_CONFIG_AUX_DIR(.)

AC_CANONICAL_HOST
ARCH_DIR=$host
AC_SUBST(ARCH_DIR)

AC_SET_MAKE

case $host in
        alpha-dec-osf*)
                if test x"$CC" = x ; then
                        CC=cc; export CC
                fi
                ;;
        mips-sgi-irix6.*)
                CC=cc; export CC
                ;;
esac
AC_PROG_CC
AC_ISC_POSIX
AC_LN_S
AC_PROG_CPP
AC_AIX
AC_PROG_RANLIB
if test -x ./install.sh ; then
INSTALL=./install.sh;
INSTALL_PROGRAM=./install.sh;
INSTALL_DATA=./install.sh;
AC_SUBST(INSTALL)
AC_SUBST(INSTALL_PROGRAM)
AC_SUBST(INSTALL_DATA)
else       
AC_PROG_INSTALL
fi

add_c_flags=""
case  $host_os in
        hpux*)   # The HP-UX 8.07 (on HP/9000 720) is known to require this
                add_c_flags="-D_HPUX_SOURCE"
                ;;
        sunos*)
                add_c_flags=""
                ;;
esac

USE_DEFAULT_VISUAL=""
AC_SUBST(USE_DEFAULT_VISUAL)


case $host in
        alpha-dec-osf*)
                CC=cc; export CC
                ;;
        mips-sgi-irix6.*)
                CC=cc; export CC
                ;;
esac

dnl  Now test for prototype support: we have to have them to compile Ckit
dnl  Elixir, and ESI
dnl
cc_as_set=$CC
proto_test_result=no
for test_cc in $CC gcc xlc c89 cc
do
   test_cc="$test_cc $add_c_flags"
   CC=$test_cc
   unset rslt
   unset ac_cv_prog_rslt # hack: relies on autoconf naming conventions
   AC_CHECK_PROG(rslt, $CC, yes, no)
   if test x$rslt = xyes ; then
      AC_TRY_COMPILE(,[int func(int a, double b); func(1, 0.0);],
         [proto_test_result=yes
          break])
   fi
done
if test x$proto_test_result = xyes ; then
        CC=$test_cc      proto_test_result="yes ($CC)"
else
        CC=$cc_as_set    proto_test_result="no support for prototypes"
fi
AC_MSG_CHECKING(compile with prototypes)
AC_MSG_RESULT($proto_test_result)


AC_PATH_PROGS(M4, gm4 gnum4 m4, m4)

dnl  Must have Ckit.  If not in standard places, the user must supply path
dnl
CKIT_LIB="-L?"
AC_CHECK_LIB(ckit, _get_list_next,
  [
     CKIT_LIB="-lckit"
  ],[
     for probable_dir in ../../Ckit/src ../../Ckit/lib/$ARCH_DIR
     do
       AC_MSG_CHECKING($probable_dir/libckit.a)
       if test -f $probable_dir/libckit.a ; then
          AC_MSG_RESULT(yes)
          CKIT_LIB="$probable_dir/libckit.a"
          break
       else
          CKIT_LIB=-L?
       fi
     done
     if test "$CKIT_LIB" = "-L?" ; then
        AC_MSG_WARN(Ckit library not found in standard places -- set -L)
     fi
  ])
AC_SUBST(CKIT_LIB)
CKIT_INCLUDES="-I."
AC_CHECK_HEADER(ckitcfg.h,,
  [
     probable_dir=../../Ckit/include
     AC_MSG_CHECKING(guess of Ckit includes location)
     if test -f $probable_dir/ckitcfg.h ; then
        AC_MSG_RESULT($probable_dir)
        CKIT_INCLUDES="-I$probable_dir"
     else
        CKIT_INCLUDES="-I?"
        AC_MSG_WARN(Ckit includes not found in standard places -- set -I) 
     fi
  ])
AC_SUBST(CKIT_INCLUDES)

ELIXIR_INCLUDES="-I."
AC_SUBST(ELIXIR_INCLUDES)

AC_CONST

AC_CHECK_FUNCS(getcwd getwd memcpy qsort random rand setpwent strchr strerror)

AC_CHECK_HEADERS(sys/time.h unistd.h)
AC_HEADER_STDC
AC_HEADER_DIRENT

dnl  X11 libraries
AC_PATH_XTRA
AC_CHECK_LIB(Xaw, XawDialogGetValueString,,
  [
     AC_MSG_WARN(No support for Xaw (or Xmu) -- cannot build)
  ],
  -lXt -lXmu -lX11 -lXext)


AC_MSG_CHECKING(Support for shared libraries)
# Set up shared library construction
case "$host_os" in
  freebsd*)  AR_SHARED="ld -Bshareable -o" ;;
  hpux*)    AR_SHARED="ld -b -o" ;;
  irix5*)    AR_SHARED="ld -shared -all -o" ;;
  irix6*)    AR_SHARED="ld -shared -all -woff 131 -o" ;;
  linux*)    AR_SHARED="ld -shared -o" ;;
  osf*)      AR_SHARED="ld -shared -all -expect_unresolved \* -o" ;;
  solaris2*) AR_SHARED="ld -G -o" ;;
  sunos4*)   AR_SHARED="ld -assert pure-text -o" ;;
  *)
    AR_SHARED="false"
    ;;
esac
AC_MSG_RESULT(shared ar ($host_os): $AR_SHARED)
AC_SUBST(AR_SHARED)


AC_SUBST(srcdir)
AC_SUBST(top_srcdir)
AC_SUBST(CFLAGS)
AC_SUBST(LIBS)
AC_SUBST(x_libraries)
AC_SUBST(x_includes)

AC_OUTPUT(Makefile)
--------------------------------------------
thus I guess the error comes from the first line:
"dnl Process this file with autoconf to produce a configure script."
then I comment out this line but still get error:
thuongnm@thuongnm-laptop:~/program/Elixir/src$ ./configure.in
./configure.in: line 2: syntax error near unexpected token `./Ecfg.h.in'
./configure.in: line 2: `AC_INIT(./Ecfg.h.in)'
thuongnm@thuongnm-laptop:~/program/Elixir/src$

it happened the same with Ckit! I don't know why?

4

Re: Problem with Ckit and Elixir!

Hi,

do not run "configure.in", run "configure" instead! The configure.in is a source, from which configure script is generated.
Borek

Re: Problem with Ckit and Elixir!

hi BP!
Actually there is no configure file in both src directories of Ckit and Elixir. Then when I run the command ./configure it will be error "bash: ./configure: No such file or directory".
However there is one configure file at the directory Ckit and Elixir. Then I copy it from Ckit or Elixir directory to src directory, then run it, but it didn't work at all:
thuongnm@thuongnm-laptop:~/program/Ckit/src$ ./configure
configure: error: cannot find install-sh or install.sh in config ./config
-----------------------------------
I already downloaded both Ckit and Elixir again and untar it, however, in src directory, there is no configure file!  this file only in Ckit and Elixir directores, but when I run it, the error appears like the I showed you in the first question.

Is there something changes in those package I downloaded?

Re: Problem with Ckit and Elixir!

Stop entering the src-directories. Dont copy or move files related to the buildsystem.
Just enter respective directory (Elixir/ and Ckit/) and run ./configure

Now, there seems to be some issues, and a quick look at Elixir tells me that you should run the entire autotools series of commands, as done in the script "bootstrap".

7

Re: Problem with Ckit and Elixir!

Ok, something seems to be broken with packages from Peter. Could you please get Ckit and Elixir packages from oofem website. You need Elixir sources from oofem site anyway, as the original one from Peter Krysl is missing some features.
They can be downloaded from here: http://www.oofem.org/en/download/download.html

Start by unpacking Ckit (Elixir depends on it), unpack it and follow the instructions in README. Then apply the same procedure for Elixir.

Borek

Re: Problem with Ckit and Elixir!

hi BP and Mikael Öhman!

Now my installation is successful! thank you very much!