xmlrpc-c-config prints out incorrect linker flags

Bug #284515 reported by Roman Bogorodskiy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xmlrpc-c (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Looks like xmlrpc-c-config scripts returns incorrect linker flags.

I create a simple C++ source file foo.cc:

int main(int argc, char **argv) { return 0; }

I want to compile it and link to xmlrpc-c. I have libxmlrpc-c3-dev package installed using apt-get, so I execute the following command and get an error:

(10:40) novel@hybrid:~/tmp/xmlrpc %> g++ `xmlrpc-c-config c++2 client --libs --cflags --ldadd` foo.cc
/usr/bin/ld: cannot find -lcurl
collect2: ld returned 1 exit status
(10:40) novel@hybrid:~/tmp/xmlrpc %>

Related branches

Revision history for this message
Vitaliy Berdinskikh (ur6lad) wrote :

fldigi uses xmlrpc-c-config in `configure`.

This file contains library name 'xmlrpc_abyss' but it library is absent.
==== find ====
$ find /usr/lib -name "*abyss*"
/usr/lib/libxmlrpc_server_abyss.so.3
/usr/lib/libxmlrpc_server_abyss++.a
/usr/lib/libxmlrpc_server_abyss.so
/usr/lib/libxmlrpc_server_abyss.a
/usr/lib/libxmlrpc_server_abyss++.so.3.06
/usr/lib/libxmlrpc_server_abyss++.so.3
/usr/lib/libxmlrpc_server_abyss.so.3.6.15
/usr/lib/libxmlrpc_server_abyss++.so
==== /find ====

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xmlrpc-c - 1.06.27-1ubuntu8

---------------
xmlrpc-c (1.06.27-1ubuntu8) natty; urgency=low

  * Resolve unresolved references in shared libraries. LP: #690779.
  * Fix build failures with ld --no-add-needed.
  * Fix build failures with ld --as-needed.
  * libxmlrpc-c3-dev: Recommend libcurl4-openssl-dev | libcurl3-openssl-dev.
    LP: #284515.
 -- Matthias Klose <email address hidden> Thu, 06 Jan 2011 16:45:44 +0100

Changed in xmlrpc-c (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.