我使用以下命令下载了curl库:
apt-get build-dep cur
apt-get source curl
cd curl-7.26.0/
./configure
make
运行make后,错误显示如下:
strdup.o: In function `Curl_memdup':
strdup.c:(.text+0x1e): undefined reference to `Curl_cmalloc'
collect2: error: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/kia/Desktop/curl/curl-7.26.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kia/Desktop/curl/curl-7.26.0/src'
make: *** [all-recursive] Error 1
我要将curl库添加到我之前构建的最小化内核中。