From: Michael G. <mg...@te...> - 2007-07-17 05:14:51
|
[long description skipped] > if [ -d ./profile ]; then \ > echo "Making in profile..." ; \ > if (rootme=3D`pwd`/ ; export rootme ; \ > rootsrc=3D`cd /home/chicares/src/winsup/mingw; pwd`/ ; export= rootsrc > ; \ > cd ./profile; \ > make AS=3D"as" CC=3D"gcc" CFLAGS=3D"-g -O2 " CXXFLAGS=3D"@CX= XFLAGS@ " EXE_ > LDFLAGS=3D"" AR=3D"ar" RANLIB=3D"ranlib" LD=3D"ld" DLLTOOL=3D"dlltool" ex= ec_prefix=3D"/home/ > chicares/winsup-install/" bindir=3D"/home/chicares/winsup-install//bin" l= ibdir=3D"" > tooldir=3D"/home/chicares/winsup-install/" datadir=3D"/home/chicares/wins= up-install/ > /share" infodir=3D"/home/chicares/winsup-install//info" includedir=3D"/ho= me/chicares > /winsup-install//include" inst_bindir=3D"/home/chicares/winsup-install//b= in" inst_ > includedir=3D"/home/chicares/winsup-install//include" inst_libdir=3D"/hom= e/chicares/ > winsup-install//lib" inst_docdir=3D"/home/chicares/winsup-install//doc/mi= ngw-runti > me" prefix=3D"/home/chicares/winsup-install/" target_alias=3D"" TAR=3D"ta= r" TARFLAGS=3D" > z" TARFILEEXT=3D".tar.gz" ) ; then true ; \ > else exit 1 ; fi ; \ > else true ; fi ; \ >=20 > /bin/sh: -c: line 9: syntax error: unexpected end of file > make: *** [profile] Error 2 >=20 > But if I manually edit 'Makefile' and remove the last '\' above: >=20 > - else true ; fi ; \ > + else true ; fi ; >=20 > then it completes successfully. So is this an error? Should the > trailing '\' be removed in 'winsup/mingw/Makefile.in' on line > 476 as follows? >=20 > $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ > else exit 1 ; fi ; \ > - else true ; fi ; \ > + else true ; fi ; >=20 > force: >=20 > But that patch feels wrong: that block of code has been unchanged > since revision 1.5 of 2000-06-18, and I don't see why it shouldn't > work. Hmm. This last statement indeed seems a strong argument against the above change. But looking at it it definitely seems strange. Why would there be a continuation in the first place anyway ? And what is in the following line ? I recall some incarnations of "make" being picky about commands not starting with a "\t" while others seem to be happy without it. What's the line following the patched line ? Does it start with a "\t" ? Just to understand what happened, did you recently change your "make" ? =46WIW by just looking at it I'd change it into =2D else true ; fi ; \ + else true ; fi After all the trailing ';' isn't needed at the end of the line anyway. Best, Michael =2D-=20 Technosis GmbH, Gesch=E4ftsf=FChrer: Michael Gerdau, Tobias Dittmar Sitz Hamburg; HRB 89145 Amtsgericht Hamburg Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |