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-1812600 ] curl-config --libs doesn't show required libraries

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 18 Oct 2007 09:58:58 -0700

Bugs item #1812600, was opened at 2007-10-12 23:01
Message generated for change (Comment added) made by juedau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1812600&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: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Juergen (juedau)
Assigned to: Daniel Stenberg (bagder)
Summary: curl-config --libs doesn't show required libraries

Initial Comment:
Curl configured with --enable-shared and build with openssl support doesn't list the required libraries.

The bug is in configure.ac line 197 which is:

 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno
 then
     REQUIRE_LIB_DEPS=no
 else
     REQUIRE_LIB_DEPS=yes
 fi

IF we build a shared lib and do not link all deplibs, than REQUIRE_LIB_DEPS should be yes.

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

>Comment By: Juergen (juedau)
Date: 2007-10-18 16:58

Message:
Logged In: YES
user_id=1627035
Originator: YES

The problem is that I try to link a static binary, see attached
config.log. In that case I need to know
all libs libcurl.a depends on. Btw, other libraries, e.g. gtk, imlib, are
listing all dependencies.

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

Comment By: Dan Fandrich (dfandrich)
Date: 2007-10-18 16:29

Message:
Logged In: YES
user_id=236775
Originator: NO

On many system, -lcurl is all you need to link an app with curl. Linking
against more libraries than that builds a false set of dependencies into
the app--they're not needed by the app itself, only by libcurl. Do you see
an error when you link your app with curl-config --libs right now? If so,
is you app using one of those libraries itself?

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

Comment By: Juergen (juedau)
Date: 2007-10-13 07:45

Message:
Logged In: YES
user_id=1627035
Originator: YES

$:> curl-config --libs
-lcurl

IMO this should be something like:
-lcurl -lssl -lcrypto -ldl -lz

I recognized this issue while trying to compile darcs, config.log
attached.

Until 7.16.2 curl-config's output is what I expect.

File Added: config.log

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

Comment By: Dan Fandrich (dfandrich)
Date: 2007-10-12 23:23

Message:
Logged In: YES
user_id=236775
Originator: NO

Both enable_shared and link_all_deplibs are set by libtool, and the logic
of the above lines looks correct to me. What is the output of curl-config
--libs in your case? What do you expect it to be? And what error do you
see when you link your app with curl-config --libs right now?

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1812600&group_id=976
Received on 2007-10-18

These mail archives are generated by hypermail.

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

File upload with ASP.NET