cURL / Mailing Lists / curl-library / Single Mail


Re: Failures while building on cygwin

From: Michael Osipov <>
Date: Thu, 18 Sep 2014 12:19:03 +0200

Hi Daniel,

Am 2014-09-18 um 08:47 schrieb Daniel Stenberg:
> On Thu, 18 Sep 2014, Michael Osipov wrote:
>> I am trying to build tag 7.38.0 on Cygwin. I have noticed several errors:
>> /cygdrive/d/Projekte/curl/missing: line 5: $'\r': command not found
>> /cygdrive/d/Projekte/curl/missing: line 10: $'\r': command not found
> These are empty lines. It feels like you have line endings screwed up
> somehow and your shell disagrees with that. I don't see any such problem
> in the missing file in git.
>> configure: WARNING: `missing' script is too old or missing
> I suspect it says this because of the earlier problems.
>> 2. Generated src/tool_hugehelp.c contains carriage returns and makes
>> gcc fail to compile that file.
> So line endings again.

This is perl in my opinion. See the provided link.

>> 3. make install spits out some sed errors:
>> $ make install > /dev/null
>> /usr/bin/sed: -e Ausdruck #1, Zeichen 3: Unbekannter Befehl: `.'
> Let me guess: line endings?

I am using msysgit for Windows and there are my Git settings:

$ git config --list --global
gui.encoding=utf-8 Osipov

I did 'git ls-files --others | xargs -IW rm W', 'git reset --hard' and
ran ./buildconf again which did not help either. I do not really want to
disable to core configs because they seem to be common consensus on
GitHub and other sites.

Out of curiousity, I did a dos2unix on all files and it does work except
for tool_hugehelp.c and install.
Critical files are already flagged in .gitattributes to avoid such
problems. The problem is which is problematic now.

List admin:
Received on 2014-09-18