This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems compiling grep and friends


>
>On 27 September 2007 14:15, Siegfried Heintze wrote:
>
>> I'm running xp pro and I am trying to compile grep. I downloaded the
source.
>> ./configure seemed to go OK but there were problems with "make". It looks
>> like it cannot find the usr directory. Is there a fix for this?
>
>  How did you configure?  It looks like it's got confused over the --prefix
>setting; that extra '/' then makes cygwin treat the path as a UNC network
>path, so you're trying to install to a network share called 'local' on a
>remote host named 'usr'!  
>
>  I've seen this sort of thing happen before when I was messing around by
>setting DESTDIR during "make install".  You'd better show us all your
>configure and build command lines.

Is there a cygpath command that will show me all the files connected
with grep? What is this command? Should not I have been able to
manually find some notes on compiling this in /usr/share/doc
someplace? I could not find any notes there.


Ok, here it is:


cd c:/cygwin/usr/src/grep-2.5.1a-4/
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for getconf... no
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for ssize_t... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inttypes.h... yes
checking for unsigned long long... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether stat file-mode macros are broken... no
checking for stdlib.h... (cached) yes
checking for mbstate_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for btowc... yes
checking for isascii... yes
checking for memmove... yes
checking for setmode... yes
checking for strerror... yes
checking for wctype... yes
checking for mbrtowc... yes
checking for memchr... yes
checking for stpcpy... no
checking for strtoul... yes
checking for atexit... yes
checking for fnmatch... yes
checking for stdlib.h... (cached) yes
checking whether <inttypes.h> defines strtoumax as a macro... no
checking for strtoumax... yes
checking whether strtoul is declared... yes
checking whether strtoull is declared... yes
checking for strerror in -lcposix... no
checking for inline... inline
checking for off_t... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... no
checking nl_types.h presence... no
checking for nl_types.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... no
checking for fgets_unlocked... no
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... (cached) no
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... (cached) yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... no, consider installing GNU libiconv
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... (cached) yes
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking for dcgettext... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for bison... no
checking for catalogs to be installed...  cs de el eo es et fr gl hr id it
ja ko nl no pl pt_BR ru sl sv
checking for dos file convention... yes
checking for DJGPP environment... no
checking for environ variable separator... ;
checking for working re_compile_pattern... no
checking for getopt_long... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking for string.h... (cached) yes
checking for working strerror_r... yes
checking for strerror... (cached) yes
checking for strerror_r... (cached) yes
checking for vprintf... yes
checking for doprnt... no
checking for ANSI C header files... (cached) yes
checking for working malloc... yes
checking for working realloc... yes
checking for pcre_exec in -lpcre... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/posix/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating po/Makefile.in
config.status: creating intl/Makefile
config.status: creating doc/Makefile
config.status: creating m4/Makefile
config.status: creating vms/Makefile
config.status: creating bootstrap/Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing default commands

Compilation finished at Wed Oct 03 10:12:30
cd c:/cygwin/usr/src/grep-2.5.1a-4/
make
make  all-recursive
make[1]: Entering directory `/usr/src/grep-2.5.1a-4'
Making all in intl
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/intl'
Making all in po
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/po'
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/po'
Making all in lib
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/lib'
Making all in posix
make[3]: Entering directory `/usr/src/grep-2.5.1a-4/lib/posix'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/grep-2.5.1a-4/lib/posix'
make[3]: Entering directory `/usr/src/grep-2.5.1a-4/lib'
source='closeout.c' object='closeout.o' libtool=no \
	depfile='.deps/closeout.Po' tmpdepfile='.deps/closeout.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f closeout.c || echo './'`closeout.c
source='error.c' object='error.o' libtool=no \
	depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f error.c || echo './'`error.c
source='exclude.c' object='exclude.o' libtool=no \
	depfile='.deps/exclude.Po' tmpdepfile='.deps/exclude.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f exclude.c || echo './'`exclude.c
source='hard-locale.c' object='hard-locale.o' libtool=no \
	depfile='.deps/hard-locale.Po' tmpdepfile='.deps/hard-locale.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f hard-locale.c || echo
'./'`hard-locale.c
source='isdir.c' object='isdir.o' libtool=no \
	depfile='.deps/isdir.Po' tmpdepfile='.deps/isdir.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f isdir.c || echo './'`isdir.c
