Problem with inn-STABLE-20010828

The Doctor doctor at doctor.nl2k.ab.ca
Wed Aug 29 16:11:23 UTC 2001


On Thu, Aug 30, 2001 at 12:46:29AM +0900, Kenichi Okada wrote:
> 
> In the message <20010829094310.A1029 at doctor.nl2k.ab.ca>
> The Doctor <doctor at doctor.nl2k.ab.ca> wrote:
> 
> > > Please show me config.log.
> > >
> > For Inn or for SSL?
> 
> Inn. 


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

configure:1831: checking host system type
configure:1854: checking for gcc
configure:1967: checking whether the C compiler (gcc  ) works
configure:1983: gcc -o conftest    conftest.c  1>&5
configure:2009: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2014: checking whether we are using GNU C
configure:2023: gcc -E conftest.c
configure:2042: checking whether gcc accepts -g
configure:2084: checking how to run the C preprocessor
configure:2105: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2165: checking whether gcc needs -traditional
configure:2190: termio.h: No such file or directory
configure:2213: checking for flex
configure:2247: checking for yywrap in -lfl
configure:2266: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
ld: cannot open -lfl: No such file or directory
configure: failed program was:
#line 2255 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yywrap();

int main() {
yywrap()
; return 0; }
configure:2289: checking whether make sets ${MAKE}
configure:2318: checking for ranlib
configure:2350: checking for bison
configure:2350: checking for byacc
configure:2388: checking for AIX
configure:2412: checking for POSIXized ISC
configure:2457: checking for ctags
configure:2500: checking for awk
configure:2540: checking for egrep
configure:2580: checking for perl
configure:2620: checking for sh
configure:2660: checking for sed
configure:2700: checking for sort
configure:2758: checking for Perl version
configure:2780: checking for pgpv
configure:2825: checking for ncftp
configure:2908: checking for compress
configure:2950: checking for gzip
configure:2999: checking for sendmail
configure:3089: checking for uustat
configure:3164: checking for library containing crypt
configure:3182: gcc -o conftest -g -O2   conftest.c  1>&5
configure:3227: checking for library containing setproctitle
configure:3245: gcc -o conftest -g -O2   conftest.c  1>&5
/var/tmp/cc3zODZ8.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:3241: undefined reference to `setproctitle'
configure: failed program was:
#line 3234 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char setproctitle();

int main() {
setproctitle()
; return 0; }
configure:3267: gcc -o conftest -g -O2   conftest.c -lutil   1>&5
configure:3293: checking for library containing gethostbyname
configure:3311: gcc -o conftest -g -O2   conftest.c -lutil  1>&5
configure:3354: checking for gethostbyname in -lresolv
configure:3373: gcc -o conftest -g -O2   conftest.c -lresolv  -lutil  1>&5
configure:3394: checking for socket
configure:3422: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:3527: checking for library containing inet_addr
configure:3545: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:3589: checking for pthread_create in -lthread
configure:3608: gcc -o conftest -g -O2   conftest.c -lthread  -lresolv -lutil  1>&5
ld: cannot open -lthread: No such file or directory
configure: failed program was:
#line 3597 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }
configure:3631: checking for pthread_create in -lpthread
configure:3650: gcc -o conftest -g -O2   conftest.c -lpthread  -lresolv -lutil  1>&5
ld: cannot open -lpthread: No such file or directory
configure: failed program was:
#line 3639 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pthread_create();

int main() {
pthread_create()
; return 0; }
configure:3683: checking for getspnam in -lshadow
configure:3702: gcc -o conftest -g -O2   conftest.c -lshadow  -lresolv -lutil  1>&5
ld: cannot open -lshadow: No such file or directory
configure: failed program was:
#line 3691 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getspnam();

int main() {
getspnam()
; return 0; }
configure:3731: checking for nlist in -lelf
configure:3750: gcc -o conftest -g -O2   conftest.c -lelf  -lresolv -lutil  1>&5
ld: cannot open -lelf: No such file or directory
configure: failed program was:
#line 3739 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char nlist();

int main() {
nlist()
; return 0; }
configure:3779: checking for regexec in -lregex
configure:3798: gcc -o conftest -g -O2   conftest.c -lregex  -lresolv -lutil  1>&5
ld: cannot open -lregex: No such file or directory
configure: failed program was:
#line 3787 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char regexec();

int main() {
regexec()
; return 0; }
configure:3830: checking for library containing dbm_open
configure:3848: gcc -o conftest -g -O2   conftest.c  1>&5
configure:4039: checking if OpenSSL is desired
configure:4250: checking for ANSI C header files
configure:4263: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4330: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:4514: checking for dirent.h that defines DIR
configure:4527: gcc -c -g -O2  conftest.c 1>&5
configure:4552: checking for opendir in -ldir
configure:4571: gcc -o conftest -g -O2   conftest.c -ldir  -lresolv -lutil  1>&5
ld: cannot open -ldir: No such file or directory
configure: failed program was:
#line 4560 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
configure:4635: checking whether time.h and sys/time.h may both be included
configure:4649: gcc -c -g -O2  conftest.c 1>&5
configure:4670: checking for sys/wait.h that is POSIX.1 compatible
configure:4691: gcc -c -g -O2  conftest.c 1>&5
configure:4718: checking for crypt.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4724: crypt.h: No such file or directory
configure: failed program was:
#line 4723 "configure"
#include "confdefs.h"
#include <crypt.h>
configure:4718: checking for fcntl.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for limits.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for ndbm.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for stddef.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for stdint.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4724: stdint.h: No such file or directory
configure: failed program was:
#line 4723 "configure"
#include "confdefs.h"
#include <stdint.h>
configure:4718: checking for sys/bitypes.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for sys/file.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for sys/filio.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for sys/ioctl.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for sys/select.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for sys/sysinfo.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for sys/time.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4718: checking for unistd.h
configure:4728: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4799: checking for st_blksize in struct stat
configure:4812: gcc -c -g -O2  conftest.c 1>&5
configure:4833: checking whether struct tm is in sys/time.h or time.h
configure:4846: gcc -c -g -O2  conftest.c 1>&5
configure:4867: checking for working const
configure:4921: gcc -c -g -O2  conftest.c 1>&5
configure:4942: checking for size_t
configure:4975: checking for uid_t in sys/types.h
configure:5009: checking for off_t
configure:5042: checking for pid_t
configure:5075: checking for caddr_t
configure:5108: checking for ssize_t
configure:5145: checking for sig_atomic_t
configure:5182: checking for socklen_t
configure:5221: checking value of IOV_MAX
configure:5278: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5308: checking for SUN_LEN
configure:5328: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5351: checking for tm_gmtoff in struct tm
configure:5363: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5385: checking for tm_zone in struct tm
configure:5397: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5419: checking for timezone variable
configure:5431: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure: In function `main':
configure:5427: invalid lvalue in assignment
configure:5427: `altzone' undeclared (first use in this function)
configure:5427: (Each undeclared identifier is reported only once
configure:5427: for each function it appears in.)
configure: failed program was:
#line 5424 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
timezone = 3600; altzone = 7200
; return 0; }
configure:5453: checking for tzname variable
configure:5465: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure: In function `main':
configure:5461: `tzname' undeclared (first use in this function)
configure:5461: (Each undeclared identifier is reported only once
configure:5461: for each function it appears in.)
configure: failed program was:
#line 5458 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
*tzname = "UTC"
; return 0; }
configure:5488: checking size of int
configure:5507: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5614: checking for int32_t
configure:5658: checking for uint32_t
configure:5701: checking for 8-bit clean memcmp
configure:5719: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5738: checking for vfork.h
configure:5748: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:5744: vfork.h: No such file or directory
configure: failed program was:
#line 5743 "configure"
#include "confdefs.h"
#include <vfork.h>
configure:5773: checking for working vfork
configure:5924: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5947: checking return type of signal handlers
configure:5969: gcc -c -g -O2  conftest.c 1>&5
configure:5994: checking for atexit
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for fchmod
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for fcntl
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for gethostname
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for getpagesize
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for getrusage
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for getspnam
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
/var/tmp/ccduvaM2.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:6016: undefined reference to `getspnam'
configure: failed program was:
#line 5999 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getspnam(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getspnam();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getspnam) || defined (__stub___getspnam)
choke me
#else
getspnam();
#endif

