LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: E. Robert Tisdale (E.Robert.Tisdale_at_[hidden])
Date: 2004-10-05 17:20:03


    lam-7.1.1> ./configure
        .
        .
        .
    *** Optional modules
    checking if want MPI C++ bindings... enabled
    checking size of int... 4
    checking size of bool... 1
    checking type of MPI attributes... long
    checking for signal declaration... not found
    configure: error: cannot determine if signals are bsd/sysv

The problem seems to be in signal.h

    lam-7.1.1> cat config.log
       .
       .
       .
    | #include<signal.h>
    | extern "C" void sysv_handler(int sig) {};
    |
    | int
    | main ()
    | {
    | signal(1, sysv_handler);
    |
    | ;
    | return 0;
    | }
    configure:25480: result: not found
    configure:25482: error: cannot determine if signals are bsd/sysv
       .
       .
       .

I use the GNU C compiler:

    lam-7.1.1> gcc --version
    gcc (GCC) 3.4.1

with options:

    lam-7.1.1> printenv CFLAGS
    -Wall -std=c99 -pedantic -O3

The problem appears to be that

    lam-7.1.1> cat /usr/include/signal.h
        .
        .
        .
    #ifdef __USE_POSIX
        .
        .
        .
    # include <bits/siginfo.h>
       .
       .
       .
    # endif
       .
       .
       .

the signal.h header file will *not* include the bits/siginfo.h
header file unless __USE_POSIX is defined
but my GNU C compiler will *not* allow __USE_POSIX
to be defined when i use the -std=c99 option.