Help with installation on cygwin

"Johnny" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Hi, 

   I was trying to install the expat-1.95.8 on my machine. I downloaded the
source, and first configure it. The config.log is attached. But when I then
tried to make install, an error occurs and stopped me from moving on. Here
is the error info:

 

/bin/bash ./libtool --silent --mode=link gcc -g -O2 -Wall
-Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H
-I./lib -I. -no-undefined -version-info 5:0:5 -rpath /home/Johnny
Lee/myProject/expat/lib  -o libexpat.la lib/xmlparse.lo lib/xmltok.lo
lib/xmlrole.lo

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)::
undefined reference to `_WinMain@16'

collect2: ld returned 1 exit status

make: *** [libexpat.la] Error 1

 

   Would any of you help me out? Thanks very much for your help. :-)

 

Regards,
------------------------
Johnny Lee
QA&T, Esmertec China

 

Esmertec (China) Co. Ltd, Chengdu Office
tel:  86-28-8335 3881 ext: 731
fax:  86-28-8332 6276
mobile:  86-138 8062 0876
email:  <mailto:[email protected]> [email protected]
 <http://www.esmertec.com> www.esmertec.com

_______________________________________________
Expat-discuss mailing list
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss
config.log (application/octet-stream, 26.6 KB)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by expat configure 1.95.8, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  $ ./configure --prefix=/home/Johnny Lee/myProject/expat

## --------- ##
## Platform. ##
## --------- ##

hostname = johnnylee-nb
uname -m = i686
uname -r = 1.5.17(0.129/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2005-05-25 19:38

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/WINDOWS/system32
PATH: /cygdrive/c/WINDOWS
PATH: /cygdrive/c/WINDOWS/System32/Wbem
PATH: /cygdrive/c/Program Files/ATI Technologies/ATI Control Panel
PATH: /cygdrive/d/Program Files/Perforce
PATH: /cygdrive/d/Program Files/doxygen/bin
PATH: /cygdrive/d/Program Files/Microsoft Visual Studio/Common/Tools/WinNT
PATH: /cygdrive/d/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
PATH: /cygdrive/d/Program Files/Microsoft Visual Studio/Common/Tools
PATH: /cygdrive/d/Program Files/Microsoft Visual Studio/VC98/bin
PATH: /cygdrive/c/Program Files/Mozilla Firefox


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1655: checking build system type
configure:1673: result: i686-pc-cygwin
configure:1681: checking host system type
configure:1695: result: i686-pc-cygwin
configure:1749: checking for gcc
configure:1765: found /usr/bin/gcc
configure:1775: result: gcc
configure:2019: checking for C compiler version
configure:2022: gcc --version </dev/null >&5
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
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.

configure:2025: $? = 0
configure:2027: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured) 
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
configure:2030: $? = 0
configure:2032: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2035: $? = 1
configure:2061: checking for C compiler default output
configure:2064: gcc    conftest.c  >&5
configure:2067: $? = 0
configure:2100: result: a.exe
configure:2105: checking whether the C compiler works
configure:2111: ./a.exe
configure:2114: $? = 0
configure:2129: result: yes
configure:2136: checking whether we are cross compiling
configure:2138: result: no
configure:2141: checking for suffix of executables
configure:2143: gcc -o conftest.exe    conftest.c  >&5
configure:2146: $? = 0
configure:2168: result: .exe
configure:2174: checking for suffix of object files
configure:2198: gcc -c   conftest.c >&5
configure:2201: $? = 0
configure:2220: result: o
configure:2224: checking whether we are using the GNU C compiler
configure:2251: gcc -c   conftest.c >&5
configure:2254: $? = 0
configure:2257: test -s conftest.o
configure:2260: $? = 0
configure:2272: result: yes
configure:2278: checking whether gcc accepts -g
configure:2302: gcc -c -g  conftest.c >&5
configure:2305: $? = 0
configure:2308: test -s conftest.o
configure:2311: $? = 0
configure:2321: result: yes
configure:2348: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2351: $? = 1
configure: failed program was:
#ifndef __cplusplus
  choke me
#endif
configure:2483: checking for ld used by GCC
configure:2546: result: /usr/i686-pc-cygwin/bin/ld.exe
configure:2555: checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld
GNU ld version 2.16.91 20050608
configure:2567: result: yes
configure:2572: checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files
configure:2579: result: -r
configure:2584: checking for BSD-compatible nm
configure:2620: result: /usr/bin/nm -B
configure:2623: checking whether ln -s works
configure:2627: result: yes
configure:2634: checking how to recognise dependant libraries
configure:2812: result: file_magic file format pei*-i386(.*architecture: i386)?
configure:2825: checking command to parse /usr/bin/nm -B output
configure:2906: gcc -c -g -O2  conftest.c >&5
configure:2909: $? = 0
configure:2913: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ 	]\([ABCDGISTW][ABCDGISTW]*\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm
configure:2916: $? = 0
cannot find nm_test_var in conftest.nm
configure:2906: gcc -c -g -O2  conftest.c >&5
configure:2909: $? = 0
configure:2913: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ 	]\([ABCDGISTW][ABCDGISTW]*\)[ 	][ 	]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm
configure:2916: $? = 0
configure:2968: gcc -o conftest.exe -g -O2   conftest.c conftstm.o >&5
configure:2971: $? = 0
configure:3015: result: ok
configure:3024: checking how to run the C preprocessor
configure:3050: gcc -E  conftest.c
configure:3056: $? = 0
configure:3083: gcc -E  conftest.c
configure:3079:28: ac_nonexistent.h: No such file or directory
configure:3089: $? = 1
configure: failed program was:
#line 3078 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3126: result: gcc -E
configure:3141: gcc -E  conftest.c
configure:3147: $? = 0
configure:3174: gcc -E  conftest.c
configure:3170:28: ac_nonexistent.h: No such file or directory
configure:3180: $? = 1
configure: failed program was:
#line 3169 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3220: checking for ANSI C header files
configure:3234: gcc -E  conftest.c
configure:3240: $? = 0
configure:3325: gcc -o conftest.exe -g -O2   conftest.c  >&5
configure:3328: $? = 0
configure:3330: ./conftest.exe
configure:3333: $? = 0
configure:3347: result: yes
configure:3371: checking for sys/types.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for sys/stat.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for stdlib.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for string.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for memory.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for strings.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for inttypes.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for stdint.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3371: checking for unistd.h
configure:3384: gcc -c -g -O2  conftest.c >&5
configure:3387: $? = 0
configure:3390: test -s conftest.o
configure:3393: $? = 0
configure:3403: result: yes
configure:3429: checking dlfcn.h usability
configure:3438: gcc -c -g -O2  conftest.c >&5
configure:3441: $? = 0
configure:3444: test -s conftest.o
configure:3447: $? = 0
configure:3456: result: yes
configure:3460: checking dlfcn.h presence
configure:3467: gcc -E  conftest.c
configure:3473: $? = 0
configure:3491: result: yes
configure:3509: checking for dlfcn.h
configure:3516: result: yes
configure:3713: checking for ranlib
configure:3729: found /usr/bin/ranlib
configure:3740: result: ranlib
configure:3793: checking for strip
configure:3809: found /usr/bin/strip
configure:3820: result: strip
configure:4033: checking for objdir
configure:4044: result: .libs
configure:4065: checking for gcc option to produce PIC
configure:4215: result: -DDLL_EXPORT
configure:4219: checking if gcc PIC flag -DDLL_EXPORT works
configure:4245: gcc -c -g -O2 -DDLL_EXPORT -DPIC  conftest.c >&5
configure:4248: $? = 0
configure:4251: test -s conftest.o
configure:4254: $? = 0
configure:4291: result: yes
configure:4311: checking if gcc static flag -static works
configure:4338: gcc -o conftest.exe -g -O2   -static conftest.c  >&5
configure:4341: $? = 0
configure:4344: test -s conftest.exe
configure:4347: $? = 0
configure:4362: result: yes
configure:4378: checking if gcc supports -c -o file.o
configure:4400: gcc -c -g -O2 -o out/conftest2.o  conftest.c >&5
configure:4422: result: yes
configure:4427: checking if gcc supports -c -o file.lo
configure:4457: gcc -c -g -O2 -c -o conftest.lo  conftest.c >&5
configure:4460: $? = 0
configure:4463: test -s conftest.lo
configure:4466: $? = 0
configure:4487: result: yes
configure:4526: checking if gcc supports -fno-rtti -fno-exceptions
configure:4551: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c >&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:4554: $? = 0
configure:4557: test -s conftest.o
configure:4560: $? = 0
configure:4576: result: yes
configure:4591: checking whether the linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries
configure:5271: result: yes
configure:5280: checking how to hardcode library paths into programs
configure:5304: result: immediate
configure:5313: checking whether stripping libraries is possible
configure:5318: result: yes
configure:5333: checking dynamic linker characteristics
configure:5726: result: Win32 ld.exe
configure:5735: checking if libtool supports shared libraries
configure:5737: result: yes
configure:5744: checking whether to build shared libraries
configure:5765: result: yes
configure:5772: checking whether to build static libraries
configure:5776: result: yes
configure:7110: checking for gcc
configure:7136: result: gcc
configure:7380: checking for C compiler version
configure:7383: gcc --version </dev/null >&5
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
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.

configure:7386: $? = 0
configure:7388: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug : (reconfigured) 
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
configure:7391: $? = 0
configure:7393: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:7396: $? = 1
configure:7399: checking whether we are using the GNU C compiler
configure:7447: result: yes
configure:7453: checking whether gcc accepts -g
configure:7496: result: yes
configure:7523: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:7526: $? = 1
configure: failed program was:
#ifndef __cplusplus
  choke me
#endif
configure:7648: checking for a BSD-compatible install
configure:7702: result: /usr/bin/install -c
configure:7717: checking whether gcc accepts -fexceptions
configure:7738: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:7729: warning: function declaration isn't a prototype
configure:7741: $? = 0
configure:7744: test -s conftest.o
configure:7747: $? = 0
configure:7749: result: yes
configure:7760: checking for ANSI C header files
configure:7887: result: yes
configure:7899: checking whether byte ordering is bigendian
configure:7929: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:7917: warning: function declaration isn't a prototype
configure:7932: $? = 0
configure:7935: test -s conftest.o
configure:7938: $? = 0
configure:7964: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:7952: warning: function declaration isn't a prototype
configure: In function `main':
configure:7955: error: `not' undeclared (first use in this function)
configure:7955: error: (Each undeclared identifier is reported only once
configure:7955: error: for each function it appears in.)
configure:7955: error: parse error before "big"
configure:7967: $? = 1
configure: failed program was:
#line 7941 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
  ;
  return 0;
}
configure:8028: result: no
configure:8085: checking for gcc option to accept ANSI C
configure:8148: gcc  -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:8101: warning: function declaration isn't a prototype
configure:8129: warning: function declaration isn't a prototype
configure:8151: $? = 0
configure:8154: test -s conftest.o
configure:8157: $? = 0
configure:8174: result: none needed
configure:8182: checking for an ANSI C-conforming const
configure:8252: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:8197: warning: function declaration isn't a prototype
configure: In function `main':
configure:8221: warning: unused variable `s'
configure:8241: warning: unused variable `foo'
configure:8202: warning: unused variable `x'
configure:8208: warning: unused variable `zero'
configure:8238: warning: 'b' might be used uninitialized in this function
configure:8220: warning: 't' might be used uninitialized in this function
configure:8255: $? = 0
configure:8258: test -s conftest.o
configure:8261: $? = 0
configure:8271: result: yes
configure:8281: checking for size_t
configure:8308: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:8329: warning: function declaration isn't a prototype
configure:8311: $? = 0
configure:8314: test -s conftest.o
configure:8317: $? = 0
configure:8327: result: yes
configure:8344: checking for memmove
configure:8387: gcc -o conftest.exe -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions   conftest.c  >&5
configure:8359: warning: function declaration isn't a prototype
configure:8359: warning: conflicting types for built-in function 'memmove'
configure:8360: warning: function declaration isn't a prototype
configure:8370: warning: function declaration isn't a prototype
configure:8390: $? = 0
configure:8393: test -s conftest.exe
configure:8396: $? = 0
configure:8406: result: yes
configure:8344: checking for bcopy
configure:8387: gcc -o conftest.exe -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions   conftest.c  >&5
configure:8359: warning: function declaration isn't a prototype
configure:8359: warning: conflicting types for built-in function 'bcopy'
configure:8360: warning: function declaration isn't a prototype
configure:8370: warning: function declaration isn't a prototype
configure:8390: $? = 0
configure:8393: test -s conftest.exe
configure:8396: $? = 0
configure:8406: result: yes
configure:8432: checking fcntl.h usability
configure:8441: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:8444: $? = 0
configure:8447: test -s conftest.o
configure:8450: $? = 0
configure:8459: result: yes
configure:8463: checking fcntl.h presence
configure:8470: gcc -E  conftest.c
configure:8476: $? = 0
configure:8494: result: yes
configure:8512: checking for fcntl.h
configure:8519: result: yes
configure:8423: checking for unistd.h
configure:8428: result: yes
configure:8532: checking for off_t
configure:8559: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:8580: warning: function declaration isn't a prototype
configure:8562: $? = 0
configure:8565: test -s conftest.o
configure:8568: $? = 0
configure:8578: result: yes
configure:8596: checking for stdlib.h
configure:8601: result: yes
configure:8596: checking for unistd.h
configure:8601: result: yes
configure:8709: checking for getpagesize
configure:8752: gcc -o conftest.exe -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions   conftest.c  >&5
configure:8724: warning: function declaration isn't a prototype
configure:8725: warning: function declaration isn't a prototype
configure:8735: warning: function declaration isn't a prototype
configure:8755: $? = 0
configure:8758: test -s conftest.exe
configure:8761: $? = 0
configure:8771: result: yes
configure:8781: checking for working mmap
configure:8920: gcc -o conftest.exe -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions   conftest.c  >&5
configure:8895: warning: function declaration isn't a prototype
configure:8923: $? = 0
configure:8925: ./conftest.exe
configure:8928: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 8789 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
/* malloc might have been renamed as rpl_malloc. */
#undef malloc

