I need to recompile diffutils and I'm having problems
doing so. If anyone can help with details, I'd appreciate
it.

Here's what I'm doing:
1) I installed the "current" release of MSYS/MinGW
The exact files are:
  mingw-2.0.0-3.exe
  mingw-utils-0.2.tar.gz
  msys-1.0.9.exe
  msysdtk-1.0.1.exe

At this point I can compile trivial stuff like HelloWorld.

2) I install all of the zips (src,bin,doc,lib) for each the
following packages:
  diffutils-2.8.1-3
  libgw32c-0.3
  libiconv-1.8.1
  libintl-0.11.5-2
  regex-0.12

3) I download config.site (refered to at
http://gnuwin32.sourceforge.net/compile.html).
I change the very last line in this file, the
prefix specification.

4) I open up a mingw shell window
cd to diffutils/src/diffutils-2.8.1

5) I type 'make -f makefile.mingw' and I get
the following error:

        $ make -f makefile.mingw
        ./configure --prefix=c:/progra~1/DiffUtils \
          --without-included-regex
        configure: loading site script /c/gnu/gnuwin32/config.site
        checking for a BSD-compatible install... /bin/install.exe -cpD
        checking whether build environment is sane... yes
        checking for gawk... gawk
        checking whether make sets ${MAKE}... yes
        checking for gawk... (cached) gawk
        checking for gcc... gcc
        checking for C compiler default output... configure: error: C compiler
cannot create executables
        make: *** [all] Error 77

Does anyone have any ideas what I'm doing wrong?
I've attached config.log if it helps.

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

It was created by GNU diffutils configure 2.8.1, which was
generated by GNU Autoconf 2.53.  Invocation command line was

  $ ./configure --prefix=c:/progra~1/DiffUtils --without-included-regex

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

hostname = doghaus
uname -m = i686
uname -r = 1.0.9(0.46/3/2)
uname -s = MINGW32_NT-5.0
uname -v = 2003-07-03 07:26

/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: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/winnt/system32
PATH: /c/winnt
PATH: /c/winnt/system32/wbem


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

