curl-library
Compiling x64 curl with c-ares on Win7 x64/Mingw-GCC
Date: Mon, 11 Nov 2013 00:37:21 -0500
Hi All,
I'm having a hell of a time compiling a 64 bit version of curl with c-ares
on win 7. I'm building c-ares first using CFLAGS="-m64 -O3" and confirming
proper output with a quick look in dep-walker, then when I move to build
curl I only have an issue at the linking stage and I'm getting an error
which indicates that I'm trying to link 64 and 32 bit libs together. My
configure switches are:
ares:
sh configure --enable-static --enable-optimize=-O3 CFLAGS="-m64 -O3"
LDFLAGS="-m64"
curl:
sh configure --enable-shared --enable-ares CFLAGS="-m64 -O3" LDFLAGS=-m64
Using msys+mingw. I am finding however that my CFLAGS O3 switch and
--enable-optimize=-O3 seem to getting ignored. No idea what's up, probably
something silly I'm missing. Any help would be greatly appreciated.
P.S. Here is the error portion during compile:
libtool: link: gcc -m64 -O3 -Wno-system-headers -m64 -o .libs/curl.exe
curl-tool
_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o
curl-tool_cb_
prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o
curl-tool_cfgable
.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o
curl-tool_easysrc.o
curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o
curl-tool_help.o
curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o
curl-tool_libinfo.
o curl-tool_main.o curl-tool_metalink.o curl-tool_mfiles.o curl-tool_msgs.o
curl
-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o
curl-tool_paramhlp.o cur
l-tool_parsecfg.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o
curl-
tool_util.o curl-tool_vms.o curl-tool_writeenv.o curl-tool_writeout.o
curl-tool_
xattr.o ../lib/curl-strtoofft.o ../lib/curl-strdup.o ../lib/curl-rawstr.o
../lib
/curl-nonblock.o -L/c/cpp_libs/curl-7.33.0/ares ../lib/.libs/libcurl.a
/c/cpp_l
ibs/curl-7.33.0/ares/.libs/libcares.dll.a -lwldap32 -lz -lws2_32
-L/usr/local/li
b
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0xe5): undefined reference to
`__imp_cur
l_msnprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x133): undefined reference to
`__imp_cu
rl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x25f): undefined reference to
`__imp_cu
rl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x29b): undefined reference to
`__imp_cu
rl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x310): undefined reference to
`__imp_cu
rl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x36e): undefined reference to
`__imp_cu
rl_mfprintf'
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x3d1): more undefined references
to `__
imp_curl_mfprintf' follow
curl-tool_cb_dbg.o:tool_cb_dbg.c:(.text+0x57e): undefined reference to
`__imp_cu
rl_strequal'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/
bin/ld.exe: curl-tool_cb_dbg.o: bad reloc address 0x0 in section `.data'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/
bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make[2]: *** [curl.exe] Error 1
make[2]: Leaving directory `/c/cpp_libs/curl-7.33.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/cpp_libs/curl-7.33.0/src'
make: *** [all-recursive] Error 1
-- Jesse Nicholson
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-11