First time compiling problems

Oelke, Dan
Wed Mar 3 11:45:00 GMT 1999

Ok - I've untared the latest snapshots, ran configure and 
am trying to compile up the source.

I am using XEmacs on NT4/SP3, with cygwin 20.1 
installed.  I have not installed EGCS 1.1.1 (should I???)

First annoying problem is that every make I do, all the links 
are redone.  This takes so long it makes debugging my 
other problems difficult.  After doing all the links, there is 
a message that it can not find install-sh or  Is this
why it is always redoing the links?  I have the install-sh file
from the distribution.

My second problem right now is that when compiling
it is using errno.h from the cygwin 20.1 directory of 
instead of from 

Is it just normal practice to install all the latest .h files before 
compiling stuff, or is there some configure option that will add 
-nostdinc, or something else I should be doing?  I know I can fix
the problem easily by copying over the newer errno.h file, but
wasn't sure if this is what "should" be done.

A log from my compile session is below.


cd D:\Cygnus\cygwin-b20\H-i586-cygwin32\src\
make[1]: Nothing to be done for `all'.
Configuring in i686-pc-cygwin32/newlib
ChangeLog		..linked		..linked

<<<< snip >>>>

y1f_vec.c		..linked
yn_vec.c		..linked
ynf_vec.c		..linked
loading cache ./config.cache
configure: error: can not find install-sh or in .. ./..
if [ -z "" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd .; pwd`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="gcc"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
	flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
	if (cd ../${dir}/${lib}; make "AR=ar" "AR_FLAGS=rc" "CC=gcc"
"INSTALL=/bin/sh /usr/local/src/install-sh -c" "INSTALL_DATA=/bin/sh
/usr/local/src/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh
/usr/local/src/install-sh -c " "LDFLAGS=" "LOADLIBES=" "RANLIB=ranlib"
"SHELL=/bin/sh" \
			CFLAGS="-g -O2 ${flags}" \
			CXXFLAGS="-g -O2 ${flags}" \
			LIBCFLAGS="-g -O2 ${flags}" \
			LIBCXXFLAGS="-g -O2 -fno-implicit-templates
${flags}" \
			LDFLAGS=" ${flags}" \
			all); then \
	  true; \
	else \
	  exit 1; \
	fi; \
      else true; \
      fi; \
    fi; \
  done; \
gcc -c -fno-rtti -fno-exceptions -g -O2 -Wall -Wwrite-strings
-I./include -I. -I./newlib/libc/sys/cygwin -I./newlib/libc/include
-I./config/i386 -nostdinc++ -o errno.o `ENOMEDIUM' was not declared in this scope In function `char * strerror(int)': `ENOMEDIUM' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.)
make[1]: *** [errno.o] Error 1
make: *** [all-target-winsup] Error 2

Compilation exited abnormally with code 2 at Wed Mar 03 11:31:35

Dan Oelke       
Optical Solutions, Inc.                  612-249-3382

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list