Hi fellow hackers, Trying to build libcurl on my machine with RTMP enabled leads to several undefined symbols errors at link time in curl (not libcurl). My understanding of this issue is that I have the librtmp files (headers and library) without the pkgconfig files. Configure will detect the library but does not set -lrtmp to the curl link flags because it cannot query pkgconfig for those.
Attached is a patch to add -lrtmp to the CURL_LIBS whenever RTMP is enabled. This fixes the build but I am not sure it is the right solution (or something I should fix on my setup). Any thoughts about the change? Thanks! Julien
From d16a03a66226900affb4fe2c8f0a6647d58dc18c Mon Sep 17 00:00:00 2001 From: Julien Chaffraix <[email protected]> Date: Fri, 12 Nov 2010 06:47:10 -0800 Subject: [PATCH 1/3] configure: Fix some RTMP build. We need to also build curl with -lrtmp or we would fail at link time. --- configure.ac | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index d240908..c35c7cf 100644 --- a/configure.ac +++ b/configure.ac @@ -2105,6 +2105,8 @@ if test X"$OPT_LIBRTMP" != Xno; then if test X"$OPT_LIBRTMP" != Xoff && test "$LIBRTMP_ENABLED" != "1"; then AC_MSG_ERROR([librtmp libs and/or directories were not found where specified!]) + else + CURL_LIBS="$CURL_LIBS -lrtmp" fi fi -- 1.7.0.4
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