source='obstack.c' object='obstack.o' libtool=no \
	depfile='.deps/obstack.Po' tmpdepfile='.deps/obstack.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f obstack.c || echo './'`obstack.c
source='quotearg.c' object='quotearg.o' libtool=no \
	depfile='.deps/quotearg.Po' tmpdepfile='.deps/quotearg.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f quotearg.c || echo './'`quotearg.c
source='savedir.c' object='savedir.o' libtool=no \
	depfile='.deps/savedir.Po' tmpdepfile='.deps/savedir.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f savedir.c || echo './'`savedir.c
source='xmalloc.c' object='xmalloc.o' libtool=no \
	depfile='.deps/xmalloc.Po' tmpdepfile='.deps/xmalloc.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f xmalloc.c || echo './'`xmalloc.c
source='xstrtol.c' object='xstrtol.o' libtool=no \
	depfile='.deps/xstrtol.Po' tmpdepfile='.deps/xstrtol.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f xstrtol.c || echo './'`xstrtol.c
source='xstrtoumax.c' object='xstrtoumax.o' libtool=no \
	depfile='.deps/xstrtoumax.Po' tmpdepfile='.deps/xstrtoumax.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f xstrtoumax.c || echo './'`xstrtoumax.c
source='stpcpy.c' object='stpcpy.o' libtool=no \
	depfile='.deps/stpcpy.Po' tmpdepfile='.deps/stpcpy.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f stpcpy.c || echo './'`stpcpy.c
source='regex.c' object='regex.o' libtool=no \
	depfile='.deps/regex.Po' tmpdepfile='.deps/regex.TPo' \
	depmode=gcc3 /bin/sh ../depcomp \
	gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I. -I. -I.. -I..
-I. -I../intl    -g -O2  -c `test -f regex.c || echo './'`regex.c
regex.c: In function `regex_compile':
regex.c:3197: warning: comparison is always true due to limited range of
data type
rm -f libgreputils.a
ar cru libgreputils.a closeout.o error.o exclude.o hard-locale.o isdir.o
obstack.o quotearg.o savedir.o xmalloc.o xstrtol.o xstrtoumax.o stpcpy.o
regex.o 
ranlib libgreputils.a
make[3]: Leaving directory `/usr/src/grep-2.5.1a-4/lib'
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/lib'
Making all in doc
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/doc'
inst=`echo "grep" | sed 's,x,x,'`.1; \
sed -e "s%@grep@%$inst%g" ./fgrep.man > fgrep.1
inst=`echo "grep" | sed 's,x,x,'`.1; \
sed -e "s%@grep@%$inst%g" ./egrep.man > egrep.1
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/doc'
Making all in src
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2  -c `test -f grep.c ||
echo './'`grep.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2  -c `test -f dfa.c || echo
'./'`dfa.c
dfa.c: In function `parse_bracket_exp_mb':
dfa.c:485: warning: assignment from incompatible pointer type
dfa.c:554: warning: assignment from incompatible pointer type
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2  -c `test -f kwset.c ||
echo './'`kwset.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2  -c `test -f search.c ||
echo './'`search.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib
-DLOCALEDIR=\"/usr/local/share/locale\"    -g -O2  -c `test -f grepmat.c ||
echo './'`grepmat.c
gcc  -g -O2    -o grep.exe  grep.o dfa.o kwset.o search.o grepmat.o -lintl
../lib/libgreputils.a -lpcre  -L/usr/lib -lpcre
Info: resolving _optind by linking to __imp__optind (auto-import)
Info: resolving _optarg by linking to __imp__optarg (auto-import)
echo '#!/bin/sh' >egrep
echo 'exec grep -E ${1+"$@"}' >>egrep
chmod a+x egrep
echo '#!/bin/sh' >fgrep
echo 'exec grep -F ${1+"$@"}' >>fgrep
chmod a+x fgrep
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/src'
Making all in tests
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/tests'
Making all in m4
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/m4'
Making all in vms
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/vms'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/vms'
Making all in bootstrap
make[2]: Entering directory `/usr/src/grep-2.5.1a-4/bootstrap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4/bootstrap'
make[2]: Entering directory `/usr/src/grep-2.5.1a-4'
make[2]: Leaving directory `/usr/src/grep-2.5.1a-4'
make[1]: Leaving directory `/usr/src/grep-2.5.1a-4'

Compilation finished at Wed Oct 03 10:16:37
cd c:/cygwin/usr/src/grep-2.5.1a-4/
make install
Making install in intl
make[1]: Entering directory `/usr/src/grep-2.5.1a-4/intl'
if test "grep" = "gettext" \
	   && test '' = 'intl-compat.o'; then \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;;
