/usr/bin/ld.bfd.real: /usr/local/ssl/lib/libssl.a(s3_clnt.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcurl.la] Error 1
make[2]: Leaving directory `/home/yehlu/curl-7.52.1/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/yehlu/curl-7.52.1/lib'
make: *** [all-recursive] Error 1
compiler curl
Re: compiler curl
../lib/.libs/libcurl.so: undefined reference to `ERR_remove_thread_state'
../lib/.libs/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_next_proto_select_cb'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/yehlu/curl-7.52.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/yehlu/curl-7.52.1/src'
make: *** [all-recursive] Error 1
../lib/.libs/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'
../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_next_proto_select_cb'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/yehlu/curl-7.52.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/yehlu/curl-7.52.1/src'
make: *** [all-recursive] Error 1
代碼: 選擇全部
export CFLAGS=-fPIC
make clean
./configure --prefix=/usr/local
make
Re: compiler curl
http://askubuntu.com/questions/173085/h ... rom-source
First I make sure I have everything I need to build curl:
And then I run the following commands to build it:
First I make sure I have everything I need to build curl:
代碼: 選擇全部
sudo apt-get build-dep curl
代碼: 選擇全部
./buildconf
./configure
make
sudo make install