/* Thanks to Mike Haertel and Jim Avera for this test.
   Here is a matrix of mmap possibilities:
	mmap private not fixed
	mmap private fixed at somewhere currently unmapped
	mmap private fixed at somewhere already mapped
	mmap shared not fixed
	mmap shared fixed at somewhere currently unmapped
	mmap shared fixed at somewhere already mapped
   For private mappings, we should verify that changes cannot be read()
   back from the file, nor mmap's back from the file at a different
   address.  (There have been systems where private was not correctly
   implemented like the infamous i386 svr4.0, and systems where the
   VM page cache was not coherent with the file system buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propagated back to all the places they're supposed to be.

   Grep wants private fixed already mapped.
   The main things grep needs to know about mmap are:
   * does it exist and is it safe to write into the mmap'd area
   * how to use it (BSD variants)  */

#include <fcntl.h>
#include <sys/mman.h>

#if !STDC_HEADERS && !HAVE_STDLIB_H
char *malloc ();
#endif

/* This mess was copied from the GNU getpagesize.h.  */
#if !HAVE_GETPAGESIZE
/* Assume that all systems that can run configure have sys/param.h.  */
# if !HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif

# ifdef _SC_PAGESIZE
#  define getpagesize() sysconf(_SC_PAGESIZE)
# else /* no _SC_PAGESIZE */
#  if 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 */

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

  pagesize = getpagesize ();

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

  /* Next, try to mmap the file at a fixed address which already has
     something else allocated at it.  If we can, also make sure that
     we see the same garbage.  */
  fd = open ("conftest.mmap", O_RDWR);
  if (fd < 0)
    exit (1);
  data2 = (char *) malloc (2 * pagesize);
  if (!data2)
    exit (1);
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
    exit (1);
  for (i = 0; i < pagesize; ++i)
    if (*(data + i) != *(data2 + i))
      exit (1);

  /* Finally, make sure that changes to the mapped area do not
     percolate back to the file as seen by read().  (This is a bug on
     some variants of i386 svr4.0.)  */
  for (i = 0; i < pagesize; ++i)
    *(data2 + i) = *(data2 + i) + 1;
  data3 = (char *) 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))
      exit (1);
  close (fd);
  exit (0);
}
configure:8941: result: no
configure:8976: checking check.h usability
configure:8985: gcc -c -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  conftest.c >&5
configure:8988: $? = 0
configure:8991: test -s conftest.o
configure:8994: $? = 0
configure:9003: result: yes
configure:9007: checking check.h presence
configure:9014: gcc -E  conftest.c
configure:9020: $? = 0
configure:9038: result: yes
configure:9056: checking for check.h
configure:9063: result: yes
configure:9077: checking for check.h
configure:9082: result: yes
configure:9283: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by expat config.status 1.95.8, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on johnnylee-nb

