#2 Cannot compile version 1.1.3

closed-out-of-date
nobody
None
2010-09-09
2010-02-18
Anonymous
No

Hi,

I am getting an error saying AC - command not found when I do ./configure in the latest version.

how do I fix it?

Thanks
Koushik

Discussion

1 2 > >> (Page 1 of 2)
  • Kapil Arya
    Kapil Arya
    2010-02-18

    Hi Koushik,

    Thanks for opening the tracker.

    Could you please cut-paste the complete output of ./configure, also if you can tell us more about your system, it would be nice.

    Thanks,
    Developer Team

     
  • Kapil Arya
    Kapil Arya
    2010-02-18

    Please also write the output of the following commands:

    /lib/libc.so.6
    gcc --version
    uname -a

    Also, which Linux distro are you using?

    Thanks,

     

  • Anonymous
    2010-02-18

    GNU C Library stable release version 2.3.5 (20050720), by Roland McGrath et al.
    Copyright (C) 2005 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.
    Configured for i686-suse-linux.
    Compiled by GNU CC version 3.3.3 (SuSE Linux).
    Compiled on a Linux 2.6.5 system on 2007-09-03.
    Available extensions:
    GNU libio by Per Bothner
    crypt add-on version 2.1 by Michael Glad and others
    linuxthreads-0.10 by Xavier Leroy
    GNU Libidn by Simon Josefsson
    NoVersion patch for broken glibc 2.0 binaries
    BIND-8.2.3-T5B
    libthread_db work sponsored by Alpha Processor Inc
    NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
    Thread-local storage support included.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/libc/bugs.html>.
    gcc (GCC) 3.4.2
    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.

    Linux scci71009 2.6.5-7.287.3.PTF.363939.1-smp #1 SMP Tue Oct 2 07:31:36 UTC 2007 x86_64 x86_64 x86_64 GNU/Linuxsuse64

     

  • Anonymous
    2010-02-18

    When I change the gcc version to 4.2.2, I get this error

    (cd mtcp && make CC=gcc build readmtcp)
    make[1]: Entering directory `/tmp/localdisk/kkalyana/checkpoint/dmtcp_1.1.3/mtcp'
    rm -f mtcp.t
    ld -shared --verbose > mtcp.t
    cat mtcp.t | sed -e '1,/========================/ d' > mtcp.tmp
    cat mtcp.tmp | sed -e '/========================/,$ d' > mtcp.t
    rm -f mtcp.tmp mtcp.t-fail
    if test `uname -m` = x86_64; then \ if patch mtcp.t mtcp.t.patch-x86_64; then \ :; \ else \ mv mtcp.t mtcp.t-fail; false; \ fi \ else \ if patch mtcp.t mtcp.t.patch-i386; then \ :; \ else \ mv mtcp.t mtcp.t-fail; false; \ fi \ fi
    patching file mtcp.t
    Hunk #1 succeeded at 6 with fuzz 2.
    Hunk #2 succeeded at 160 (offset -15 lines).
    gcc -DDMTCP=1 -O0 -g -DDEBUG -DTIMING -Wall -fPIC -DPIC -Wa,-adhl=mtcp.lis -c -o mtcp.o mtcp.c
    mtcp.c:178: error: array type has incomplete element type
    make[1]: *** [mtcp.o] Error 1
    make[1]: Leaving directory `/tmp/localdisk/kkalyana/checkpoint/dmtcp_1.1.3/mtcp'
    make: *** [mtcp] Error 2

     
  • Kapil Arya
    Kapil Arya
    2010-02-18

    Thanks for the info.
    I think it has to do with struct user_desc. Its definition changed in some glibc version, I don't know which. Let me try a couple of things and I will get back to you ASAP.

     
  • Kapil Arya
    Kapil Arya
    2010-02-19

    It seems that you are using an old Linux kernel. The simplest option is to update your kernel version since you are using a recent gcc.

    If you do want to support the old kernel then please look into /usr/include/linux/version.h.
    (Please save the original /usr/include/linux/version.h file and restore it back if you see some instability in the system.) :
    Update the file to make sure that the following two lines match your kernel (2.6.5) :
    #define UTS_RELEASE "2.6.5"
    #define LINUX_VERSION_CODE 132613

    This is required for DMTCP to correctly compile.

    Thanks,

     

  • Anonymous
    2010-02-19

    Karya,

    Note: I do not have root access.
    This is my linux.h file. I did not change it (but it is what you expect it to be).

    #ifdef __KERNEL__
    #error "======================================================="
    #error "You should not include /usr/include/{linux,asm}/ header"
    #error "files directly for the compilation of kernel modules."
    #error ""
    #error "glibc now uses kernel header files from a well-defined"
    #error "working kernel version (as recommended by Linus Torvalds)"
    #error "These files are glibc internal and may not match the"
    #error "currently running kernel. They should only be"
    #error "included via other system header files - user space"
    #error "programs should not directly include <linux/*.h> or"
    #error "<asm/*.h> as well."
    #error ""
    #error "To build kernel modules please do the following:"
    #error ""
    #error " o Have the kernel sources installed"
    #error ""
    #error " o Make sure that the symbolic link"
    #error " /lib/modules/`uname -r`/build exists and points to"
    #error " the matching kernel source directory"
    #error ""
    #error " o Configure kernel sources:"
    #error " - cd /usr/src/linux"
    #error " - make mrproper"
    #error " - make cloneconfig"
    #error " - make dep"
    #error ""
    #error " o When compiling, make sure to use the following"
    #error " compiler option to use the correct include files:"
    #error ""
    #error " -I/lib/modules/`uname -r`/build/include"
    #error ""
    #error " instead of"
    #error ""
    #error " -I/usr/include/linux"
    #error ""
    #error " Please adjust the Makefile accordingly."
    #error "======================================================="
    #else
    #define UTS_RELEASE "2.6.5"
    #define LINUX_VERSION_CODE 132613
    #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
    #endif

     
  • Kapil Arya
    Kapil Arya
    2010-02-19

    Aha.
    Now I guess we need some more information. Can you run the following command in the mtcp subdirectory and send us the output:
    cpp mtcp.c

    Thanks,

     
1 2 > >> (Page 1 of 2)