curl-library
Client using Curl-7.19.0/C-ares-1.5.3 gives linking problems
Date: Fri, 31 Oct 2008 12:17:30 -0700
Hi,
I am trying to compile my client to use Curl-7.19.0 and C-ares-1.5.3.
I compiled C-ares-1.5.3 with the following options : (compiles fine)
"--enable-static --enable-libgcc"
Then compiled Curl-7.19.0 with the following options: (compiles fine)
"--without-libidn --with-spnego=$(FBOPENSSL_LIB_PATH)
LD_LIBRARY_PATH=$(FBOPENSSL_LIB_PATH):$(KERBEROS_LIB_PATH):$(C-ARES_ALL_LIB_PATHS)
CPPFLAGS=-I$(KERBEROS_INCLUDE_PATH)
CPPFLAGS='-I$(FBOPENSSL_INCLUDE_PATH) -I$(KERBEROS_INCLUDE_PATH)
-I$(C-ARES_INCLUDE_PATH)' LDFLAGS='-L$(KERBEROS_LIB_PATH)
-L$(FBOPENSSL_LIB_PATH) -L$(C-ARES_LIB_PATH)' --with-ssl
--enable-ares=$(C-ARES_INSTALL_HOME)"
When I compile my client app to use Curl-7.19.0, I get link errors
stating that it couldn't find references to ares functions in
libCurl.a.
: undefined reference to `ares_init'
/workplace/jovial/build/lib/libcurl.a(hostares.o)(.text+0x24): In
function `Curl_resolv_getsock':
: undefined reference to `ares_getsock'
/workplace/jovial/build/lib/libcurl.a(hostares.o)(.text+0x56): In
function `Curl_resolv_getsock':
: undefined reference to `ares_timeout'
/workplace/jovialbuild/lib/libcurl.a(hostares.o)(.text+0xd7): In
function `ares_waitperform':
Does this mean that I'm not setting the correct flags while building
C-ares or Curl ?
Thanks for your help,
- Jovial
Received on 2008-10-31