cURL / Mailing Lists / curl-library / Single Mail

curl-library

Failures while building on cygwin

From: Michael Osipov <1983-01-06_at_gmx.net>
Date: Thu, 18 Sep 2014 00:59:04 +0200

Hi,

I am trying to build tag 7.38.0 on Cygwin. I have noticed several errors:

1. configure:
$ ./configure --enable-sspi --with-winssl --host=mingw32
==============
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking for path separator... :
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for mingw32-ar... no
checking for ar... /mingw/bin/ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for mingw32-gcc... mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mingw32-gcc accepts -g... yes
checking for mingw32-gcc option to accept ISO C89... none needed
checking whether mingw32-gcc understands -c and -o together... yes
checking how to run the C preprocessor... mingw32-gcc -E
checking whether build environment is sane... yes
/cygdrive/d/Projekte/curl/missing: line 5: $'\r': command not found
/cygdrive/d/Projekte/curl/missing: line 10: $'\r': command not found
/cygdrive/d/Projekte/curl/missing: line 15: $'\r': command not found
/cygdrive/d/Projekte/curl/missing: line 20: $'\r': command not found
/cygdrive/d/Projekte/curl/missing: line 25: $'\r': command not found
/cygdrive/d/Projekte/curl/missing: line 41: syntax error near unexpected
token `$'in\r''
'cygdrive/d/Projekte/curl/missing: line 41: `case "$1" in
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
==============

note the errors in "missing"

2. Generated src/tool_hugehelp.c contains carriage returns and makes gcc
fail to compile that file. After a research, there maybe one solution
[1] to the generating perl script.

Excerpt:
tool_hugehelp.c:2228:1: error: missing terminating " character
tool_hugehelp.c:2229:1: warning: missing terminating " character
[enabled by default]
tool_hugehelp.c:2229:1: error: missing terminating " character
tool_hugehelp.c:2230:1: error: stray '\' in program

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

sed version is 4.2.2

Michael

[1]: http://stackoverflow.com/q/1820688/696632
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-09-18