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-1212940 ] curl does not detect cares on mingw

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 02 Jun 2005 04:23:48 -0700

Bugs item #1212940, was opened at 2005-06-01 20:34
Message generated for change (Comment added) made by atupone
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1212940&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: bad behaviour
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Tupone Alfredo (atupone)
Assigned to: Daniel Stenberg (bagder)
Summary: curl does not detect cares on mingw

Initial Comment:
I'm building curl for windows in linux, using mingw. I
have build c-ares.
If I configure curl with the following command :

../curl-7.14.0/configure --host=i386-mingw32msvc
--build=i686-pc-linux-gnu --prefix=/opt/xmingw
--enable-ares --disable-shared

it does think c-ares is badly installed, while is
missing the windows library it need to link for network
access.

The problem is that the link command is similar to

gcc test -lws2_32 -lcares

while it should be

gcc test -lcares -lws2_32

and that is due to have in configure.ac, just before
testing c-ares:

LIBS="$LIBS -lcares"

while it should be:

LIBS=" -lcares $LIBS"

well, I used AC_CHECK_LIB to do that, in the patch file
to configure.ac, attached

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

>Comment By: Tupone Alfredo (atupone)
Date: 2005-06-02 13:23

Message:
Logged In: YES
user_id=76397

yeah, I did not understant why you didn't use AC_CHECK_LIB.
Now I know. However, both work to me, so I'm ok with that

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

Comment By: Daniel Stenberg (bagder)
Date: 2005-06-01 23:32

Message:
Logged In: YES
user_id=1110

Thanks for your patch!

It does however not work properly for the case when you have
cares built in a subdirectory only, which I frequently use
myself.

Instead I suggest the simple:

--- configure.ac 25 May 2005 22:14:32 -0000 1.154
+++ configure.ac 1 Jun 2005 21:27:34 -0000
@@ -1650,7 +1650,7 @@
        AC_SUBST(HAVE_ARES)
        curl_ares_msg="enabled"
 
- LIBS="$LIBS -lcares"
+ LIBS="-lcares $LIBS"
 
        dnl For backwards compatibility default to
includes/lib in srcdir/ares
        dnl If a value is specified it is assumed that the
libs are in $val/lib

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1212940&group_id=976
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-tracker
Received on 2005-06-02

These mail archives are generated by hypermail.

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

File upload with ASP.NET