cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Undefined curl symbols while loading the library

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Jul 2008 11:46:29 +0200 (CEST)

On Wed, 2 Jul 2008, Tor Arntsen wrote:

> (Incidentally I did and apt-get upgrade on a Debian system yesterday and it
> upgraded libcurl from 7.18.1 to 7.18.2. With that upgrade curl-config --libs
> changed to output just "-lcurl -Wl,-z,defs" and I had to go and change
> things (a dynamic library module which uses libcurl among other stuff) to
> use --static-libs. I probably slept during class, but what prompted that
> change? Or is it a Debian thing?)

It is a debian thing (and a very recent debian change too): they started to
make their builds with a custom LDFLAGS settup.

Possibly the curl way to have pkg-config and curl-config output LDFLAGS when
you ask for --libs is not very wise though, and the Debian fix for the issue
you mention seem to be to cut out LDFLAGS from the output of those two...

I'm not yet 100% convinced that at least the curl-config change isn't going to
hurt someone.

... and besides (nudge nudge), we haven't seen the Debian guys submit any
patches for this our way...

-- 
  / daniel.haxx.se
Received on 2008-07-02