#40 configure fails on s390 (patch attached)

0.6 branch
closed
nobody
Compilation (8)
5
2009-01-16
2005-11-08
Jiri Bohac
No

Hi,

the configure script in ipsec-tools-0.6.2 does not work
on the s390 architecture. Due to compilation errors of
the test snipet in conftest.c, it errorneously #defines
RETSIGTYPE as int instead of void. This then causes
compilation errors.

The problem is that when configure tries to determine
ti RETSIGTYPE, CPPFLAGS includes /usr/src/linux; This
in turn includes include/asm-s390/sigcontext.h from the
kernel source tree and not the intended
/usr/include/asm/sigcontext.h

In recent kernels include/asm-s390/sigcontext.h makes
use of the __user macro, which is not defined unless
compiling the kernel itself. This is what makes the
compilation fail in configure.

The simple attached patch fixes this.

Discussion

  • Jiri Bohac
    Jiri Bohac
    2005-11-08

    Patch that makes configure work on s390

     
    Attachments
  • Jiri Bohac
    Jiri Bohac
    2005-11-08

    • assigned_to: nobody --> ludvigm
     
  • Michal Ludvig
    Michal Ludvig
    2005-11-08

    • assigned_to: ludvigm --> nobody
     
  • Michal Ludvig
    Michal Ludvig
    2005-11-08

    Logged In: YES
    user_id=344740

    Thanks Jirka!
    Looks pretty obvious but unassigning from me anyway as I'm
    not involved in the development anymore (unfortunately).
    Guys, test and check in this patch please.

     
  • Timo Teras
    Timo Teras
    2009-01-16

    • status: open --> closed
     
  • Timo Teras
    Timo Teras
    2009-01-16

    Closing all sourceforge.net bugs. If this issue has not been cared for please submit a new bug report to https://trac.ipsec-tools.net/ issue tracker. Thank you.