|
|
[root@localhost ~]# cd libbt-1.04
[root@localhost libbt-1.04]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ar... ar
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for makedepend... makedepend
checking for curl_easy_init in -lcurl... yes
checking for SHA1_Init in -lssl... yes
checking for uuid_generate in -luuid... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for siginfo_t.si_fd... yes
checking return type of signal handlers... void
checking for res_mkquery... yes
checking for gethostname... yes
checking for mkdir... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strtoll... yes
checking for uuid_generate... yes
checking for on_exit... yes
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
You have new mail in /var/spool/mail/root
[root@localhost libbt-1.04]# make
cd src && make depend
make[1]: Entering directory `/root/libbt-1.04/src'
makedepend -- -g -Wall -I../include -I../include - benc.c bts.c types.c random.c strbuf.c stream.c peer.c segmenter.c util.c bitset.c context.c bterror.c
makedepend: warning: /usr/include/gnu/stubs.h: non-portable whitespace encountered at line 7
make[1]: Leaving directory `/root/libbt-1.04/src'
cd src && make
make[1]: Entering directory `/root/libbt-1.04/src'
gcc -c -g -Wall -I../include -I../include benc.c -o benc.o
gcc -c -g -Wall -I../include -I../include bts.c -o bts.o
gcc -c -g -Wall -I../include -I../include types.c -o types.o
gcc -c -g -Wall -I../include -I../include random.c -o random.o
gcc -c -g -Wall -I../include -I../include strbuf.c -o strbuf.o
gcc -c -g -Wall -I../include -I../include stream.c -o stream.o
gcc -c -g -Wall -I../include -I../include peer.c -o peer.o
peer.c: In function `send_have':
peer.c:802: warning: use of cast expressions as lvalues is deprecated
peer.c: In function `send_request':
peer.c:829: warning: use of cast expressions as lvalues is deprecated
peer.c: In function `send_piece':
peer.c:847: warning: use of cast expressions as lvalues is deprecated
peer.c: In function `send_cancel':
peer.c:888: warning: use of cast expressions as lvalues is deprecated
gcc -c -g -Wall -I../include -I../include segmenter.c -o segmenter.o
gcc -c -g -Wall -I../include -I../include util.c -o util.o
gcc -c -g -Wall -I../include -I../include bitset.c -o bitset.o
gcc -c -g -Wall -I../include -I../include context.c -o context.o
gcc -c -g -Wall -I../include -I../include bterror.c -o bterror.o
ar rc libbt.a benc.o bts.o types.o random.o strbuf.o stream.o peer.o segmenter.o util.o bitset.o context.o bterror.o
ranlib libbt.a
gcc -g -Wall -I../include -I../include -DVERSION=1.03 -g -L. -o btlist btlist.c -lbt -luuid -lssl -lcurl `curl-config --libs` -lm
gcc -g -Wall -I../include -I../include -DVERSION=1.03 -g -L. -o btget btget.c -lbt -luuid -lssl -lcurl `curl-config --libs` -lm
gcc -g -Wall -I../include -I../include -DVERSION=1.03 -g -L. -o btcheck btcheck.c -lbt -luuid -lssl -lcurl `curl-config --libs` -lm
make[1]: Leaving directory `/root/libbt-1.04/src'
You have mail in /var/spool/mail/root
[root@localhost libbt-1.04]#
问题1:是不是已装好了?有何不对?
2:如何调出使用libbt?
谢谢! |
|