cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Static linking with mingw without msys (7.29)

From: Guenter <lists_at_gknw.net>
Date: Tue, 19 Feb 2013 14:29:36 +0100

Hi Andrew,
Am 18.02.2013 19:59, schrieb Andrew Clarkin:
> Oops. I tried editing it but not to run it straight.
The ./samples/Makefile sets the vars and then calls
./samples/Makefile.m32 ...

> I ran the mingw32-make and got the following output:
>
> C:\MinGW\curl\samples>mingw32-make
> compiling 32-bit samples ...
> mingw32-make -f Makefile.m32 SSL=1 SSH2=1 ZLIB=1 RTMP=1 SSPI=1 IDN=1
> mingw32-make[1]: Entering directory `C:/MinGW/curl/samples'
> gcc -s -static -o chkspeed.exe chkspeed.o -L"../lib" -lcurl -lrtmp
> -lwinmm -lssh
> 2 -lssl -lcrypto -lgdi32 -lcrypt32 -lz -lidn -lwldap32 -lws2_32
> ../lib\libcurl.a(mprintf.o):(.text+0xff): undefined reference to
> `__chkstk_ms'
> ../lib\libcurl.a(formdata.o):(.text+0x22b): undefined reference to
> `__chkstk_ms'
>
> ../lib\libcurl.a(formdata.o):(.text+0x15da): undefined reference to
> `__chkstk_ms
> '
> ../lib\libcrypto.a(bss_file.o):bss_file.c:(.text+0x93d): undefined
> reference to
> `__chkstk_ms'
> ../lib\libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x56d): undefined
> reference to
> `__chkstk_ms'
> ../lib\libcrypto.a(err_prn.o):err_prn.c:(.text+0x8b): more undefined
> references
> to `__chkstk_ms' follow
> collect2: ld returned 1 exit status
> mingw32-make[1]: *** [chkspeed.exe] Error 1
> mingw32-make[1]: Leaving directory `C:/MinGW/curl/samples'
> mingw32-make: *** [all] Error 2
>
>
> It feels like I'm getting closer though...
>
> I'm very grateful for any suggestions.
yeah, I remember I had this same issue too with an older MinGW version
(I think it was 4.5.2 or 4.6.2); you have three options:

1. try with latest MinGW again (though I didnt compile with latest but
with 4.7.0)

2. try the version I've used:
http://people.apache.org/~fuankg/mingw/?P=MinGW-4.7*

3. try another curl mingw-devel package which doesnt use OpenSSL but
WinSSL, f.e. this one I've packed few days ago:
http://svwe10.itex.at/downloads/curl-java/curl-7.29.0-winssl-sspi-spnego-zlib-devel-w32.7z

HTH, Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-19