can not compile the source code

From: Gang Situ (situ@mail.eecis.udel.edu)
Date: Wed 24 Apr 2002 - 15:55:28 GMT


Hi, all,

I just download the souce code of the kernel, but I can't compile it.
The following is the error message:
******************************************************
.
.
.
checking for memcpy... yes
checking whether byte ordering is bigendian... yes
checking for perl... perl
updating cache ./config.cache
creating ./config.status
creating ./Makefile
creating config.h
make depend
for dir in librescue itk rescuelang Civilian; do\
  (cd $dir ; touch Makefile.depend ; make depend)\
done
make: Fatal error in reader: Makefile, line 36: Unexpected end of line
seen
Current working directory
/m/ecua/situ/rescue/rescue-0_39-unix/R_Civilian/librescue
*** Error code 1
make: Fatal error: Command failed for target `depend'
Current working directory /m/ecua/situ/rescue/rescue-0_39-unix/R_Civilian
*** Error code 1
make: Fatal error: Command failed for target `config'

******************************************************************
And this is my Sun Workstation Information

OS version: 5.8
Processor type: sparc

******************************************************************
then, I look at the Makefile in R_Civilian/librescue

35 ifdef THREADED
36 CXXFLAGS := $(CXXFLAGS) -DTHREADED $(PTHREAD_INCS)
37 LDOPT_SO := $(LDOPT_SO) $(PTHREAD_LIBS)
38 LDOPT := $(LDOPT) $(PTHREAD_LIBS)
39 endif

******************************************************************
In Civilian, itk, rescuelang subdirectory, the part looks like this:
and I can't compile them either.

## pthread
##

#THREADED=1

ifdef THREADED
  PTHREAD_LIBS =
  PTHREAD_INCS =
endif

******************************************************************
I open the configure file in config subdirectory, I find something
strange.

  *-*-sunos* ) # ex) sparc-sun-sunos4.1.4
        CXXLIB_machdep="-L/usr/ucblib -lucb -lsocket -lnsl -lposix4"
        LDOPT_SO_machdep="-dy -G"
        LDOPT_machdep="-dy"
        OSTYPE="-DSolaris <------ a " missing?
        MAKE="make"
        PTHREAD_OPT="-lpthread"" <------ a typo?

But even after I change them, it still can't pass the compile.

Does anybody have similiar experience? Or could anyone help me out?
Thanks a lot!

Gang



This archive was generated by hypermail 2.1.4 : Sun 22 Sep 2002 - 18:52:58 GMT