1 頁 (共 1 頁)

compiler curl

發表於 : 2017-02-08 23:25:11
yehlu
/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

Re: compiuler curl

發表於 : 2017-02-08 23:30:40
yehlu

Re: compiler curl

發表於 : 2017-02-09 10:57:22
yehlu
../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

代碼: 選擇全部

export CFLAGS=-fPIC
make clean
./configure --prefix=/usr/local
make

Re: compiler curl

發表於 : 2017-02-09 11:07:40
yehlu
http://askubuntu.com/questions/173085/h ... rom-source


First I make sure I have everything I need to build curl:

代碼: 選擇全部

sudo apt-get build-dep curl
And then I run the following commands to build it:

代碼: 選擇全部

./buildconf
./configure
make
sudo make install