cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-3064852 ] fail configure at cross compile in mingw on Linux

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 12 Sep 2010 17:11:10 +0000

Bugs item #3064852, was opened at 2010-09-12 21:11
Message generated for change (Tracker Item Submitted) made by pavelvat
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3064852&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: pavelvat (pavelvat)
Assigned to: Daniel Stenberg (bagder)
Summary: fail configure at cross compile in mingw on Linux

Initial Comment:
operating system: Arch Linux
version of curl: 7.21.1

fail configure curl for static build(Dependencies mingw32-openssl-static mingw32-zlib-static).
see attach file.

I solved this problem this way:
line 19496 from file "configure", containing "LIBS="-lssl $LIBS""
replaced this line: LIBS="-lssl $LIBS -lz"

Excerpt from the log file config.log containing messages about
"undefined reference" from which I understood what was the problem:
configure:19490: checking for SSL_connect in -lssl
configure:19512: i486-mingw32-gcc -o conftest.exe -g0 -O2 -Wno-system-headers -I/usr/i486-mingw32/include -I/usr/i486-mingw32/include/openssl -L/usr/i486-mingw32/lib conftest.c -lssl -lcrypto -lgdi32 -lws2_32 >&5
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x6d): undefined reference to `_inflateEnd'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x89): undefined reference to `_deflateEnd'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x39a): undefined reference to `_deflate'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x488): undefined reference to `_zError'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x56b): undefined reference to `_inflate'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x5c8): undefined reference to `_zError'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x66b): undefined reference to `_inflateInit_'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x756): undefined reference to `_deflate'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x7d8): undefined reference to `_zError'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x84a): undefined reference to `_deflateInit_'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x933): undefined reference to `_inflate'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x9cf): undefined reference to `_deflate'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xa04): undefined reference to `_inflateEnd'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xa0f): undefined reference to `_deflateEnd'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xab4): undefined reference to `_inflateInit_'
/usr/i486-mingw32/lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xb20): undefined reference to `_deflateInit_'
collect2: ld returned 1 exit status
configure:19512: $? = 1
configure: failed program was:

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3064852&group_id=976
Received on 2010-09-12

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET