I am trying to configure courier-imap on RH Linux 7.3

After about 13 of the modules configure, it stops with the error:

configure: error: ./configure failed for liblock

I have looked in the liblock/config.log file and included it in this 
message. I cannot determine from this log what I must do to correct the 
problem I have tried to use --with-locking-method=fcntl but it fails.

Any help is appreciated.

Thanks.

liblock/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:561: checking for a BSD compatible install
configure:614: checking whether build environment is sane
configure:671: checking whether make sets ${MAKE}
configure:710: checking for working aclocal
configure:723: checking for working autoconf
configure:736: checking for working automake
configure:749: checking for working autoheader
configure:762: checking for working makeinfo
configure:781: checking for gawk
configure:813: checking for gcc
configure:926: checking whether the C compiler (gcc  ) works
configure:942: gcc -o conftest    conftest.c  1>&5
configure:968: checking whether the C compiler (gcc  ) is a cross-compiler
configure:973: checking whether we are using GNU C
configure:1001: checking whether gcc accepts -g
configure:1044: checking for a BSD compatible install
configure:1097: checking whether ln -s works
configure:1120: checking for ranlib
configure:1150: checking how to run the C preprocessor
configure:1233: checking for errno.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/errno.h:36,
                  from configure:1239:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
configure: failed program was:
#line 1238 "configure"
#include "confdefs.h"
#include <errno.h>
configure:1233: checking for fcntl.h
configure:1233: checking for sys/fcntl.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1233: checking for sys/ioctl.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/ioctl.h:27,
                  from configure:1239:
/usr/include/bits/ioctls.h:24:24: asm/ioctls.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:30,
                  from configure:1239:
/usr/include/bits/ioctl-types.h:25:24: asm/ioctls.h: No such file or 
directory
configure: failed program was:
#line 1238 "configure"
#include "confdefs.h"
#include <sys/ioctl.h>
configure:1233: checking for sys/file.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1233: checking for unistd.h
configure:1270: checking for ANSI C header files
configure:1374: checking for sys/wait.h that is POSIX.1 compatible
configure:1418: checking for working const
configure:1493: checking for off_t
configure:1526: checking for pid_t
configure:1559: checking return type of signal handlers
configure:1581: gcc -c -g -O2  conftest.c 1>&5
In file included from /usr/include/signal.h:307,
                  from configure:1566:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or 
directory
configure: failed program was:
#line 1564 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int main() {
int i;
; return 0; }
configure:1601: checking for off64_t
configure:1620: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1613: `off64_t' undeclared (first use in this function)
configure:1613: (Each undeclared identifier is reported only once
configure:1613: for each function it appears in.)
configure:1613: parse error before `n'
configure:1615: `n' undeclared (first use in this function)
configure: failed program was:
#line 1607 "configure"
#include "confdefs.h"

#include <sys/types.h>

int main() {

off64_t 
n;

        n=0;
; return 0; }
configure:1646: checking for flock_t
configure:1672: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1667: `flock_t' undeclared (first use in this function)
configure:1667: (Each undeclared identifier is reported only once
configure:1667: for each function it appears in.)
configure:1667: parse error before `t'
configure: failed program was:
#line 1652 "configure"
#include "confdefs.h"

#if     HAVE_CONFIG_H
#include        "config.h"
#endif
#include        <sys/types.h>
#if     HAVE_FCNTL_H
#include        <fcntl.h>
#endif
#if     HAVE_SYS_FCNTL_H
#include        <sys/fcntl.h>
#endif

int main() {

flock_t t;

; return 0; }
configure:1696: checking for setpgrp
configure:1724: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1749: checking for setpgrp
configure:1793: checking whether setpgrp takes no argument
configure:1821: gcc -o conftest -g -O2   conftest.c  1>&5
configure: In function `main':
configure:1813: too many arguments to function `setpgrp'
configure: failed program was:
#line 1801 "configure"
#include "confdefs.h"

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

/*
  * If this system has a BSD-style setpgrp, which takes arguments, exit
  * successfully.
  */
main()
{
     if (setpgrp(1,1) == -1)
        exit(0);
     else
        exit(1);
}

configure:1852: checking for fcntl
configure:1870: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1890: checking for flock
configure:1908: gcc -o conftest -g -O2   conftest.c  1>&5
In file included from /usr/include/errno.h:36,
                  from lockflock.c:20,
                  from configure:1899:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
configure: failed program was:
#line 1896 "configure"
#include "confdefs.h"

#define 
LL_OFFSET_TYPE 
off_t
#include "./lockflock.c"

int main() {

int n;

; return 0; }
configure:1928: checking for lockf
configure:1946: gcc -o conftest -g -O2   conftest.c  1>&5
In file included from configure:1937:
locklockf.c: In function `ll_lockfd':
locklockf.c:32: `errno' undeclared (first use in this function)
locklockf.c:32: (Each undeclared identifier is reported only once
locklockf.c:32: for each function it appears in.)
locklockf.c:32: `EINVAL' undeclared (first use in this function)
configure: failed program was:
#line 1934 "configure"
#include "confdefs.h"

#define 
LL_OFFSET_TYPE 
off_t
#include "./locklockf.c"

int main() {

int n;

; return 0; }
configure:1966: checking for locking method
configure:1991: gcc -o conftest -g -O2   conftest.c  1>&5
In file included from /usr/include/signal.h:307,
                  from locktest.c:18,
                  from configure:1987:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or 
