libcurl库 静态库问题

lib/libcurl.a(libcurl_la-http_negotiate.o): In function `cleanup':
    http_negotiate.c:(.text+0x1b): undefined reference to `gss_delete_sec_context'
    http_negotiate.c:(.text+0x30): undefined reference to `gss_release_buffer'
    http_negotiate.c:(.text+0x45): undefined reference to `gss_release_name'

lib/libcurl.a(libcurl_la-http_negotiate.o): In function `Curl_output_negotiate':
    http_negotiate.c:(.text+0x123): undefined reference to `gss_release_buffer'
    http_negotiate.c:(.text+0x1c0): undefined reference to `gss_release_buffer'

lib/libcurl.a(libcurl_la-http_negotiate.o): In function `Curl_input_negotiate':
    http_negotiate.c:(.text+0x324): undefined reference to `GSS_C_NT_HOSTBASED_SERVICE'
    http_negotiate.c:(.text+0x33a): undefined reference to `gss_import_name'
    http_negotiate.c:(.text+0x48e): undefined reference to `gss_release_buffer'
    http_negotiate.c:(.text+0x4cc): undefined reference to `gss_release_buffer'

查看已经安装的库:
root@ubunt16042:~# dpkg -l|grep curl
    ii  libcurl3:amd64                     7.47.0-1ubuntu2.14                  amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
    ii  libcurl3-gnutls:amd64              7.47.0-1ubuntu2.2                   amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
    ii  libcurl4-gnutls-dev:amd64          7.47.0-1ubuntu2.2                   amd64        development files and documentation for libcurl (GnuTLS flavour)

rpm -qa |grep curl
    python-pycurl-7.19.0-17.el7.x86_64
    libcurl-devel-7.29.0-57.el7.x86_64
    curl-7.29.0-57.el7.x86_64
    libcurl-7.29.0-57.el7.x86_64
 

需要的是这个:/usr/lib/x86_64-linux-gnu/libcurl.a -> libcurl-gnutls.a

 

安装  libcurl4-gnutls-dev      (不能安装libcurl4-openssl-dev库)

 

centos直接安装 libcurl-devel库

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值