configure:1123: loading site script /c/gnu/gnuwin32/config.site
| # These two variables are required, otherwise looking for
| # programs along the PATH will not work.
| PATH_SEPARATOR=:
| PATH_EXPAND=y
| 
| # This is required in for "test -f foo" to find foo.exe
| export TEST_FINDS_EXE=y
| 
| # Install programs
| INSTALL=${INSTALL:='/bin/install.exe -cpD'}
| INSTALL_DATA=${INSTALL_DATA:='/bin/install.exe -cp'}
| INSTALL_PROGRAM=${INSTALL_PROGRAM:='/bin/install.exe -cpD'}
| 
| # Do not detect fork even if a stub is provided
| ac_cv_func_fork=no
| ac_cv_func_vfork=no
| 
| # Detect socket functions 
| ac_cv_func_gethostbyname=yes
| ac_cv_func_inet_ntoa=yes
| ac_cv_func_gethostbyaddr=yes
| ac_cv_func_gethostname=yes
| ac_cv_func_connect=yes
| 
| ac_cv_func_ftruncate=yes
| ac_cv_func_mkstemp=yes
| 
| # These are set here so the generated libtool will be good
| # for every installation, not only the one where the
| # package was configured.
| NM=${NM='nm'}
| LD=${LD='ld'}
| 
| # Force the test for 'ln -s' to report 'cp -fp'.
| ac_cv_prog_LN_S='cp -fp'
| cl_cv_prog_LN='cp -fp'
| cl_cv_prog_LN_S='cp -fp'
| LN_S='cp -fp'
| LN='cp -fp'
| 
| EXEEXT='.exe'
| exeext='.exe'
| 
| CC=gcc
| CXX=g++
| #HOST_CC=gcc
| 
| DEFS=${DEFS:=" -D__GTHREAD_HIDE_WIN32API -D_LARGEFILE_SOURCE=1 
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 $DEFSP "}
| #INCLUDES=" $INCLUDES -IH:/mingw/mingw32/include/libc "
| CFLAGS=${CFLAGS:=" -Wall -O3 -mms-bitfields -fms-extensions -fno-rtti 
-fno-exceptions -march=i386 "}
| # -fnative-struct 
| 
| CXXFLAGS="$CFLAGS $CXXFLAGS"
| CPPFLAGS=" $DEFS $CPPFLAGS $INCLUDES "
| 
| LDFLAGS=${LDFLAGS:=" -Wl,-s -Wl,--enable-auto-import "}
| LIBS=${LIBS:=" -Wl,-s -lgw32c -lintl -liconv -lwsock32 -lole32 -luuid "}
| # -liberty
| 
| host=${host:='i386-pc-mingw32'}
| build=${build:=$host}
| target=${target:=$host}
| host_alias=${host_alias:=$host}
| build_alias=${build_alias:=$build}
| target_alias=${target_alias:=$target}
| 
| # the following lines should ensure that NLS is used
| # by means of separate libintl instead of
| # the libintl provided with the package
| with_included_gettext=no
| enable_nls=yes
| nls_cv_use_gnu_gettext=yes
| USE_NLS=yes
| LIBINTL=' -lintl '
| LTLIBINTL=' -lintl '
| BUILD_INCLUDED_LIBINTL=no
| USE_INCLUDED_LIBINTL=no
| 
| test "$prefix" = NONE && prefix=$PACKAGE_TARNAME
| prefix=${prefix:=c:/gnu/GnuWin32}
configure:1275: checking for a BSD-compatible install
configure:1329: result: /bin/install.exe -cpD
configure:1340: checking whether build environment is sane
configure:1383: result: yes
configure:1416: checking for gawk
configure:1432: found /bin/gawk
configure:1442: result: gawk
configure:1452: checking whether make sets ${MAKE}
configure:1472: result: yes
configure:1622: checking for gawk
configure:1648: result: gawk
configure:1704: checking for gcc
configure:1730: result: gcc
configure:1974: checking for C compiler version
configure:1977: gcc --version </dev/null >&5
gcc.exe (GCC) 3.2 (mingw special 20020817-1)
Copyright (C) 2002 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:1980: $? = 0
configure:1982: gcc -v </dev/null >&5
Reading specs from C:/gnu/msys/1.0/mingw/bin/../lib/gcc-lib/mingw32/3.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as 
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls 
--enable-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)
configure:1985: $? = 0
configure:1987: gcc -V </dev/null >&5
gcc.exe: argument to `-V' is missing
configure:1990: $? = 1
configure:2016: checking for C compiler default output
configure:2019: gcc  -Wall -O3 -mms-bitfields -fms-extensions -fno-rtti 
-fno-exceptions -march=i386    -D__GTHREAD_HIDE_WIN32API -D_LARGEFILE_SOURCE=1 
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64       -Wl,-s -Wl,--enable-auto-import  
conftest.c -lintl -liconv -lregex -lgw32c -liberty -luuid -lole32 >&5
C:\gnu\msys\1.0\mingw\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -lintl
configure:2022: $? = 1
configure: failed program was:
#line 1993 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}
configure:2049: error: C compiler cannot create executables

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

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_func_connect=yes
ac_cv_func_fork=no
ac_cv_func_ftruncate=yes
ac_cv_func_gethostbyaddr=yes
ac_cv_func_gethostbyname=yes
ac_cv_func_gethostname=yes
ac_cv_func_inet_ntoa=yes
ac_cv_func_mkstemp=yes
ac_cv_func_vfork=no
ac_cv_prog_AWK=gawk
ac_cv_prog_LN_S='cp -fp'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
cl_cv_prog_LN='cp -fp'
cl_cv_prog_LN_S='cp -fp'
nls_cv_use_gnu_gettext=yes

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

#define PACKAGE_NAME "GNU diffutils"
#define PACKAGE_TARNAME "diffutils"
#define PACKAGE_VERSION "2.8.1"
#define PACKAGE_STRING "GNU diffutils 2.8.1"
#define PACKAGE_BUGREPORT "[EMAIL PROTECTED]"
#define PACKAGE "diffutils"
#define VERSION "2.8.1"

configure: exit 77

Reply via email to