*) echo ".././mkinstalldirs" ;; esac` /usr/local/lib /usr/local/include; \
	  /usr/bin/install -c -m 644 libintl.h /usr/local/include/libintl.h;
\
	  @LIBTOOL@ --mode=install \
	    /usr/bin/install -c -m 644 libintl.a /usr/local/lib/libintl.a; \
	else \
	  : ; \
	fi
if test 'no' = yes; then \
	  test no != no || /bin/sh `case "./mkinstalldirs" in /*) echo
"./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /usr/local/lib; \
	  temp=/usr/local/lib/t-charset.alias; \
	  dest=/usr/local/lib/charset.alias; \
	  if test -f /usr/local/lib/charset.alias; then \
	    orig=/usr/local/lib/charset.alias; \
	    sed -f ref-add.sed $orig > $temp; \
	    /usr/bin/install -c -m 644 $temp $dest; \
	    rm -f $temp; \
	  else \
	    if test no = no; then \
	      orig=charset.alias; \
	      sed -f ref-add.sed $orig > $temp; \
	      /usr/bin/install -c -m 644 $temp $dest; \
	      rm -f $temp; \
	    fi; \
	  fi; \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;;
*) echo ".././mkinstalldirs" ;; esac` /usr/local/share/locale; \
	  test -f /usr/local/share/locale/locale.alias \
	    && orig=/usr/local/share/locale/locale.alias \
	    || orig=./locale.alias; \
	  temp=/usr/local/share/locale/t-locale.alias; \
	  dest=/usr/local/share/locale/locale.alias; \
	  sed -f ref-add.sed $orig > $temp; \
	  /usr/bin/install -c -m 644 $temp $dest; \
	  rm -f $temp; \
	else \
	  : ; \
	fi
if test "grep" = "gettext"; then \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;;
*) echo ".././mkinstalldirs" ;; esac` /usr/local/share/gettext/intl; \
	  /usr/bin/install -c -m 644 VERSION
/usr/local/share/gettext/intl/VERSION; \
	  /usr/bin/install -c -m 644 ChangeLog.inst
/usr/local/share/gettext/intl/ChangeLog; \
	  dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset
locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h
plural-exp.h eval-plural.h os2compat.h libgnuintl.h loadinfo.h bindtextdom.c
dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c
textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c
ngettext.c plural.y plural-exp.c localcharset.c localename.c osdep.c
os2compat.c intl-compat.c"; \
	  for file in $dists; do \
	    /usr/bin/install -c -m 644 ./$file \
			    /usr/local/share/gettext/intl/$file; \
	  done; \
	  chmod a+x /usr/local/share/gettext/intl/config.charset; \
	  dists="plural.c"; \
	  for file in $dists; do \
	    if test -f $file; then dir=.; else dir=.; fi; \
	    /usr/bin/install -c -m 644 $dir/$file \
			    /usr/local/share/gettext/intl/$file; \
	  done; \
	  dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
COPYING.LIB-2 gettext.h libgettext.h plural-eval.c"; \
	  for file in $dists; do \
	    rm -f /usr/local/share/gettext/intl/$file; \
	  done; \
	else \
	  : ; \
	fi
make[1]: Leaving directory `/usr/src/grep-2.5.1a-4/intl'
Making install in po
make[1]: Entering directory `/usr/src/grep-2.5.1a-4/po'
if test -r ".././mkinstalldirs"; then \
	  .././mkinstalldirs //usr/local/share; \
	else \
	  /bin/sh ../mkinstalldirs //usr/local/share; \
	fi
mkdir //usr
mkdir: cannot create directory `//usr': No such host or network path
mkdir //usr/local
mkdir: cannot create directory `//usr/local': No such host or network path
mkdir //usr/local/share
mkdir: cannot create directory `//usr/local/share': No such host or network
path
make[1]: *** [install-data-yes] Error 1
make[1]: Leaving directory `/usr/src/grep-2.5.1a-4/po'
make: *** [install-recursive] Error 1

Compilation exited abnormally with code 2 at Wed Oct 03 10:18:45



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]