First time compiling problems

Oelke, Dan doelke@opticalsolutions.com
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 install.sh.  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 errno.cc
it is using errno.h from the cygwin 20.1 directory of 
/usr/local/i586-cygwin32/include/errno.h
instead of from 
/usr/local/src/i686-pc-cygwin32/newlib/libc/include/errno.h

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.

Thanks,
Dan


cd D:\Cygnus\cygwin-b20\H-i586-cygwin32\src\
make
make[1]: Nothing to be done for `all'.
Configuring in i686-pc-cygwin32/newlib
ChangeLog		..linked
Makefile.am		..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 install.sh 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"
"CFLAGS=-g -O2" "LIBCFLAGS=-g -O2" "EXTRA_OFILES=" "HDEFINES="
"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; \
fi
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 errno.cc
errno.cc:103: `ENOMEDIUM' was not declared in this scope
errno.cc: In function `char * strerror(int)':
errno.cc:649: `ENOMEDIUM' undeclared (first use this function)
errno.cc:649: (Each undeclared identifier is reported only once
errno.cc:649: 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                 doelke@opticalsolutions.com
Optical Solutions, Inc.                  612-249-3382


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list