www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/04/08/09:31:34

Date: Sat, 8 Apr 2000 18:49:49 +0500
Message-Id: <200004081349.SAA00705@midpec.com>
From: Prashant TR <tr AT midpec DOT com>
To: djgpp-workers AT delorie DOT com
Subject: Porting problems with Sh-utils (beta)
Reply-To: djgpp-workers AT delorie DOT com

I've been having a strange porting problem while working on Sh-utils
2.0g beta. I run the configure script on Windows with LFN enabled and
I get a Makefile. But when I run make, it gives me an output like
this:

-----
Making all in lib
make.exe[2]: Entering directory `d:/prj/x/sh-utils-2.0g/lib'
source='getdate.c' object='getdate.o' libtool=no \
depfile='.deps/getdate.Po' tmpdepfile='.deps/getdate.TPo' \
depmode=gcc d:/djgpp/bin/sh.exe ../depcomp \
gcc -DLIBDIR=\"d:/djgpp/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl    -g
-O2 -c -o
 getdate.o `test -f getdate.c || echo './'`getdate.c
depcomp: Variables source, object and depmode must be set
make.exe[2]: *** [getdate.o] Error 1
make.exe[2]: Leaving directory `d:/prj/x/sh-utils-2.0g/lib'
make.exe[1]: *** [all-recursive] Error 1
make.exe[1]: Leaving directory `d:/prj/x/sh-utils-2.0g'
make.exe: *** [all-recursive-am] Error 2
-----

The fragment of the makefile producing this error is:

-----
CCDEPMODE = depmode=gcc

.c.o:
        source='$<' object='$@' libtool=no \
        depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
        $(CCDEPMODE) $(depcomp) \
        $(COMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
-----

There's a script called depcomp in the parent directory, but it
doesn't seem to be receiving the values of "source", "object" and
"libtool". And if I try compiling on Linux, the package compiles
perfectly. It seems to me that the values of variables are not passed
on to the child program by MAKE. Maybe, it could be something to do
with the DJGPP version of Make. Any ideas about how to get around with
this problem? I'm using Make 3.77.

Thanks,
Prashant

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019