[root@Betty libevent-2.0.21-stable] # vi config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ . /configure
## --------- ##
## Platform. ##
## --------- ##
hostname = Betty
uname -m = x86_64
uname -r = 2.6.32-358.el6.x86_64
uname -s = Linux
uname - v = #1 SMP Fri Feb 22 00:31:26 UTC 2013
...
## ----------- ##
## Core tests. ##
## ----------- ##
...
configure:3214: checking for gcc
configure:3230: found /usr/bin/gcc
configure:3241: result: gcc
configure:3470: checking for C compiler version
configure:3479: gcc --version >&5
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3490: $? = 0
configure:3479: gcc - v >&5
Using built- in specs.
Target: x86_64-redhat-linux
Configured with: .. /configure --prefix= /usr --mandir= /usr/share/man --infodir= /usr/share/info --with-bugurl=http: //bugzilla .redhat.com /bugzilla -- enable -bootstrap -- enable -shared -- enable -threads=posix --ena
ble-checking=release --with-system-zlib -- enable -__cxa_atexit --disable-libunwind-exceptions -- enable -gnu-unique-object -- enable -languages=c,c++,objc,obj-c++,java,fortran,ada -- enable -java-awt=gtk --disable-
dssi --with-java-home= /usr/lib/jvm/java-1 .5.0-gcj-1.5.0.0 /jre -- enable -libgcj-multifile -- enable -java-maintainer-mode --with-ecj-jar= /usr/share/java/eclipse-ecj .jar --disable-libjava-multilib --with-ppl --wi
th-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
configure:3490: $? = 0
...
configure:14625: checking for the pthreads library -lpthreads -- 检测能否以 -lpthreads 引用 libpthreads.so 库
configure:14658: gcc -o conftest -g -O2 -Wall -fno-strict-aliasing conftest.c -lpthreads -lrt >&5
conftest.c: In function 'main' :
conftest.c:121: warning: null argument where non-null required (argument 1)
conftest.c:122: warning: null argument where non-null required (argument 1)
conftest.c:122: warning: null argument where non-null required (argument 3)
conftest.c:120: warning: 'th' is used uninitialized in this function
/usr/bin/ld : cannot find -lpthreads -- 结果发现不能
collect2: ld returned 1 exit status
configure:14658: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "libevent"
| #define VERSION "2.0.21-stable"
| #define NUMERIC_VERSION 0x02001500
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_BIO_H 1
| #define HAVE_OPENSSL 1
| #define STDC_HEADERS 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_POLL_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_EPOLL_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_QUEUE_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_EVENTFD_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_SENDFILE_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_SYSCTL_H 1
| #define HAVE_TAILQFOREACH 1
| #define HAVE_TIMERADD 1
| #define HAVE_TIMERCMP 1
| #define HAVE_TIMERCLEAR 1
| #define HAVE_TIMERISSET 1
| #define HAVE_DECL_CTL_KERN 1
| #define HAVE_DECL_KERN_RANDOM 1
| #define HAVE_DECL_RANDOM_UUID 1
| #define HAVE_DECL_KERN_ARND 0
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_VASPRINTF 1
| #define HAVE_FCNTL 1
| #define HAVE_CLOCK_GETTIME 1
| #define HAVE_STRTOK_R 1
| #define HAVE_STRSEP 1
| #define HAVE_GETNAMEINFO 1
| #define HAVE_INET_NTOP 1
| #define HAVE_INET_PTON 1
| #define HAVE_SIGNAL 1
| #define HAVE_SIGACTION 1
| #define HAVE_STRTOLL 1
| #define HAVE_INET_ATON 1
| #define HAVE_PIPE 1
| #define HAVE_EVENTFD 1
| #define HAVE_SENDFILE 1
| #define HAVE_MMAP 1
| #define HAVE_SPLICE 1
| #define HAVE_GETEUID 1
| #define HAVE_GETEGID 1
| #define HAVE_GETPROTOBYNUMBER 1
| #define HAVE_SETENV 1
| #define HAVE_UNSETENV 1
| #define HAVE_PUTENV 1
| #define HAVE_SYSCTL 1
| #define HAVE_UMASK 1
| #define HAVE_GETADDRINFO 1
| #define SIZEOF_LONG 8
| #define HAVE_SETFD 1
| #define HAVE_SELECT 1
| #define HAVE_POLL 1
| #define HAVE_EPOLL_CTL 1
| #define HAVE_EPOLL 1
| #define HAVE_UINT64_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINTPTR_T 1
| #define HAVE_FD_MASK 1
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_LONG 8
| #define SIZEOF_INT 4
| #define SIZEOF_SHORT 2
| #define SIZEOF_SIZE_T 8
| #define SIZEOF_VOID_P 8
| #define HAVE_STRUCT_IN6_ADDR 1
| #define HAVE_STRUCT_SOCKADDR_IN6 1
| #define HAVE_SA_FAMILY_T 1
| #define HAVE_STRUCT_ADDRINFO 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE 1
| #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
| #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
| /* end confdefs.h. */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| pthread_attr_init(0); pthread_cleanup_push(0, 0);
| pthread_create(0,0,0,0); pthread_cleanup_pop(0);
| ;
| return 0;
| }
configure:14667: result: no
configure:14570: checking whether pthreads work without any flags -- 检查能否无任何 flag 使用 pthreads (这里的用意不太明白)
configure:14658: gcc -o conftest -g -O2 -Wall -fno-strict-aliasing conftest.c -lrt >&5
conftest.c: In function 'main' :
conftest.c:121: warning: null argument where non-null required (argument 1)
conftest.c:122: warning: null argument where non-null required (argument 1)
conftest.c:122: warning: null argument where non-null required (argument 3)
conftest.c:120: warning: 'th' is used uninitialized in this function
configure:14658: $? = 0
configure:14667: result: yes
configure:14686: checking for joinable pthread attribute -- 检查 pthread 特性是否支持 joinable(注意,这里就变成了 pthread 而不再是 pthreads)
configure:14701: gcc -o conftest -g -O2 -Wall -fno-strict-aliasing conftest.c -lrt >&5
configure:14701: $? = 0
configure:14707: result: PTHREAD_CREATE_JOINABLE
configure:14717: checking if more special flags are required for pthreads
configure:14724: result: no
configure:14813: checking size of pthread_t
configure:14818: gcc -o conftest -g -O2 -Wall -fno-strict-aliasing conftest.c -lrt >&5
configure:14818: $? = 0
configure:14818: . /conftest
configure:14818: $? = 0
configure:14835: result: 8
configure:15289: creating . /config .status
...
|