directory
configure: failed program was:
#line 1983 "configure"
#include "confdefs.h"

#define USE_FCNTL 1
#define 
LL_OFFSET_TYPE 
off_t
#include "./locktest.c"
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:561: checking for a BSD compatible install
configure:614: checking whether build environment is sane
configure:671: checking whether make sets ${MAKE}
configure:710: checking for working aclocal
configure:723: checking for working autoconf
configure:736: checking for working automake
configure:749: checking for working autoheader
configure:762: checking for working makeinfo
configure:781: checking for gawk
configure:813: checking for gcc
configure:926: checking whether the C compiler (gcc  ) works
configure:942: gcc -o conftest    conftest.c  1>&5
configure:968: checking whether the C compiler (gcc  ) is a cross-compiler
configure:973: checking whether we are using GNU C
configure:1001: checking whether gcc accepts -g
configure:1044: checking for a BSD compatible install
configure:1097: checking whether ln -s works
configure:1120: checking for ranlib
configure:1150: checking how to run the C preprocessor
configure:1233: checking for errno.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/errno.h:36,
                 from configure:1239:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
configure: failed program was:
#line 1238 "configure"
#include "confdefs.h"
#include <errno.h>
configure:1233: checking for fcntl.h
configure:1233: checking for sys/fcntl.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1233: checking for sys/ioctl.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/sys/ioctl.h:27,
                 from configure:1239:
/usr/include/bits/ioctls.h:24:24: asm/ioctls.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:30,
                 from configure:1239:
/usr/include/bits/ioctl-types.h:25:24: asm/ioctls.h: No such file or directory
configure: failed program was:
#line 1238 "configure"
#include "confdefs.h"
#include <sys/ioctl.h>
configure:1233: checking for sys/file.h
configure:1243: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1233: checking for unistd.h
configure:1270: checking for ANSI C header files
configure:1374: checking for sys/wait.h that is POSIX.1 compatible
configure:1418: checking for working const
configure:1493: checking for off_t
configure:1526: checking for pid_t
configure:1559: checking return type of signal handlers
configure:1581: gcc -c -g -O2  conftest.c 1>&5
In file included from /usr/include/signal.h:307,
                 from configure:1566:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory
configure: failed program was:
#line 1564 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

int main() {
int i;
; return 0; }
configure:1601: checking for off64_t
configure:1620: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1613: `off64_t' undeclared (first use in this function)
configure:1613: (Each undeclared identifier is reported only once
configure:1613: for each function it appears in.)
configure:1613: parse error before `n'
configure:1615: `n' undeclared (first use in this function)
configure: failed program was:
#line 1607 "configure"
#include "confdefs.h"

#include <sys/types.h>

int main() {

off64_t n;

        n=0;

; return 0; }
configure:1646: checking for flock_t
configure:1672: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:1667: `flock_t' undeclared (first use in this function)
configure:1667: (Each undeclared identifier is reported only once
configure:1667: for each function it appears in.)
configure:1667: parse error before `t'
configure: failed program was:
#line 1652 "configure"
#include "confdefs.h"

#if     HAVE_CONFIG_H
#include        "config.h"
#endif
#include        <sys/types.h>
#if     HAVE_FCNTL_H
#include        <fcntl.h>
#endif
#if     HAVE_SYS_FCNTL_H
#include        <sys/fcntl.h>
#endif

int main() {

flock_t t;

; return 0; }
configure:1696: checking for setpgrp
configure:1724: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1749: checking for setpgrp
configure:1793: checking whether setpgrp takes no argument
configure:1821: gcc -o conftest -g -O2   conftest.c  1>&5
configure: In function `main':
configure:1813: too many arguments to function `setpgrp'
configure: failed program was:
#line 1801 "configure"
#include "confdefs.h"

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

/*
 * If this system has a BSD-style setpgrp, which takes arguments, exit
 * successfully.
 */
main()
{
    if (setpgrp(1,1) == -1)
        exit(0);
    else
        exit(1);
}

configure:1852: checking for fcntl
configure:1870: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1890: checking for flock
configure:1908: gcc -o conftest -g -O2   conftest.c  1>&5
In file included from /usr/include/errno.h:36,
                 from lockflock.c:20,
                 from configure:1899:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
configure: failed program was:
#line 1896 "configure"
#include "confdefs.h"

#define LL_OFFSET_TYPE  off_t
#include "./lockflock.c"

int main() {

int n;

; return 0; }
configure:1928: checking for lockf
configure:1946: gcc -o conftest -g -O2   conftest.c  1>&5
In file included from configure:1937:
locklockf.c: In function `ll_lockfd':
locklockf.c:32: `errno' undeclared (first use in this function)
locklockf.c:32: (Each undeclared identifier is reported only once
locklockf.c:32: for each function it appears in.)
locklockf.c:32: `EINVAL' undeclared (first use in this function)
configure: failed program was:
#line 1934 "configure"
#include "confdefs.h"

#define LL_OFFSET_TYPE  off_t
#include "./locklockf.c"

int main() {

int n;

; return 0; }
configure:1966: checking for locking method
configure:1991: gcc -o conftest -g -O2   conftest.c  1>&5
In file included from /usr/include/signal.h:307,
                 from locktest.c:18,
                 from configure:1987:
/usr/include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or directory
configure: failed program was:
#line 1983 "configure"
#include "confdefs.h"

#define USE_FCNTL 1
#define LL_OFFSET_TYPE  off_t
#include "./locktest.c"

Reply via email to