; return 0; }
configure:5994: checking for gettimeofday
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for mkfifo
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for setbuffer
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for sigaction
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for setsid
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for socketpair
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for statvfs
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
/var/tmp/ccaj22S3.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:6016: undefined reference to `statvfs'
configure: failed program was:
#line 5999 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char statvfs(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char statvfs();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_statvfs) || defined (__stub___statvfs)
choke me
#else
statvfs();
#endif

; return 0; }
configure:5994: checking for strcspn
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for strncasecmp
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for strstr
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for strtoul
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for symlink
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:5994: checking for waitpid
configure:6022: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6050: checking for seteuid
configure:6078: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6104: checking for getrlimit
configure:6132: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6147: checking for setrlimit
configure:6175: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6205: checking for sysconf
configure:6233: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6415: checking for statfs
configure:6443: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6471: checking for sys/vfs.h
configure:6481: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:6477: sys/vfs.h: No such file or directory
configure: failed program was:
#line 6476 "configure"
#include "confdefs.h"
#include <sys/vfs.h>
configure:6471: checking for sys/param.h
configure:6481: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:6471: checking for sys/mount.h
configure:6481: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:6513: checking for fseeko
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
/var/tmp/ccjrMPWg.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:6535: undefined reference to `fseeko'
configure: failed program was:
#line 6518 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fseeko(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char fseeko();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fseeko) || defined (__stub___fseeko)
choke me
#else
fseeko();
#endif