config.status:587: creating Makefile
config.status:691: creating expat_config.h

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-cygwin
ac_cv_build_alias=i686-pc-cygwin
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=.exe
ac_cv_func_bcopy=yes
ac_cv_func_getpagesize=yes
ac_cv_func_memmove=yes
ac_cv_func_mmap_fixed_mapped=no
ac_cv_header_check_h=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-cygwin
ac_cv_host_alias=i686-pc-cygwin
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_type_off_t=yes
ac_cv_type_size_t=yes
lt_cv_compiler_c_o=yes
lt_cv_compiler_o_lo=yes
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
lt_cv_file_magic_cmd='$OBJDUMP -f'
lt_cv_file_magic_test_file=
lt_cv_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern char \1;/p'\'''
lt_cv_ld_reload_flag=-r
lt_cv_path_LD=/usr/i686-pc-cygwin/bin/ld.exe
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_prog_cc_can_build_shared=yes
lt_cv_prog_cc_no_builtin=
lt_cv_prog_cc_pic=' -DDLL_EXPORT'
lt_cv_prog_cc_pic_works=yes
lt_cv_prog_cc_shlib=
lt_cv_prog_cc_static=-static
lt_cv_prog_cc_static_works=yes
lt_cv_prog_cc_wl=-Wl,
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ 	]\([ABCDGISTW][ABCDGISTW]*\)[ 	][ 	]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'\'''
lt_cv_sys_path_separator=:

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "expat"
#define PACKAGE_TARNAME "expat"
#define PACKAGE_VERSION "1.95.8"
#define PACKAGE_STRING "expat 1.95.8"
#define PACKAGE_BUGREPORT "[email protected]"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define STDC_HEADERS 1
#define BYTEORDER 1234
#define HAVE_MEMMOVE 1
#define HAVE_BCOPY 1
#define HAVE_FCNTL_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDLIB_H 1
#define HAVE_UNISTD_H 1
#define HAVE_GETPAGESIZE 1
#define HAVE_CHECK_H 1
#define XML_NS 1
#define XML_DTD 1
#define XML_CONTEXT_BYTES 1024

configure: exit 0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.