; return 0; }
configure:6513: checking for ftello
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
/var/tmp/ccAbOZML.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:6535: undefined reference to `ftello'
configure: failed program was:
#line 6518 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char ftello(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char ftello();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_ftello) || defined (__stub___ftello)
choke me
#else
ftello();
#endif

; return 0; }
configure:6513: checking for getopt
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for inet_aton
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for inet_ntoa
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for pread
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
/var/tmp/ccLmAi2H.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:6535: undefined reference to `pread'
configure: failed program was:
#line 6518 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pread(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pread();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pread) || defined (__stub___pread)
choke me
#else
pread();
#endif

; return 0; }
configure:6513: checking for pwrite
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
/var/tmp/cchjD3hj.o: In function `main':
/usr/source/inn-STABLE-20010829/configure:6535: undefined reference to `pwrite'
configure: failed program was:
#line 6518 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char pwrite(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pwrite();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_pwrite) || defined (__stub___pwrite)
choke me
#else
pwrite();
#endif

; return 0; }
configure:6513: checking for strcasecmp
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for strdup
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for strerror
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for strspn
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for setenv
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6513: checking for hstrerror
configure:6541: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6570: checking for off_t-compatible fpos_t
configure:6592: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6629: checking if mmap() sees write()s
configure:6666: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6690: checking for working mmap
configure:6798: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6822: checking for madvise
configure:6850: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:6877: checking whether msync is needed
configure:6997: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure: failed program was:
#line 6885 "configure"
#include "confdefs.h"

/* test shared mmap (msync) */
#include <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif

/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  ifdef HAVE_SYS_PARAM_H
#   include <sys/param.h>
#   ifdef EXEC_PAGESIZE
#    define getpagesize() EXEC_PAGESIZE
#   else /* no EXEC_PAGESIZE */
#    ifdef NBPG
#     define getpagesize() NBPG * CLSIZE
#     ifndef CLSIZE
#      define CLSIZE 1
#     endif /* no CLSIZE */
#    else /* no NBPG */
#     ifdef NBPC
#      define getpagesize() NBPC
#     else /* no NBPC */
#      ifdef PAGESIZE
#       define getpagesize() PAGESIZE
#      endif /* PAGESIZE */
#     endif /* no NBPC */
#    endif /* no NBPG */
#   endif /* no EXEC_PAGESIZE */
#  else /* no HAVE_SYS_PARAM_H */
#   define getpagesize() 8192   /* punt totally */
#  endif /* no HAVE_SYS_PARAM_H */
# endif /* no _SC_PAGESIZE */

#endif /* no HAVE_GETPAGESIZE */

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

int
main()
{
        char *data, *data2, *data3;
        int i, pagesize;
        int fd, rval;

        pagesize = getpagesize();

        /*
         * First, make a file with some known garbage in it.
         */
        data = malloc(pagesize);
        if (!data)
                exit(1);
        for (i = 0; i < pagesize; ++i)
                *(data + i) = rand();
        umask(0);
        fd = creat("conftestmmapm", 0600);
        if (fd < 0)
                exit(1);
        if (write(fd, data, pagesize) != pagesize)
                exit(1);
        close(fd);

        /*
         * Next, try to mmap the file.
         */
        fd = open("conftestmmapm", O_RDWR);
        if (fd < 0)
                exit(1);
        if (! (data2 = mmap((void*)0, pagesize, PROT_READ | PROT_WRITE,
            MAP_SHARED, fd, 0L)) )
                exit(1);

        /*
         * Finally, see if changes to the mapped area automatically
         * percolate back to the file as seen by read().
         * I.E., msync is not needed
         */
	rval = 0;
        for (i = 0; i < pagesize; ++i)
                *(data2 + i) = *(data2 + i) + 1;
        data3 = malloc(pagesize);
        if (!data3)
                exit(1);
        if (read(fd, data3, pagesize) != pagesize)
                exit(1);
        for (i = 0; i < pagesize; ++i)
                if (*(data + i) != *(data3 + i))
                        rval = 1;
        close(fd);
        unlink("conftestmmapm");
        exit(rval);
}

configure:7022: checking for regexec
configure:7050: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:7075: checking for three argument msync
configure:7089: gcc -o conftest -g -O2   conftest.c -lresolv -lutil  1>&5
configure:7110: checking for Unix domain sockets
configure:7138: checking log facility for news


More information about the inn-workers mailing list